Skip to content

Instantly share code, notes, and snippets.

@ismailyenigul
Created March 11, 2021 13:14
Show Gist options
  • Save ismailyenigul/86335c12ca40efecee253cffea01520f to your computer and use it in GitHub Desktop.
Save ismailyenigul/86335c12ca40efecee253cffea01520f to your computer and use it in GitHub Desktop.

Sample values.yml for argocd-helm chart to create users and grant permissions.

config:
  # Argo CD's externally facing base URL (optional). Required when configuring SSO
  accounts.qauser: apiKey, login
  accounts.devuser: apiKey, login
  accounts.adminuser: apiKey, login
    .....
 rbacConfig:
    policy.default: role:readonly
    #{}
    # policy.csv is an file containing user-defined RBAC policies and role definitions (optional).
    # Policy rules are in the form:
    #   p, subject, resource, action, object, effect
    # Role definitions and bindings are in the form:
    #   g, subject, inherited-subject
    # See https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/rbac.md for additional information.
    policy.csv: |
      p, role:qa,  applications, *, */*, allow
      p, role:dev, applications, *, */*, allow
      p, role:dev, projects, *, *, allow
      p, role:dev, repositories, *, *, allow
      g, adminuser, role:admin
      g, devuser, role:dev
      g, qauser, role:qa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment