Skip to content

Commit

Permalink
Merge pull request #233 from tapis-project/dev
Browse files Browse the repository at this point in the history
fix conditional in case var is undefined
  • Loading branch information
mpackard authored Jun 14, 2023
2 parents cf989e7 + b45905b commit f7b8a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/roles/security/templates/kube/api/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ spec:
labels:
app: sk-api
spec:
{% if security_renew_sk_script == true %}
{% if skadmin_sk_privileged_sa is not none %}
{% if skadmin_sk_privileged_sa is defined and not none %}
serviceAccountName: {{ skadmin_sk_privileged_sa }}
{% endif %}
{% if security_renew_sk_script == true %}
initContainers:
- name: renew-sk-secret
command: ["/tmp/renew-sk-secret-script"]
Expand Down

0 comments on commit f7b8a8e

Please sign in to comment.