chore(projects): add work project and namespace
This commit is contained in:
parent
81b988de17
commit
00ebbd8e71
1 changed files with 98 additions and 0 deletions
98
projects/work.yaml
Normal file
98
projects/work.yaml
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd-autopilot.argoproj-labs.io/default-dest-server: https://kubernetes.default.svc
|
||||||
|
argocd.argoproj.io/sync-options: PruneLast=true
|
||||||
|
argocd.argoproj.io/sync-wave: "-2"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: work
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: "*"
|
||||||
|
kind: "*"
|
||||||
|
description: playground for work projects
|
||||||
|
destinations:
|
||||||
|
- namespace: "work"
|
||||||
|
server: "*"
|
||||||
|
namespaceResourceWhitelist:
|
||||||
|
- group: "*"
|
||||||
|
kind: "*"
|
||||||
|
sourceRepos:
|
||||||
|
- "*"
|
||||||
|
status: {}
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "0"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: work
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
generators:
|
||||||
|
- git:
|
||||||
|
files:
|
||||||
|
- path: apps/**/work/config.json
|
||||||
|
repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git
|
||||||
|
requeueAfterSeconds: 20
|
||||||
|
revision: ""
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
destination: {}
|
||||||
|
project: ""
|
||||||
|
- git:
|
||||||
|
files:
|
||||||
|
- path: apps/**/work/config_dir.json
|
||||||
|
repoURL: ssh://git@gitea-ssh.gitops.svc.cluster.local:2222/davad/argo.git
|
||||||
|
requeueAfterSeconds: 20
|
||||||
|
revision: ""
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
destination: {}
|
||||||
|
project: ""
|
||||||
|
source:
|
||||||
|
directory:
|
||||||
|
exclude: "{{ exclude }}"
|
||||||
|
include: "{{ include }}"
|
||||||
|
jsonnet: {}
|
||||||
|
recurse: true
|
||||||
|
repoURL: ""
|
||||||
|
syncPolicy: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: argocd-autopilot
|
||||||
|
app.kubernetes.io/name: "{{ appName }}"
|
||||||
|
name: work-{{ userGivenName }}
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: "{{ destNamespace }}"
|
||||||
|
server: "{{ destServer }}"
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: argoproj.io
|
||||||
|
jsonPointers:
|
||||||
|
- /status
|
||||||
|
kind: Application
|
||||||
|
project: work
|
||||||
|
source:
|
||||||
|
path: "{{ srcPath }}"
|
||||||
|
repoURL: "{{ srcRepoURL }}"
|
||||||
|
targetRevision: "{{ srcTargetRevision }}"
|
||||||
|
syncPolicy:
|
||||||
|
# automated:
|
||||||
|
# allowEmpty: true
|
||||||
|
# prune: true
|
||||||
|
# selfHeal: true
|
||||||
|
status: {}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: work
|
||||||
Loading…
Add table
Add a link
Reference in a new issue