-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize deploying experience and adapt to a newer version of K8s(1.2…
…2+) (#9) * Fix that horizon-core could not launch successfully if gitlab has been restarted && Bump Tekton trigger verson to 0.17.0 to fix the issue that EventListener cannot be deleted in helm uninstallation && Fix that some resources cannot be applied to v1.22+ K8s because some v1beta resource versions are unavailable in v1.22+
- Loading branch information
Showing
123 changed files
with
4,409 additions
and
3,004 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.idea | ||
.vscode | ||
Chart.lock | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ secrets: | |
- name: git-secret{{ $i }} | ||
{{- end }} | ||
- name: git-token | ||
- name: harbor-secret | ||
- name: harbor-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
charts/horizon/charts/tektonci-resources/templates/horizon/trigger-el-v1beta.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{{- if .Values.enableV1betaEventListener }} | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: EventListener | ||
metadata: | ||
name: horizon-listener | ||
spec: | ||
serviceAccountName: tekton-triggers-sa | ||
resources: | ||
kubernetesResource: | ||
replicas: {{ .Values.eventListener.replicas }} | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- resources: | ||
requests: | ||
memory: 32Mi | ||
cpu: 1m | ||
limits: | ||
memory: 256Mi | ||
cpu: 100m | ||
triggers: | ||
- bindings: | ||
- ref: horizon-taskbinding | ||
template: | ||
ref: horizon-triggertemplate | ||
interceptors: | ||
- ref: | ||
name: "cel" | ||
params: | ||
- name: "overlays" | ||
value: | ||
- key: pipelineJSONBlob | ||
expression: "body.pipelineJSONBlob.marshalJSON()" | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 12 additions & 11 deletions
23
charts/horizon/charts/tektonci-resources/templates/horizon/trigger-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
{{- if .Values.horizon.ingress.hosts }} | ||
apiVersion: extensions/v1beta1 | ||
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} | ||
kind: Ingress | ||
metadata: | ||
name: horizon-listener | ||
spec: | ||
rules: | ||
{{- range .Values.horizon.ingress.hosts }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: el-horizon-listener | ||
servicePort: 8080 | ||
path: / | ||
{{- end }} | ||
{{- end }} | ||
{{- range .Values.horizon.ingress.hosts }} | ||
- host: {{ . }} | ||
http: | ||
paths: | ||
- path: / | ||
{{- if eq "true" (include "common.ingress.supportsPathType" $) }} | ||
pathType: ImplementationSpecific | ||
{{- end }} | ||
backend: {{- include "common.ingress.backend" (dict "serviceName" "el-horizon-listener" "servicePort" 8080 "context" $) | nindent 14 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.