From 2c68c672b3a06ee60ed438b978a14958482c55e0 Mon Sep 17 00:00:00 2001 From: geekboy1011 Date: Thu, 8 Sep 2022 22:15:38 -0400 Subject: [PATCH] T --- ApplicationSet/set.yaml | 25 ++++++++++--------------- Test/deploy.yaml | 8 +++----- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/ApplicationSet/set.yaml b/ApplicationSet/set.yaml index 328e699..6c6cdcb 100644 --- a/ApplicationSet/set.yaml +++ b/ApplicationSet/set.yaml @@ -4,25 +4,20 @@ metadata: name: myapps spec: generators: - - scmProvider: + - pullRequest: github: - # The GitHub organization to scan. - organization: geekbozu - - repositoryMatch: ^argocd-example-apps - # For GitHub Enterprise: - allBranches: true - # Reference to a Secret containing an access token. (optional) - tokenRef: - secretName: github-token - key: token - template: + # The GitHub organization or user. + owner: geekbozu + # The Github repository + repo: argocd-example-apps + template: metadata: - name: '{{ repository }}+{{ branch }}' + name: 'myapp-{{branch}}-{{number}}' spec: source: - repoURL: '{{ url }}' - targetRevision: '{{ branch }}' - path: testApp/ + repoURL: 'https://github.com/geekbozu/argocd-example-apps.git' + targetRevision: '{{head_sha}}' + path: Test/ project: default destination: server: https://kubernetes.default.svc diff --git a/Test/deploy.yaml b/Test/deploy.yaml index 965b866..a1cad64 100644 --- a/Test/deploy.yaml +++ b/Test/deploy.yaml @@ -1,19 +1,17 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: guestbook-ui - labels: - branch: $ARGOCD_APP_SOURCE_TARGET_REVISION + name: networkme spec: replicas: 1 revisionHistoryLimit: 3 selector: matchLabels: - app: guestbook-ui + app: networkme template: metadata: labels: - app: guestbook-ui + app: networkme spec: containers: - image: praqma/network-multitool