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

Replace email in a list #2029

Closed
marunmohan opened this issue May 3, 2024 · 0 comments
Closed

Replace email in a list #2029

marunmohan opened this issue May 3, 2024 · 0 comments

Comments

@marunmohan
Copy link

marunmohan commented May 3, 2024

I want to append an entry in namespaceAdmin,namespaceDebugger in the below yaml file using yq. Basically it has got multiple patches and I want to make changes in some of the helmrelease patches. Is that possible?
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
  name: test
  namespace: flux-system
spec:
  interval: 10m0s
  dependsOn:
    - name: infra
  sourceRef:
    kind: GitRepository
    name: applications
  prune: true
  postBuild:
    substitute:
      test: "dev"
  patches:
      - patch: |-
          apiVersion: v1
          kind: Namespace
          metadata:
            name: test
            labels:
              app-name: test
      - patch: |-
          apiVersion: helm.toolkit.fluxcd.io/v2beta2
          kind: HelmRelease
          metadata:
            name: test
          spec:
            values:
              ingress:
                ipAddress: "11.22.333.33"
              roleBinding:
                namespaceAdmin:
                  - kk3@test.com
                  - kk2@test1.com
                  - kk1@test2.com
                namespaceDebugger:
                   - kk@test3.com
      - patch: |-
          apiVersion: helm.toolkit.fluxcd.io/v2beta2
          kind: HelmRelease
          metadata


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

No branches or pull requests

1 participant