feat(make-space): add namespaces, Tekton CI app, and prod auto-sync
This commit is contained in:
1 parent
2b65a583b9
commit
eb96f56349
4 files changed
+61
-1
No files matched your search
@@ -0,0 +1,22 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: make-space-ci
|
||||
namespace: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "6"
|
||||
spec:
|
||||
project: ci
|
||||
source:
|
||||
repoURL: https://git.dahyeon.us/dahyeon/service-state.git
|
||||
targetRevision: main
|
||||
path: ci/make-space
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: tekton-ci
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- SkipDryRunOnMissingResource=true
|
||||
@@ -27,7 +27,7 @@ spec:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: "{{index .path.segments 1}}-prod"
|
||||
templatePatch: |
|
||||
{{- if eq (index .path.segments 1) "url-shortener" }}
|
||||
{{- if or (eq (index .path.segments 1) "url-shortener") (eq (index .path.segments 1) "make-space") }}
|
||||
spec:
|
||||
syncPolicy:
|
||||
automated:
|
||||
|
||||
@@ -87,3 +87,13 @@ apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: persona-lenz-staging
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: make-space-staging
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: make-space-prod
|
||||
@@ -53,3 +53,31 @@ subjects:
|
||||
- kind: ServiceAccount
|
||||
name: url-shortener-event-listener
|
||||
namespace: tekton-ci
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: make-space-tekton-eventlistener-interceptors
|
||||
rules:
|
||||
- apiGroups:
|
||||
- triggers.tekton.dev
|
||||
resources:
|
||||
- clusterinterceptors
|
||||
- clustertriggerbindings
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: make-space-tekton-eventlistener-interceptors
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: make-space-tekton-eventlistener-interceptors
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: make-space-event-listener
|
||||
namespace: tekton-ci
|
||||
Reference in new issue
Block a user