-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
341 additions
and
89 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 |
---|---|---|
|
@@ -11,11 +11,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
kindest_node_version: | ||
- v1.25.16@sha256:5da57dfc290ac3599e775e63b8b6c49c0c85d3fec771cd7d55b45fae14b38d3b | ||
- v1.26.15@sha256:84333e26cae1d70361bb7339efb568df1871419f2019c80f9a12b7e2d485fe19 | ||
- v1.27.13@sha256:17439fa5b32290e3ead39ead1250dca1d822d94a10d26f1981756cd51b24b9d8 | ||
- v1.28.9@sha256:dca54bc6a6079dd34699d53d7d4ffa2e853e46a20cd12d619a09207e35300bd0 | ||
- v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8 | ||
- v1.25.16@sha256:6110314339b3b44d10da7d27881849a87e092124afab5956f2e10ecdb463b025 | ||
- v1.26.15@sha256:1cc15d7b1edd2126ef051e359bf864f37bbcf1568e61be4d2ed1df7a3e87b354 | ||
- v1.27.17@sha256:3fd82731af34efe19cd54ea5c25e882985bafa2c9baefe14f8deab1737d9fabe | ||
- v1.28.13@sha256:45d319897776e11167e4698f6b14938eb4d52eb381d9e3d7a9086c16c69a8110 | ||
- v1.29.8@sha256:d46b7aa29567e93b27f7531d258c372e829d7224b25e3fc6ffdefed12476d3aa | ||
- v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -43,7 +44,7 @@ jobs: | |
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.23.0 | ||
version: v0.24.0 | ||
node_image: kindest/node:${{ matrix.kindest_node_version }} | ||
if: | | ||
(steps.list-changed.outputs.changed == 'true') || | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com | ||
helm repo add lagoon https://uselagoon.github.io/lagoon-charts/ | ||
helm repo add amazeeio https://amazeeio.github.io/charts/ | ||
helm repo add nats https://nats-io.github.io/k8s/helm/charts/ | ||
|
@@ -78,9 +77,9 @@ jobs: | |
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
version: v0.23.0 | ||
node_image: kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e | ||
kubectl_version: v1.30.0 | ||
version: v0.24.0 | ||
node_image: kindest/node:v1.30.4@sha256:976ea815844d5fa93be213437e3ff5754cd599b040946b5cca43ca45c2047114 | ||
kubectl_version: v1.30.4 | ||
if: | | ||
(steps.list-changed.outputs.changed == 'true') || | ||
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) | ||
|
@@ -96,6 +95,11 @@ jobs: | |
ct install --config ./default.ct.yaml --helm-extra-args "--timeout 30m" | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'next-release') }} | ||
|
||
- name: Run chart-testing (upgrade changed next-release only) | ||
run: | | ||
ct install --upgrade --config ./default.ct.yaml --helm-extra-args "--timeout 30m" | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'next-release') }} | ||
|
||
- name: Run chart-testing (install all charts when required) | ||
run: ct install --config ./default.ct.yaml --helm-extra-args "--timeout 30m" --all | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'next-release') || contains(github.event.pull_request.labels.*.name, 'needs-testing') }} | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: {{ include "lagoon-core.brokerFlagEnable.fullname" . }} | ||
labels: | ||
{{- include "lagoon-core.broker.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": pre-upgrade | ||
"helm.sh/hook-weight": "-5" | ||
spec: | ||
backoffLimit: 2 | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "lagoon-core.broker.selectorLabels" . | nindent 8 }} | ||
spec: | ||
restartPolicy: Never | ||
securityContext: | ||
{{- toYaml .Values.broker.securityContext | nindent 8 }} | ||
terminationGracePeriodSeconds: 120 | ||
containers: | ||
- name: broker-flag-enable | ||
args: | ||
- /enable-feature-flags.sh | ||
image: "{{ .Values.broker.image.repository }}:{{ coalesce .Values.broker.image.tag .Values.imageTag .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.broker.image.pullPolicy }} | ||
command: | ||
- /bin/sh | ||
- -c | ||
securityContext: | ||
{{- toYaml .Values.broker.securityContext | nindent 10 }} | ||
env: | ||
- name: RABBITMQ_DEFAULT_PASS | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "lagoon-core.broker.fullname" . }} | ||
key: RABBITMQ_PASSWORD | ||
- name: RABBITMQ_DEFAULT_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "lagoon-core.broker.fullname" . }} | ||
key: RABBITMQ_USERNAME | ||
- name: RABBITMQ_USE_LONGNAME | ||
value: "true" | ||
# these variables are used by the /cluster-rabbit.sh entrypoint | ||
- name: POD_NAMESPACE | ||
value: {{ .Release.Namespace | quote }} | ||
- name: SERVICE_NAME | ||
value: {{ include "lagoon-core.broker.fullname" . }} | ||
{{- range $key, $val := .Values.broker.additionalEnvs }} | ||
- name: {{ $key }} | ||
value: {{ $val | quote }} | ||
{{- end }} | ||
resources: | ||
{{- toYaml .Values.broker.resources | nindent 10 }} | ||
{{- with .Values.broker.nodeSelector }} | ||
nodeSelector: | ||
{{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.broker.tolerations }} | ||
tolerations: | ||
{{ toYaml . | nindent 8 }} | ||
{{- end }} |
Oops, something went wrong.