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

Dynamic configuration #33

Closed
ribeiro-rodrigo opened this issue Aug 12, 2021 · 0 comments · Fixed by #35
Closed

Dynamic configuration #33

ribeiro-rodrigo opened this issue Aug 12, 2021 · 0 comments · Fixed by #35
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ribeiro-rodrigo
Copy link
Contributor

Enforcement must allow dynamic values ​​in the configuration of cluster rules.
It should be possible to specify in the configuration of the cluster rule, cluster information returned by the cluster source through a simple expression language.

Example:

apiVersion: enforcement.globo.com/v1beta1
kind: ClusterRule
metadata:
  name: dev-rules
spec:
  enforcements:
    - name: helm-guestbook
      repo: https://github.com/argoproj/argocd-example-apps
      path: "${cluster_name}/helm-guestbook"
      helm:
        parameters:
          replicaCount: 1
          cluster: ${cluster_name}

  source:
    rancher: {}

Dynamic configuration should only be allowed within the enforcement field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants