{{ requiredEnv "RELEASE_NAME" }} used in the file values.example.yaml in monochart

Open
#234 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
helm, kubernetes

Research direction

Open values.example.yaml and inspect how the chart renders this affinity value; compare the expression with the Helm values-file behavior described in the issue. Render or validate the chart with a representative release name, and consider the issue done when the example values file no longer depends on unsupported Helmfile-only templating and remains valid for Helm use.

Written by the indexing model from the issue text.

Description

{{ requiredEnv "RELEASE_NAME" }} used in the file values.example.yam in monochartl, but I think this is typically a Helmfile-thing and can't be used in a Helm values file.

[...]
  affinity:
    # use of simple rule
    affinityRule: "ShouldBeOnDifferentNode"
    # use custom affinity rule. Here app MUST be on different host then postgres instance for it
    podAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
          matchExpressions:
          - key: app
            operator: In
            values:
            - postgresql
          - key: release
            operator: In
            values:
            - "{{ requiredEnv "RELEASE_NAME" }}-postgresql"
        topologyKey: "kubernetes.io/hostname"
Dominant language
Mustache
Stars
160
Forks
60
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudposse/charts

All issues in cloudposse/charts

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.