Coder Social home page Coder Social logo

helm's People

Contributors

josephkav avatar larsl-net avatar

Stargazers

 avatar

helm's Issues

extraSecretEnvironmentVars not implemented

Hello,

deployment.yaml does not include a reference to the values.yaml key extraSecretEnvironmentVars

The workaround I did was:

          {{- if or (.Values.argus.extraEnvironmentVars) (.Values.argus.extraSecretEnvironmentVars)  }}
          env:
            {{- if .Values.argus.extraEnvironmentVars }}
            {{ toYaml .Values.argus.extraEnvironmentVars | nindent 12 }}
            {{- end }}
            {{- if .Values.argus.extraSecretEnvironmentVars }}
            {{ toYaml .Values.argus.extraSecretEnvironmentVars | nindent 12 }}
            {{- end }}
          {{- end }}

If this is an acceptable solution, I can submit an MR.

Thanks,

Secret to Environment Variable

Hello,

I am trying to use a k8s secret into an env variable that argus will use in the config. It does not appear to be working.

I setup a secret:

apiVersion: v1
kind: Secret
metadata:
  name: argus-secrets
type: Opaque
data:
  GITHUB_API_KEY: $GITHUB_API_KEY

Passed in the Secret to the values file:

  # List of Secrets to use as env var
  extraSecretEnvironmentVars:
    - name: GITHUB_API_KEY
      valueFrom:
        secretKeyRef:
          name: argus-secrets
          key: GITHUB_API_KEY

Setup the config to use the environment variable:

  config: |
    service:
      app[argus]:
        latest_version:
          type: github
          access_token: $GITHUB_API_KEY
          url: release-argus/argus
        deployed_version:
          url: http://localhost:8080/api/v1/version
          json: version
        dashboard:
          icon: https://github.com/release-argus/Argus/raw/master/web/ui/static/favicon.svg
          web_url: https://github.com/release-argus/Argus/blob/master/CHANGELOG.md

The secret is in the container:

GITHUB_API_KEY=REDACTED

The logs say I have an invalid token:

ERROR: app[argus], github access token is invalid
ERROR: app[argus], tag_name not found at release-argus/argus

When I put the API key in the values file directly, it works, but that is not something I will do.
Does Argus config process env variables or do I have something setup wrong?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.