Skip to content

Commit

Permalink
feat(apps/dev/tekton): enable tekton
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo committed Sep 9, 2023
1 parent 131f662 commit 1835275
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 362 deletions.
2 changes: 1 addition & 1 deletion apps/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ resources:
- namespace.yaml
- prow-crd.yaml
- prow
# - tekton
- tekton
2 changes: 1 addition & 1 deletion apps/dev/tekton/configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
kind: GitRepository
name: flux-system
namespace: flux-system
path: ./apps/staging/tekton/configs
path: ./apps/dev/tekton/configs
dependsOn:
- name: tekton-setup
namespace: apps
Expand Down
24 changes: 24 additions & 0 deletions apps/dev/tekton/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: tekton-ingress
namespace: apps
spec:
interval: 1m0s
sourceRef:
kind: GitRepository
name: flux-system
namespace: flux-system
path: ./apps/dev/tekton/ingress
dependsOn:
- name: tekton-setup
namespace: apps
- name: tekton-configs
namespace: apps
prune: true
postBuild:
substituteFrom:
- kind: Secret
name: tekton-ingress # should manual created in namespace `apps`
optional: true
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ spec:
name: tekton-dashboard
port:
name: http

21 changes: 21 additions & 0 deletions apps/dev/tekton/ingress/ingress-event-listener.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: trigger-groups-listener
namespace: ee-cd
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: "${domain}"
http:
paths:
- pathType: Prefix
path: "${path_for_hook}(/|$)(.*)"
backend:
service:
name: el-trigger-groups-listener
port:
name: http-listener
5 changes: 5 additions & 0 deletions apps/dev/tekton/ingress/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ingress-dashboard.yaml
- ingress-event-listener.yaml
1 change: 1 addition & 0 deletions apps/dev/tekton/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ kind: Kustomization
resources:
- setup.yaml
- configs.yaml
# - ingress.yaml
33 changes: 32 additions & 1 deletion apps/dev/tekton/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ spec:
kind: GitRepository
name: flux-system
namespace: flux-system
path: ./apps/staging/tekton/setup
path: ./apps/dev/tekton/setup
prune: true
wait: true
healthChecks:
- apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -51,3 +52,33 @@ spec:
name: tekton-ingress # should manual created in namespace `apps`
optional: true
timeout: 5m0s
images:
- name: gcr.io/tekton-nightly/github.com/tektoncd/experimental/pipelines-in-pipelines/cmd/controller
newTag: v20230909-ee13de632e
patches:
# replace namespace
- target:
kind: Namespace
labelSelector: app.kubernetes.io/part-of=tekton-pip-run
patch: |
- op: replace
path: /metadata/name
value: tekton-pipelines
- target:
labelSelector: app.kubernetes.io/part-of=tekton-pip-run
namespace: tekton-pip-run
patch: |
- op: replace
path: /metadata/namespace
value: tekton-pip-run
# add container resources
- target:
kind: Deployment
labelSelector: app.kubernetes.io/part-of=tekton-pip-run
patch: |
- op: add
path: /spec/template/spec/containers/0/resources
value:
requests:
cpu: "100m"
memory: 200Mi
3 changes: 1 addition & 2 deletions apps/dev/tekton/setup/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ resources:
# renovate: datasource=github-releases depName=tektoncd/operator versioning=semver
- https://github.com/tektoncd/operator/releases/download/v0.65.1/release.yaml
- operator-config.yaml
- ingress-dashboard.yaml
- pip-release.yaml
- https://storage.googleapis.com/tekton-releases-nightly/pipelines-in-pipelines/latest/release.yaml
Loading

0 comments on commit 1835275

Please sign in to comment.