Skip to content

Commit

Permalink
Merge pull request #662 from mattmoyer/parameterize-test-images
Browse files Browse the repository at this point in the history
Parameterize our test images in ytt.
  • Loading branch information
mattmoyer authored Jun 3, 2021
2 parents b5ed4e6 + df78e00 commit 9b9e733
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
8 changes: 5 additions & 3 deletions test/deploy/tools/cert-issuer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#! Copyright 2020-2021 the Pinniped contributors. All Rights Reserved.
#! SPDX-License-Identifier: Apache-2.0

#@ load("@ytt:data", "data")

---
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -50,8 +53,7 @@ spec:
serviceAccountName: cert-issuer
initContainers:
- name: generate-certs
image: cfssl/cfssl:1.5.0
imagePullPolicy: IfNotPresent
image: #@ data.values.cfssl_image
command: ["/bin/bash"]
args:
- -c
Expand Down Expand Up @@ -108,7 +110,7 @@ spec:
mountPath: /var/certs
containers:
- name: save-certs
image: bitnami/kubectl
image: #@ data.values.kubectl_image
command: ["/bin/bash"]
args:
- -c
Expand Down
3 changes: 1 addition & 2 deletions test/deploy/tools/dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
spec:
containers:
- name: dex
image: ghcr.io/dexidp/dex:v2.27.0
imagePullPolicy: IfNotPresent
image: #@ data.values.dex_image
command:
- /usr/local/bin/dex
- serve
Expand Down
3 changes: 1 addition & 2 deletions test/deploy/tools/ldap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ spec:
#! Use our own fork of docker.io/bitnami/openldap for now, because we added the
#! LDAP_SERVER_CONFIG_BEFORE_CUSTOM_LDIF_DIR and LDAP_SERVER_CONFIG_AFTER_CUSTOM_LDIF_DIR options.
#! See https://github.com/pinniped-ci-bot/bitnami-docker-openldap/tree/pinniped
image: projects.registry.vmware.com/pinniped/test-ldap:latest
imagePullPolicy: Always
image: #@ data.values.ldap_image
ports:
- name: ldap
containerPort: 1389
Expand Down
5 changes: 2 additions & 3 deletions test/deploy/tools/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ spec:
emptyDir: {}
containers:
- name: proxy
image: projects.registry.vmware.com/pinniped/test-forward-proxy
imagePullPolicy: Always
image: #@ data.values.proxy_image
ports:
- name: http
containerPort: 3128
Expand All @@ -48,7 +47,7 @@ spec:
periodSeconds: 5
failureThreshold: 2
- name: accesslogs
image: debian:10.8-slim
image: #@ data.values.proxy_image
command:
- "/bin/sh"
- "-c"
Expand Down
7 changes: 7 additions & 0 deletions test/deploy/tools/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ pinny_bcrypt_passwd_hash:

#! The plaintext password of the LDAP test account user.
pinny_ldap_password:

#! Images for each of the deployed test components.
dex_image: ghcr.io/dexidp/dex:v2.27.0
ldap_image: projects.registry.vmware.com/pinniped/test-ldap:latest
proxy_image: projects.registry.vmware.com/pinniped/test-forward-proxy:latest
cfssl_image: cfssl/cfssl:1.5.0
kubectl_image: bitnami/kubectl:latest

0 comments on commit 9b9e733

Please sign in to comment.