Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix certmanager test to use the :noop tagged image #2220

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading