Skip to content

Commit

Permalink
chore(deploy): add recommended labels (#797)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
  • Loading branch information
danielpacak authored Nov 6, 2021
1 parent 612949f commit cae399f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 8 deletions.
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

0 comments on commit cae399f

Please sign in to comment.