From 13e65a8b5b71019c3dafdb6f66f0bcdfe8f618e0 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Tue, 15 Oct 2024 10:11:11 +0200 Subject: [PATCH] . --- .gitea/workflows/lint-test.yaml | 48 +++++++++ charts/azure-agent/.helmignore | 23 +++++ charts/azure-agent/Chart.yaml | 24 +++++ charts/azure-agent/azure-agent-0.4.0.tgz | Bin 0 -> 2885 bytes charts/azure-agent/templates/_helpers.tpl | 62 ++++++++++++ .../azure-agent/templates/agent-secret.yaml | 9 ++ charts/azure-agent/templates/deployment.yaml | 92 ++++++++++++++++++ .../azure-agent/templates/harbor-secret.yaml | 10 ++ .../templates/required_values.yaml | 6 ++ .../azure-agent/templates/rolebindings.yaml | 20 ++++ .../azure-agent/templates/serviceaccount.yaml | 13 +++ charts/azure-agent/values.yaml | 73 ++++++++++++++ 12 files changed, 380 insertions(+) create mode 100644 .gitea/workflows/lint-test.yaml create mode 100644 charts/azure-agent/.helmignore create mode 100644 charts/azure-agent/Chart.yaml create mode 100644 charts/azure-agent/azure-agent-0.4.0.tgz create mode 100644 charts/azure-agent/templates/_helpers.tpl create mode 100644 charts/azure-agent/templates/agent-secret.yaml create mode 100644 charts/azure-agent/templates/deployment.yaml create mode 100644 charts/azure-agent/templates/harbor-secret.yaml create mode 100644 charts/azure-agent/templates/required_values.yaml create mode 100644 charts/azure-agent/templates/rolebindings.yaml create mode 100644 charts/azure-agent/templates/serviceaccount.yaml create mode 100644 charts/azure-agent/values.yaml diff --git a/.gitea/workflows/lint-test.yaml b/.gitea/workflows/lint-test.yaml new file mode 100644 index 0000000..ef04300 --- /dev/null +++ b/.gitea/workflows/lint-test.yaml @@ -0,0 +1,48 @@ +name: Lint and Test Charts + +on: + push: + branches: + - main + +jobs: + lint-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v4.2.0 + with: + version: v3.14.4 + + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.7.0 + + - name: Run chart-testing (list-changed) + id: list-changed + run: | + changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) + if [[ -n "$changed" ]]; then + echo "changed=true" >> "$GITHUB_OUTPUT" + fi + + - name: Run chart-testing (lint) + if: steps.list-changed.outputs.changed == 'true' + run: ct lint --target-branch ${{ github.event.repository.default_branch }} + + - name: Create kind cluster + if: steps.list-changed.outputs.changed == 'true' + uses: helm/kind-action@v1.10.0 + + - name: Run chart-testing (install) + if: steps.list-changed.outputs.changed == 'true' + run: ct install --target-branch ${{ github.event.repository.default_branch }} diff --git a/charts/azure-agent/.helmignore b/charts/azure-agent/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/azure-agent/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/azure-agent/Chart.yaml b/charts/azure-agent/Chart.yaml new file mode 100644 index 0000000..1db0a9b --- /dev/null +++ b/charts/azure-agent/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: azure-agent +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.4.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "0.7" diff --git a/charts/azure-agent/azure-agent-0.4.0.tgz b/charts/azure-agent/azure-agent-0.4.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..c329e6f98da27cf8d4ba4822a290bb513a9f6b3b GIT binary patch literal 2885 zcmV-L3%c|liwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH(oZyPuAd0xQZVSe(jXq&56k}b=HfIhf!dJXE>hLxu16@@|V zjwIGxazk?ED30&5A4u+htz9QH64SRR6%~94^F5EmasJxs`iCtqL={LHYg=^$KO>7EFp2^bA>o%~jFO{9<#7_> z5K8*w=|ya6;+WBZ7zExt!`=1!e%E_y=C|cp+5YE*C8##<0Pe8=y@OuAZvTV9-q!vf zqwK;lPDsKuxY@T>O+Gk{@V#AlGouQq0s_Auy*_DAgp7#R7{Y`yGyumKFd`A=L{c(l zs6Y!CBg8~041sbjU?CC-8l#vIjmq~tt9C;VAd$@c#X{JBEv}FcJ#R+jSV#+?P+Hew zpomh}LWbsfCX{wPr5?gTx7+o+aYC7GG#yk-0#xP=pbaEcDtjzcUU{BG>z-bSgzF*n zJdZ|XYDbe83q`e%iy<&NmP9T(W%mXUCybp7MuWu=UQJGgK9{Im(=MFNQA!#bdCU+j zR?uV$*E69I!c^+iH9L=5cwgVhf=q|dYNZsNCyb3Skf_xV{`k|n+iVC6Hc1#;s`M1f zISueA2rPphKp>H59DQrz8P_O<~p&UZb&;bxjI;RY$80KJgGJu4kQzd9a zYxMi*^62>WtJ9XzA0-lLG%aKEH-tnbgs}xk3`7(m4}lA9>_WvD(8(g7{=7F39vT3K zWR9SX(Gg>Gf#52jB2i8{GeHBiHfprS*oN;clrSZLax=LKmC+|2xPPgY;TZ%6XvZFt+vEX1Y_cw z@~OqnC^sM^{3}tmJu(Au3{WW|7vEX_B}T$>j}Ro1EnqB(m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