Browse Source

T

pull/157/head
geekboy1011 3 years ago
parent
commit
2c68c672b3
  1. 23
      ApplicationSet/set.yaml
  2. 8
      Test/deploy.yaml

23
ApplicationSet/set.yaml

@ -4,25 +4,20 @@ metadata:
name: myapps name: myapps
spec: spec:
generators: generators:
- scmProvider: - pullRequest:
github: github:
# The GitHub organization to scan. # The GitHub organization or user.
organization: geekbozu owner: geekbozu
- repositoryMatch: ^argocd-example-apps # The Github repository
# For GitHub Enterprise: repo: argocd-example-apps
allBranches: true
# Reference to a Secret containing an access token. (optional)
tokenRef:
secretName: github-token
key: token
template: template:
metadata: metadata:
name: '{{ repository }}+{{ branch }}' name: 'myapp-{{branch}}-{{number}}'
spec: spec:
source: source:
repoURL: '{{ url }}' repoURL: 'https://github.com/geekbozu/argocd-example-apps.git'
targetRevision: '{{ branch }}' targetRevision: '{{head_sha}}'
path: testApp/ path: Test/
project: default project: default
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc

8
Test/deploy.yaml

@ -1,19 +1,17 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: guestbook-ui name: networkme
labels:
branch: $ARGOCD_APP_SOURCE_TARGET_REVISION
spec: spec:
replicas: 1 replicas: 1
revisionHistoryLimit: 3 revisionHistoryLimit: 3
selector: selector:
matchLabels: matchLabels:
app: guestbook-ui app: networkme
template: template:
metadata: metadata:
labels: labels:
app: guestbook-ui app: networkme
spec: spec:
containers: containers:
- image: praqma/network-multitool - image: praqma/network-multitool

Loading…
Cancel
Save