helmsman icon indicating copy to clipboard operation
helmsman copied to clipboard

question/feature: namespaceTemplates

Open galindro opened this issue 6 years ago • 1 comments

Would be nice if helmsman could provide a namespaceTemplates alongside appsTemplates. This would avoid code repetition like this:

namespaces:
  teleport:
    labels:
      monitoring: true
  gloo:
    labels:
      monitoring: true
    annotations:
      discovery.solo.io/function_discovery: enabled
  loki-stack:
    labels:
      monitoring: true
    annotations:
      discovery.solo.io/function_discovery: enabled
  prometheus-operator:
    labels:
      monitoring: true
    annotations:
      discovery.solo.io/function_discovery: enabled

With namespaceTemplates, it could be rewrite as:

namespaceTemplates:
  label_defaults: &label_defaults
    labels:
      monitoring: true
  annotation_defaults: &annotation_defaults
    annotations:
      discovery.solo.io/function_discovery: enabled

namespaces:
  teleport:
    <<: *label_defaults
  gloo:
    <<: *label_defaults
    <<: *annotation_defaults
  loki-stack:
    <<: *label_defaults
    <<: *annotation_defaults
  prometheus-operator:
    <<: *label_defaults
    <<: *annotation_defaults

galindro avatar Jan 21 '20 12:01 galindro

This issue has been marked stale due to an inactivity.

github-actions[bot] avatar Aug 11 '22 05:08 github-actions[bot]