Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm: Add configmap ref support for mem resolver #33

Merged
merged 1 commit into from
Mar 10, 2020
Merged

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Mar 10, 2020

Adds support for referencing a configmap to be used as a memory resolver.

Usage (requires installed nsc):

curl -sSL https://nats-io.github.io/k8s/setup/nsc-setup.sh | sh
nsc generate config --mem-resolver --sys-account SYS > resolver.conf
kubectl create configmap nats-accounts --from-file resolver.conf

The reference the configmap as follows:

# deploy.yaml
auth:
  enabled: true
  resolver:
    type: memory
    configMap:
      name: nats-accounts
      key: resolver.conf
helm install nats-with-auth nats/nats  -f deploy.yaml

Signed-off-by: Waldemar Quevedo [email protected]

Copy link
Member

@ColinSullivan1 ColinSullivan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wallyqs wallyqs merged commit cf1e573 into master Mar 10, 2020
@wallyqs wallyqs deleted the auth-accounts branch March 10, 2020 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants