Skip to content

Commit

Permalink
Add sriov-operator generated cluster objects labels
Browse files Browse the repository at this point in the history
Signed-off-by: Ido Heyvi <iheyvi@nvidia.com>
  • Loading branch information
heyvister1 committed Oct 15, 2024
1 parent 8adfbb6 commit 4ab7a6f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 24 deletions.
4 changes: 4 additions & 0 deletions bindata/manifests/operator-webhook/002-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: operator-webhook
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
rules:
- apiGroups:
- ""
Expand All @@ -32,6 +34,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: operator-webhook-role-binding
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
4 changes: 4 additions & 0 deletions bindata/manifests/operator-webhook/003-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ metadata:
# more variables.
cert-manager.io/inject-ca-from: {{.Namespace}}/{{.OperatorWebhookSecretName}}
{{- end }}
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
webhooks:
- name: operator-webhook.sriovnetwork.openshift.io
sideEffects: None
Expand Down Expand Up @@ -43,6 +45,8 @@ metadata:
# more variables.
cert-manager.io/inject-ca-from: {{.Namespace}}/{{.OperatorWebhookSecretName}}
{{- end }}
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
webhooks:
- name: operator-webhook.sriovnetwork.openshift.io
sideEffects: None
Expand Down
24 changes: 0 additions & 24 deletions bindata/manifests/operator-webhook/pre-delete-webooks.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions bindata/manifests/webhook/002-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: network-resources-injector
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
rules:
- apiGroups:
- k8s.cni.cncf.io
Expand All @@ -31,6 +33,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: network-resources-injector-role-binding
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
2 changes: 2 additions & 0 deletions bindata/manifests/webhook/003-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ metadata:
# more variables.
cert-manager.io/inject-ca-from: {{.Namespace}}/{{.InjectorWebhookSecretName}}
{{- end }}
labels:
created-by: {{ include "sriov-network-operator.fullname" . }}
webhooks:
- name: network-resources-injector-config.k8s.io
sideEffects: None
Expand Down

0 comments on commit 4ab7a6f

Please sign in to comment.