feat: add Tekton Pipelines for CI/CD orchestration #46
@@ -0,0 +1,46 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: tekton-pipelines
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: tekton-pipelines
|
||||||
|
app.kubernetes.io/part-of: homelab-infra
|
||||||
|
wave: "06"
|
||||||
|
spec:
|
||||||
|
project: homelab
|
||||||
|
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/tektoncd/pipeline.git
|
||||||
|
targetRevision: main
|
||||||
|
path: config/release
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- Validate=false
|
||||||
|
- RespectIgnoreDifferences=true
|
||||||
|
retry:
|
||||||
|
limit: 5
|
||||||
|
backoff:
|
||||||
|
duration: 5s
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 3m
|
||||||
|
|
||||||
|
ignoreDifferences:
|
||||||
|
# Ignore webhook certificate changes (managed by cert-manager)
|
||||||
|
- group: admissionregistration.k8s.io
|
||||||
|
kind: ValidatingWebhookConfiguration
|
||||||
|
jsonPointers:
|
||||||
|
- /webhooks/0/clientConfig/caBundle
|
||||||
|
- group: admissionregistration.k8s.io
|
||||||
|
kind: MutatingWebhookConfiguration
|
||||||
|
jsonPointers:
|
||||||
|
- /webhooks/0/clientConfig/caBundle
|
||||||
@@ -45,6 +45,8 @@ spec:
|
|||||||
- https://stakater.github.io/stakater-charts
|
- https://stakater.github.io/stakater-charts
|
||||||
# ArgoCD ecosystem charts
|
# ArgoCD ecosystem charts
|
||||||
- https://argoproj.github.io/argo-helm
|
- https://argoproj.github.io/argo-helm
|
||||||
|
# Tekton Pipelines (CNCF CI/CD)
|
||||||
|
- https://github.com/tektoncd/pipeline.git
|
||||||
destinations:
|
destinations:
|
||||||
- server: https://kubernetes.default.svc
|
- server: https://kubernetes.default.svc
|
||||||
namespace: "*"
|
namespace: "*"
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: tekton-pipelines
|
||||||
|
|
||||||
|
# Tekton release includes CRDs, RBAC, controllers, webhook
|
||||||
|
# We use a remote base to stay on the latest stable release
|
||||||
|
bases:
|
||||||
|
- https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml?ref=main
|
||||||
|
|
||||||
|
# Add our local namespace override
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
|
||||||
|
# Common labels for all resources
|
||||||
|
commonLabels:
|
||||||
|
app: tekton
|
||||||
|
component: pipelines
|
||||||
|
managed-by: argocd
|
||||||
|
|
||||||
|
# Don't transform namespace - let the release define its own
|
||||||
|
# namespace: tekton-pipelines
|
||||||
|
|
||||||
|
patches:
|
||||||
|
# Ensure webhook is properly configured for validation
|
||||||
|
- target:
|
||||||
|
kind: ValidatingWebhookConfiguration
|
||||||
|
name: validation.webhook.pipeline.tekton.dev
|
||||||
|
patch: |-
|
||||||
|
- op: replace
|
||||||
|
path: /webhooks/0/failurePolicy
|
||||||
|
value: Fail
|
||||||
|
# Ensure mutation webhook is properly configured
|
||||||
|
- target:
|
||||||
|
kind: MutatingWebhookConfiguration
|
||||||
|
name: webhook.pipeline.tekton.dev
|
||||||
|
patch: |-
|
||||||
|
- op: replace
|
||||||
|
path: /webhooks/0/failurePolicy
|
||||||
|
value: Fail
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: tekton-pipelines
|
||||||
|
labels:
|
||||||
|
name: tekton-pipelines
|
||||||
|
managed-by: argocd
|
||||||
Reference in New Issue
Block a user