Skip to content

Commit

Permalink
Merge pull request #170 from DharmitD/add-labels-dspo
Browse files Browse the repository at this point in the history
Update DSP Operator labels
  • Loading branch information
HumairAK authored Jun 22, 2023
2 parents 1c13888 + fa94936 commit a02ebe6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 33 deletions.
5 changes: 2 additions & 3 deletions config/manager/manager-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ kind: Service
metadata:
name: service
labels:
control-plane: controller-manager
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
spec:
ports:
- name: metrics
port: 8080
selector:
control-plane: controller-manager
app.kubernetes.io/name: data-science-pipelines-operator
12 changes: 3 additions & 9 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,18 @@ metadata:
name: controller-manager
namespace: datasciencepipelinesapplications-controller
labels:
control-plane: controller-manager
app.kubernetes.io/name: deployment
app.kubernetes.io/instance: controller-manager
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/part-of: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
spec:
selector:
matchLabels:
control-plane: controller-manager
app.kubernetes.io/name: data-science-pipelines-operator
replicas: 1
template:
metadata:
annotations:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
spec:
securityContext:
runAsNonRoot: true
Expand Down
2 changes: 1 addition & 1 deletion config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
port: metrics
selector:
matchLabels:
control-plane: controller-manager
app.kubernetes.io/name: data-science-pipelines-operator
6 changes: 1 addition & 5 deletions config/rbac/leader_election_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
app.kubernetes.io/name: role
app.kubernetes.io/instance: leader-election-role
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/part-of: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
name: leader-election-role
rules:
- apiGroups:
Expand Down
6 changes: 1 addition & 5 deletions config/rbac/leader_election_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
app.kubernetes.io/name: rolebinding
app.kubernetes.io/instance: leader-election-rolebinding
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/part-of: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
name: leader-election-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
6 changes: 1 addition & 5 deletions config/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: clusterrolebinding
app.kubernetes.io/instance: manager-rolebinding
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/part-of: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
name: manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
6 changes: 1 addition & 5 deletions config/rbac/service_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: serviceaccount
app.kubernetes.io/instance: controller-manager
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: data-science-pipelines-operator
app.kubernetes.io/part-of: data-science-pipelines-operator
app.kubernetes.io/name: data-science-pipelines-operator
name: controller-manager
namespace: datasciencepipelinesapplications-controller

0 comments on commit a02ebe6

Please sign in to comment.