fix: update the patch for localhost deployment
diff --git a/deploy/webhook-operator.yaml b/deploy/webhook-operator.yaml
-index 6c4c0b67..b29950ed 100644
+index 2de0b5bb..b29950ed 100644
--- a/deploy/webhook-operator.yaml
+++ b/deploy/webhook-operator.yaml
@@ -1967,7 +1967,7 @@ metadata:
@@ -35,10 +35,59 @@ index 6c4c0b67..b29950ed 100644
valueFrom:
fieldRef:
fieldPath: metadata.namespace
-- image: security-profiles-operator
+- image: gcr.io/k8s-staging-sp-operator/security-profiles-operator:latest
- imagePullPolicy: Always
+ image: localhost/security-profiles-operator:latest
+ imagePullPolicy: IfNotPresent
name: security-profiles-operator
ports:
- containerPort: 9443
+diff --git a/hack/deploy-webhook-localhost.patch b/hack/deploy-webhook-localhost.patch
+index d8419a30..e69de29b 100644
+--- a/hack/deploy-webhook-localhost.patch
++++ b/hack/deploy-webhook-localhost.patch
+@@ -1,44 +0,0 @@
+-diff --git a/deploy/webhook-operator.yaml b/deploy/webhook-operator.yaml
+-index 6c4c0b67..b29950ed 100644
+---- a/deploy/webhook-operator.yaml
+-+++ b/deploy/webhook-operator.yaml
+-@@ -1967,7 +1967,7 @@ metadata:
+- name: security-profiles-operator
+- namespace: security-profiles-operator
+- spec:
+-- replicas: 3
+-+ replicas: 1
+- selector:
+- matchLabels:
+- app: security-profiles-operator
+-@@ -1990,8 +1990,8 @@ spec:
+- valueFrom:
+- fieldRef:
+- fieldPath: metadata.namespace
+-- image: gcr.io/k8s-staging-sp-operator/security-profiles-operator:latest
+-- imagePullPolicy: Always
+-+ image: localhost/security-profiles-operator:latest
+-+ imagePullPolicy: IfNotPresent
+- name: security-profiles-operator
+- resources:
+- limits:
+-@@ -2023,7 +2023,7 @@ metadata:
+- name: security-profiles-operator-webhook
+- namespace: security-profiles-operator
+- spec:
+-- replicas: 3
+-+ replicas: 1
+- selector:
+- matchLabels:
+- app: security-profiles-operator
+-@@ -2044,8 +2044,8 @@ spec:
+- valueFrom:
+- fieldRef:
+- fieldPath: metadata.namespace
+-- image: security-profiles-operator
+-- imagePullPolicy: Always
+-+ image: localhost/security-profiles-operator:latest
+-+ imagePullPolicy: IfNotPresent
+- name: security-profiles-operator
+- ports:
+- - containerPort: 9443
