main.yaml 694 B

123456789101112131415161718192021
  1. ---
  2. hawkular_permission_oc_commands:
  3. - policy add-role-to-user edit system:serviceaccount:openshift-infra:metrics-deployer -n openshift-infra
  4. - policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-infra:heapster
  5. metrics_deployer_sa:
  6. apiVersion: v1
  7. kind: ServiceAccount
  8. metadata:
  9. name: metrics-deployer
  10. secrets:
  11. - name: metrics-deployer
  12. hawkular_tmp_conf: /tmp/hawkular_admin.kubeconfig
  13. hawkular_persistence: "{% if openshift.hosted.metrics.storage.kind != None %}true{% else %}false{% endif %}"
  14. hawkular_type: "{{ 'origin' if deployment_type == 'origin' else 'enterprise' }}"
  15. metrics_upgrade: openshift.hosted.metrics.upgrade | default(False)