diff --git a/testing/certmanager/operator/deployment.yaml b/testing/certmanager/operator/deployment.yaml new file mode 100644 index 00000000000..4be35f774ef --- /dev/null +++ b/testing/certmanager/operator/deployment.yaml @@ -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 diff --git a/testing/certmanager/operator/kustomization.yaml b/testing/certmanager/operator/kustomization.yaml new file mode 100644 index 00000000000..b0ad81c63b5 --- /dev/null +++ b/testing/certmanager/operator/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../../examples/kustomization/operator-certmanager + +patches: + - path: deployment.yaml diff --git a/testing/common.sh b/testing/common.sh index cfce17abcfa..ceae9f9d752 100644 --- a/testing/common.sh +++ b/testing/common.sh @@ -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