diff --git a/bindata/manifests/operator-webhook/002-rbac.yaml b/bindata/manifests/operator-webhook/002-rbac.yaml index 7396c3ca48..b5f54a490e 100644 --- a/bindata/manifests/operator-webhook/002-rbac.yaml +++ b/bindata/manifests/operator-webhook/002-rbac.yaml @@ -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: - "" @@ -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 diff --git a/bindata/manifests/operator-webhook/003-webhook.yaml b/bindata/manifests/operator-webhook/003-webhook.yaml index 9181f1edff..c9ba6f7a1e 100644 --- a/bindata/manifests/operator-webhook/003-webhook.yaml +++ b/bindata/manifests/operator-webhook/003-webhook.yaml @@ -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 @@ -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 diff --git a/bindata/manifests/operator-webhook/pre-delete-webooks.yaml b/bindata/manifests/operator-webhook/pre-delete-webooks.yaml deleted file mode 100644 index 3edea06708..0000000000 --- a/bindata/manifests/operator-webhook/pre-delete-webooks.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{ if .Values.operator.admissionControllers.enabled }} -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ include "sriov-network-operator.fullname" . }}-pre-delete-hook" - namespace: namespace: {{ .Release.Namespace }} - annotations: - "helm.sh/hook": pre-delete - "helm.sh/hook-delete-policy": hook-succeeded,hook-failed -spec: - template: - spec: - serviceAccountName: {{ include "sriov-network-operator.fullname" . }} - containers: - - name: cleanup - image: {{.SriovNetworkWebhookImage}} - command: - - webhook - args: - - delete - - -n - - namespace: {{ .Release.Namespace }} - restartPolicy: Never -{{ end }} \ No newline at end of file diff --git a/bindata/manifests/webhook/002-rbac.yaml b/bindata/manifests/webhook/002-rbac.yaml index 32affca29f..0de20f90fa 100644 --- a/bindata/manifests/webhook/002-rbac.yaml +++ b/bindata/manifests/webhook/002-rbac.yaml @@ -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 @@ -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 diff --git a/bindata/manifests/webhook/003-webhook.yaml b/bindata/manifests/webhook/003-webhook.yaml index ead56de0cd..9c118f86da 100644 --- a/bindata/manifests/webhook/003-webhook.yaml +++ b/bindata/manifests/webhook/003-webhook.yaml @@ -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