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
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
# 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

8
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

Loading…
Cancel
Save