Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deploy): add recommended labels #797

Merged
merged 1 commit into from
Nov 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions deploy/static/02-starboard-operator.rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@ kind: ServiceAccount
metadata:
name: starboard-operator
namespace: starboard-system
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: starboard-operator
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -125,6 +135,11 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: starboard-operator
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
20 changes: 16 additions & 4 deletions deploy/static/03-starboard-operator.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ metadata:
name: starboard
namespace: starboard-system
labels:
"app.kubernetes.io/managed-by": "starboard"
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
data:
vulnerabilityReports.scanner: Trivy
configAuditReports.scanner: Polaris
Expand All @@ -17,15 +20,21 @@ metadata:
name: starboard
namespace: starboard-system
labels:
"app.kubernetes.io/managed-by": "starboard"
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
---
apiVersion: v1
kind: ConfigMap
metadata:
name: starboard-trivy-config
namespace: starboard-system
labels:
"app.kubernetes.io/managed-by": "starboard"
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
data:
trivy.imageRef: docker.io/aquasec/trivy:0.20.0
trivy.severity: UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
Expand All @@ -41,7 +50,10 @@ metadata:
name: starboard-polaris-config
namespace: starboard-system
labels:
"app.kubernetes.io/managed-by": "starboard"
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
data:
polaris.imageRef: quay.io/fairwinds/polaris:4.2
polaris.resources.requests.cpu: "50m"
Expand Down
19 changes: 15 additions & 4 deletions deploy/static/04-starboard-operator.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ kind: Service
metadata:
name: starboard-operator
namespace: starboard-system
labels:
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
annotations:
prometheus.io/path: /metrics
prometheus.io/scrape: "true"
Expand All @@ -14,26 +19,32 @@ spec:
targetPort: metrics
name: metrics
selector:
app: starboard-operator
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: starboard-operator
namespace: starboard-system
labels:
app: starboard-operator
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
app.kubernetes.io/version: "0.13.0-rc2"
app.kubernetes.io/managed-by: kubectl
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: starboard-operator
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
template:
metadata:
labels:
app: starboard-operator
app.kubernetes.io/name: starboard-operator
app.kubernetes.io/instance: starboard-operator
spec:
serviceAccountName: starboard-operator
automountServiceAccountToken: true
Expand Down