Skip to content

Commit

Permalink
Fix certmanager test to use the :noop tagged image (#2220)
Browse files Browse the repository at this point in the history
* Fix certmanager test

Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
  • Loading branch information
pjuarezd authored Jul 16, 2024
1 parent ccbdd2c commit bbb9122
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ metadata:
name: tenant-certmanager-issuer
namespace: tenant-certmanager
spec:
selfSigned: { }
ca:
secretName: tenant-certmanager-ca-tls
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 bbb9122

Please sign in to comment.