diff --git a/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/intel-sgx-webhook-remove.patch.yaml b/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/intel-sgx-webhook-remove.patch.yaml new file mode 100644 index 000000000..762842dcc --- /dev/null +++ b/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/intel-sgx-webhook-remove.patch.yaml @@ -0,0 +1,13 @@ +--- +# Remove SGX webhook from MutatingWebhookConfiguration +# The Intel device plugin controller doesn't implement the SGX webhook, +# causing errors when it tries to call the endpoint. +# This patch removes the sgx.mutator.webhooks.intel.com entry. +apiVersion: admissionregistration.k8s.io/v1 +kind: MutatingWebhookConfiguration +metadata: + name: inteldeviceplugins-mutating-webhook-configuration +spec: + webhooks: + - name: sgx.mutator.webhooks.intel.com + $patch: delete diff --git a/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/kustomization.yaml b/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/kustomization.yaml index 17cbc72b2..ff834b7e2 100644 --- a/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/kustomization.yaml +++ b/kubernetes/apps/kube-system/intel-device-plugin-operator/gpu/kustomization.yaml @@ -4,3 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./helmrelease.yaml +patchesStrategicMerge: + - intel-sgx-webhook-remove.patch.yaml