Skip to content

Commit

Permalink
Fix certmanager test to use the :noop tagged image
Browse files Browse the repository at this point in the history
Signed-off-by: pjuarezd <[email protected]>
  • Loading branch information
pjuarezd committed Jul 16, 2024
1 parent e3e7a01 commit a2347ee
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
22 changes: 22 additions & 0 deletions testing/certmanager/operator/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio-operator
namespace: minio-operator
spec:
replicas: 2
selector:
matchLabels:
name: minio-operator
template:
metadata:
labels:
name: minio-operator
spec:
serviceAccountName: minio-operator
containers:
- name: minio-operator
image: minio/operator:noop
env:
- name: OPERATOR_SIDECAR_IMAGE
value: minio/operator-sidecar:noop
8 changes: 8 additions & 0 deletions testing/certmanager/operator/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../../examples/kustomization/operator-certmanager

patches:
- path: deployment.yaml
2 changes: 1 addition & 1 deletion testing/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ function install_operator() {
value=minio-operator
elif [ "$1" = "certmanager" ]; then
echo "Installing Current Operator with certmanager"
try kubectl apply -k "${SCRIPT_DIR}/../examples/kustomization/operator-certmanager"
try kubectl apply -k "${SCRIPT_DIR}/../testing/certmanager/operator"
echo "key, value for pod selector in kustomize test"
key=name
value=minio-operator
Expand Down

0 comments on commit a2347ee

Please sign in to comment.