generate_heapster_secrets.yaml 411 B

1234567891011121314
  1. ---
  2. - name: generate heapster secret template
  3. template:
  4. src: secret.j2
  5. dest: "{{ mktemp.stdout }}/templates/heapster_secrets.yaml"
  6. force: no
  7. vars:
  8. name: heapster-secrets
  9. labels:
  10. metrics-infra: heapster
  11. data:
  12. heapster.allowed-users: >
  13. {{ openshift_metrics_heapster_allowed_users|b64encode }}
  14. when: "'secret/heapster-secrets' not in metrics_secrets.stdout_lines"