Skip to content

ArgoCD Plugin: Helm Environment Variable Substitution Plugin to allow for specialised variables to hook from ArgoCD Applications/Appsets to helm

Notifications You must be signed in to change notification settings

hextrust/argocd-plugin-helm-envsubst

Repository files navigation

argocd-helm-envsubst-plugin

Usage

Build dependency

$ argocd-helm-envsubst-plugin build 
Usage:
  argocd-helm-envsubst-plugin build [flags]

Flags:
      --helm-registry-secret-config-path string   Repository config, default to /helm-working-dir/plugin-repositories/repositories.yaml
  -h, --help                                      help for build
      --path string                               Path to the application
      --repository-path string                    Repository config, default to /helm-working-dir/

Render helm template

Similar to helm template .

Usage:
  argocd-helm-envsubst-plugin render [flags]

Flags:
  -h, --help                  help for render
      --log-location string   Default to /tmp/argocd-helm-envsubst-plugin/
      --path string           Path to the application

Configuration

Parameter Description Default
namespace Namespace to deploy = helm template --namespace xxx ""
releaseName Release name = helm template --release-name xxx ""
skipCRD Set to true if you want to skip deploy CRD = helm template --skip-crds false
syncOptionReplace Resources to add argocd.argoproj.io/sync-options:Replace=true []
# Example
argocd:
  namespace: metazen-${ARGOCD_ENV_ENVIRONMENT}
  releaseName: asset-master-service
  skipCRD: true 
  syncOptionReplace:
    - crds/crd-alertmanagerconfigs.yaml

Development

# To rebuild, run and go into shell script
$ make build-run-sh

# Normal run
/ $ argocd-helm-envsubst-plugin

# With debug mode
/ $ DEBUG=1 argocd-helm-envsubst-plugin

About

ArgoCD Plugin: Helm Environment Variable Substitution Plugin to allow for specialised variables to hook from ArgoCD Applications/Appsets to helm

Resources

Stars

Watchers

Forks

Packages

No packages published