Planet: add secret reference

Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
Pedro Moura
2024-01-24 19:23:17 -03:00
committed by phsmoura
parent 5f7b2bab72
commit b8f2ed12bf

View File

@@ -21,6 +21,14 @@ spec:
triggers:
- type: ConfigChange
- type: ImageChange
{% if env == 'staging' %}
- type: GitHub
github:
secret: "{{ planet_stg_github_secret }}"
secretReference:
name: planet-stg-github-webhook-secret
{% elif env == 'production' %}
- type: GitHub
github:
secretReference:
name: planet-github-webhook-secret
{% endif %}