feat(blog): register branch-based GitOps delivery
This commit is contained in:
1 parent
ecfc86c72f
commit
d6cbf1f23f
6 files changed
+75
-1
No files matched your search
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: blog-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/blog
|
||||||
|
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
|
server: https://kubernetes.default.svc
|
||||||
namespace: "{{index .path.segments 1}}-prod"
|
namespace: "{{index .path.segments 1}}-prod"
|
||||||
templatePatch: |
|
templatePatch: |
|
||||||
{{- if or (eq (index .path.segments 1) "url-shortener") (eq (index .path.segments 1) "make-space") }}
|
{{- if or (eq (index .path.segments 1) "url-shortener") (eq (index .path.segments 1) "make-space") (eq (index .path.segments 1) "blog") }}
|
||||||
spec:
|
spec:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
|
|||||||
@@ -100,5 +100,15 @@ metadata:
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: blog-staging
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: blog-prod
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: platform
|
name: platform
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
# Spec: Tekton CI/CD for lolympus-tournament-support
|
# Spec: Tekton CI/CD for lolympus-tournament-support
|
||||||
|
|
||||||
|
This document's original main-to-staging/manual-production contract is specific
|
||||||
|
to lolympus. Blog follows make-space: source `staging` and `prod` branches each
|
||||||
|
run a dedicated pipeline and both environments auto-sync. Blog registration is
|
||||||
|
`argocd/applications/blog-ci.yaml`; its complete delivery/secret contract is in
|
||||||
|
service-state `ci/blog/README.md` and `apps/blog/README.md`.
|
||||||
|
|
||||||
## Objective
|
## Objective
|
||||||
|
|
||||||
Build a GitOps-native staging delivery path for the lolympus monorepo on the
|
Build a GitOps-native staging delivery path for the lolympus monorepo on the
|
||||||
|
|||||||
@@ -23,3 +23,11 @@ spec:
|
|||||||
resourceGroupName: dahyeon
|
resourceGroupName: dahyeon
|
||||||
hostedZoneName: dahyeon.us
|
hostedZoneName: dahyeon.us
|
||||||
environment: AzurePublicCloud
|
environment: AzurePublicCloud
|
||||||
|
# rabbitmaus.com is outside the Azure DNS zone managed above.
|
||||||
|
# Public HTTP traffic for the ACME challenge must reach HAProxy.
|
||||||
|
- selector:
|
||||||
|
dnsNames:
|
||||||
|
- rabbitmaus.com
|
||||||
|
http01:
|
||||||
|
ingress:
|
||||||
|
ingressClassName: haproxy
|
||||||
@@ -81,3 +81,31 @@ subjects:
|
|||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: make-space-event-listener
|
name: make-space-event-listener
|
||||||
namespace: tekton-ci
|
namespace: tekton-ci
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: blog-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: blog-tekton-eventlistener-interceptors
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: blog-tekton-eventlistener-interceptors
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: blog-event-listener
|
||||||
|
namespace: tekton-ci
|
||||||
Reference in new issue
Block a user