Do not require zuul_cluster label for provided sshsecretname

This commit is contained in:
Tristan Cacqueray 2019-04-09 01:49:58 +00:00
parent 87b9158b3a
commit 5aa579c027
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,6 @@ tenants:
- tenant:
name: demo
source: {}
sshsecretname: "{{ zuul_cluster_name }}-ssh-secret"
connections: []
merger:
min: 0
@ -22,6 +21,7 @@ state: "present"
zuul_app_name: "zuul"
zuul_cluster_name: "{{ meta.name }}"
sshsecretname: "{{ zuul_cluster_name }}-ssh-secret"
zuul_version: "latest" #"3.7.1"
# Use local image for https://review.openstack.org/650246

View File

@ -12,7 +12,7 @@
- name: lookup cluster secret
set_fact:
zuul_pg_user: "{{ secrets_lookup | json_query(pg_user_query) }}"
zuul_ssh_key: "{{ secrets_lookup | json_query(ssh_key_query) }}"
zuul_ssh_key: "{{ lookup('k8s', api_version='v1', kind='Secret', namespace=namespace, resource_name=sshsecretname) }}"
- name: lookup k8s postgres cr
set_fact:

View File

@ -12,4 +12,7 @@ spec:
web:
min: 1
connections: []
tenants: []
tenants:
- tenant:
name: demo
source: {}