Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tekton): setup tekton pipeline in devops namespace #2242 #2243

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions kubernetes/talos-flux/apps/devops/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
7 changes: 7 additions & 0 deletions kubernetes/talos-flux/apps/devops/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: devops
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
17 changes: 17 additions & 0 deletions kubernetes/talos-flux/apps/devops/tekton/flux-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1beta2.json
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: tekton-pipeline
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
interval: 15m
path: ./kubernetes/talos-flux/apps/devops/tekton/pipeline
prune: true
sourceRef:
kind: GitRepository
name: home-ops
wait: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: tekton-pipeline
spec:
interval: 15m
chart:
spec:
chart: tekton-pipeline
version: 1.0.2
sourceRef:
kind: HelmRepository
name: cdfoundation-tekton-charts
namespace: flux-system
maxHistory: 15
install:
createNamespace: true
crds: CreateReplace
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
# https://artifacthub.io/packages/helm/tekton/tekton-pipeline
# https://github.com/cdfoundation/tekton-helm-chart/tree/main/charts/tekton-pipeline
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: devops
resources:
- ./helm-release.yaml
commonLabels:
app.kubernetes.io/name: tekton
app.kubernetes.io/instance: tekton
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrepository-source-v1beta2.json
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: cdfoundation-tekton-charts
namespace: flux-system
spec:
interval: 30m
url: https://cdfoundation.github.io/tekton-helm-chart/
timeout: 3m