-
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.
Merge branch 'prerelease/lagoon_v218' into storage-calculator-metrics
- Loading branch information
Showing
17 changed files
with
131 additions
and
69 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.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d461edfdb | ||
- v1.24.15@sha256:7db4f8bea3e14b82d12e044e25e34bd53754b7f2b0e9d56df21774e6f66a70ab | ||
- v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b35be0c8 | ||
- v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb | ||
- v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952d5b31 | ||
- v1.23.17@sha256:14d0a9a892b943866d7e6be119a06871291c517d279aedb816a4b4bc0ec0a5b3 | ||
- v1.24.17@sha256:bad10f9b98d54586cba05a7eaa1b61c6b90bfc4ee174fdc43a7b75ca75c95e51 | ||
- v1.25.16@sha256:e8b50f8e06b44bb65a93678a65a26248fae585b3d3c2a669e5ca6c90c69dc519 | ||
- v1.26.14@sha256:5d548739ddef37b9318c70cb977f57bf3e5015e4552be4e27e57280a8cbb8e4f | ||
- v1.27.11@sha256:681253009e68069b8e01aad36a1e0fa8cf18bb0ab3e5c4069b2e65cafdd70843 | ||
- v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -26,7 +27,7 @@ jobs: | |
run: sudo apt-get -y install python3-wheel | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected].0 | ||
uses: helm/[email protected].1 | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
|
@@ -41,9 +42,9 @@ jobs: | |
run: ct lint --config ./default.ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.9.0 | ||
with: | ||
version: v0.20.0 | ||
version: v0.22.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 |
---|---|---|
|
@@ -69,7 +69,7 @@ jobs: | |
run: sudo apt-get -y install python3-wheel | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected].0 | ||
uses: helm/[email protected].1 | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
|
@@ -84,18 +84,23 @@ jobs: | |
run: ct lint --config ./default.ct.yaml | ||
|
||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.9.0 | ||
with: | ||
version: v0.20.0 | ||
node_image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 | ||
kubectl_version: v1.27.3 | ||
version: v0.22.0 | ||
node_image: kindest/node:v1.28.7@sha256:9bc6c451a289cf96ad0bbaf33d416901de6fd632415b076ab05f5fa7e4f65c58 | ||
kubectl_version: v1.28.7 | ||
if: | | ||
(steps.list-changed.outputs.changed == 'true') || | ||
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) | ||
- name: Run chart-testing (install) | ||
run: ct install --config ./default.ct.yaml --helm-extra-args "--timeout 30m" | ||
|
||
- name: Run chart-testing (needs-testing) | ||
run: ct install --config ./default.ct.yaml --helm-extra-args "--timeout 30m" --all | ||
if: | | ||
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) | ||
artifacthub-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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 |
---|---|---|
|
@@ -19,13 +19,6 @@ jobs: | |
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
# See https://github.com/helm/chart-releaser-action/issues/6 | ||
- name: Install Helm | ||
run: | | ||
curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | ||
chmod 700 get_helm.sh | ||
./get_helm.sh | ||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com | ||
|
@@ -35,6 +28,6 @@ jobs: | |
helm repo add kube-logging https://kube-logging.github.io/helm-charts | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.5.0 | ||
uses: helm/chart-releaser-action@v1.6.0 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: pull_request | |
jobs: | ||
# runs for lagoon-core, lagoon-remote, lagoon-test | ||
test-suite: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -48,7 +48,7 @@ jobs: | |
run: sudo apt-get -y install python3-wheel | ||
|
||
- name: Set up chart-testing | ||
uses: helm/[email protected].0 | ||
uses: helm/[email protected].1 | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
|
@@ -69,14 +69,14 @@ jobs: | |
envsubst < test-suite.kind-config.yaml.tpl > test-suite.kind-config.yaml | ||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.9.0 | ||
if: | | ||
(steps.list-changed.outputs.changed == 'true') || | ||
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) | ||
with: | ||
version: v0.20.0 | ||
node_image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 | ||
kubectl_version: v1.27.3 | ||
version: v0.22.0 | ||
node_image: kindest/node:v1.28.7@sha256:9bc6c451a289cf96ad0bbaf33d416901de6fd632415b076ab05f5fa7e4f65c58 | ||
kubectl_version: v1.28.7 | ||
config: test-suite.kind-config.yaml | ||
|
||
- name: Check node IP matches kind configuration | ||
|
@@ -123,8 +123,8 @@ jobs: | |
if: | | ||
(steps.list-changed.outputs.changed == 'true') || | ||
(contains(github.event.pull_request.labels.*.name, 'needs-testing')) | ||
# run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test }}] IMAGE_REGISTRY=testlagoon IMAGE_TAG=main OVERRIDE_BUILD_DEPLOY_DIND_IMAGE=uselagoon/build-deploy-image:main OVERRIDE_ACTIVE_STANDBY_TASK_IMAGE=testlagoon/task-activestandby:main | ||
run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test }}] | ||
run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test }}] IMAGE_REGISTRY=testlagoon IMAGE_TAG=main OVERRIDE_BUILD_DEPLOY_DIND_IMAGE=uselagoon/build-deploy-image:main OVERRIDE_ACTIVE_STANDBY_TASK_IMAGE=testlagoon/task-activestandby:main | ||
# run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test }}] | ||
|
||
- name: Free up some disk space | ||
if: | | ||
|
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
55 changes: 55 additions & 0 deletions
55
charts/lagoon-logging/templates/tests/cdn-service-annotations.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,55 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: service-reader | ||
annotations: | ||
"helm.sh/hook": test | ||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded | ||
"helm.sh/hook-weight": "-2" | ||
rules: | ||
- apiGroups: [""] # "" indicates the core API group | ||
resources: ["services"] | ||
verbs: ["get", "watch", "list"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: read-services | ||
annotations: | ||
"helm.sh/hook": test | ||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded | ||
"helm.sh/hook-weight": "-1" | ||
subjects: | ||
- kind: Group | ||
name: system:serviceaccounts # all serviceaccounts | ||
apiGroup: rbac.authorization.k8s.io | ||
roleRef: | ||
kind: Role | ||
name: service-reader | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{ include "lagoon-logging.logsDispatcher.fullname" . }}-test-cdn-service-annotations | ||
labels: | ||
{{- include "lagoon-logging.logsDispatcher.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": test | ||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded | ||
"helm.sh/hook-weight": "0" | ||
spec: | ||
containers: | ||
- name: kubectl | ||
image: alpine:latest | ||
command: | ||
- sh | ||
args: | ||
- "-c" | ||
- | | ||
set -eu | ||
apk add --no-cache kubectl jq | ||
kubectl get svc -o json {{ include "lagoon-logging.cdnLogsCollector.fullname" . }} | | ||
jq -e '.metadata.annotations["sh.lagoon.chart.testKey"] == "lagoonTestValue"' | ||
restartPolicy: Never |
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.