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

block sources #512

Open
Nello-Angelo opened this issue Dec 7, 2024 · 0 comments
Open

block sources #512

Nello-Angelo opened this issue Dec 7, 2024 · 0 comments
Labels
question Further information is requested

Comments

@Nello-Angelo
Copy link

Nello-Angelo commented Dec 7, 2024

how can make the same in terraform ?

config below is working but i am not sure that i can make the same in terraform

don’t pay attention to the appset type, I’m interested in the sources block

i would like to do this in appset and in simple app

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: billing-account-service
  namespace: argocd
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  generators:
  - pullRequest:
      gitlab:
        project: '44743534'
        api: https://gitlab.com/
        pullRequestState: opened
        tokenRef:
          secretName: 'gitlab-token-dewac'
          key: token
      requeueAfterSeconds: 5
  template:
    metadata:
      name: 'billing-account-service-{{number}}'
    spec:
      sources:
      - chart: 'kube-state-metrics'
        helm:
          valueFiles:
            - $values-bitnami/Kubernetes/Examlpe of Chart/kube.yaml
        repoURL: 'https://charts.bitnami.com/bitnami'
        targetRevision: 3.3.4
      - chart: 'ingress-nginx'
        helm:
          valueFiles:
            - $values-bitnami/Kubernetes/Examlpe of Chart/nginxingress.yaml
        repoURL: 'https://kubernetes.github.io/ingress-nginx'
        targetRevision: 4.6.0
      - chart: 'nginx'
        helm:
          valueFiles:
            - $values-billing/devops/red/charts/nginx.yaml
        repoURL: 'https://charts.bitnami.com/bitnami'
        targetRevision: 13.2.32
      - repoURL: 'https://gitlab.com/my-projects121/frontend-angular.git'
        targetRevision: 'main'
        ref: values-billing
      - repoURL: 'https://gitlab.com/my-projects121/knowledge-base.git'
        targetRevision: 'main'
        ref: values-bitnami
      project: default
      destination:
        server: 'https://kubernetes.default.svc'
        namespace: default
      syncPolicy:
        automated:
          prune: true
          selfHeal: true

or

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: review-the-application
  namespace: argocd
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  generators:
  - pullRequest:
      gitlab:
        project: '44743534'
        api: https://gitlab.com/
        pullRequestState: opened
        tokenRef:
          secretName: 'gitlab'
          key: token
      requeueAfterSeconds: 5
  template:
    metadata:
      name: 'review-the-application-{{number}}'
    spec:
      sources:
      - chart: nginx
        repoURL: https://charts.bitnami.com/bitnami
        targetRevision: 13.2.33
      - chart: ingress-nginx
        repoURL: https://kubernetes.github.io/ingress-nginx
        targetRevision: 4.6.0
      project: default
      destination:
        server: 'https://kubernetes.default.svc'
        namespace: default
      syncPolicy:
        automated:
          prune: true
          selfHeal: true
@Nello-Angelo Nello-Angelo added the question Further information is requested label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant