Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
477897b
Added the ingress defaultBackend as an option
TobyTheHutt Jul 26, 2023
bfee6ce
Bump common Chart version
TobyTheHutt Jul 26, 2023
d78a693
Updated common documentation
TobyTheHutt Jul 26, 2023
338132f
Regenerated documentation
TobyTheHutt Jul 27, 2023
417fe3b
Corrected documentation generation
TobyTheHutt Jul 27, 2023
736ca49
Made defaultBackend of Ingress config exclusive
TobyTheHutt Jul 27, 2023
0458d51
Modified ingress.ingress template
TobyTheHutt Jul 27, 2023
2463981
Corrected ingress.ingress template
TobyTheHutt Jul 27, 2023
cbff31b
Merge pull request #105 from bedag/service-monitors
lucakuendig Jul 27, 2023
1ea87b4
Merge branch 'master' into feature/ingress_defaultBackend
TobyTheHutt Jul 27, 2023
fc17db5
Merge pull request #106 from bedag/feature/ingress_defaultBackend
TobyTheHutt Jul 27, 2023
e974446
[common]: quote extraLabel value
brjos Aug 4, 2023
9ca5bf2
Merge pull request #108 from brjos/master
brjos Aug 7, 2023
a68d9d6
Changed `pullSecret` from `string` to `bool`
TobyTheHutt Aug 7, 2023
a675ea4
Bumped common Chart version to 10.3.2
TobyTheHutt Aug 7, 2023
8159fcc
Regenerated documentation
TobyTheHutt Aug 7, 2023
c0cdb7a
Merge pull request #110 from bedag/feat/pullsecret_handling
TobyTheHutt Aug 17, 2023
1ecdf91
[common] Add ability to add external pvcs to containers
Aug 18, 2023
106efc2
Merge branch 'master' into master
adberger Aug 18, 2023
c19a5c2
[common] Add ability to set configMaps & secret for every container i…
Aug 18, 2023
6b22d5a
Merge pull request #111 from adberger/master
adberger Aug 18, 2023
21161bf
Merge pull request #112 from adberger/master
adberger Aug 18, 2023
acd8da1
[common]: Add ability to set defaultMode for all configFiles
Aug 21, 2023
5b11e56
Merge pull request #113 from adberger/master
adberger Aug 21, 2023
ba9028a
[common]: Fix ability to set configMaps & secret for every container …
Sep 1, 2023
2ddda80
Merge pull request #114 from adberger/master
adberger Sep 1, 2023
43bdc6a
[common]: add envfrom (#115)
oliverbaehler Sep 18, 2023
7327135
feat: add tpl for labels and annotations (#116)
oliverbaehler Sep 20, 2023
455a32b
Make pullSecret configurable
Oct 26, 2023
c51a6aa
Merge pull request #118 from adberger/master
adberger Oct 27, 2023
5a1cd83
[common]: includes as values
brjos Oct 30, 2023
89ff521
Removing variable 'KUBERNETES_SERVICE_HOST' from no_proxy in vcluster
chillTschill Oct 30, 2023
4948fa2
Merge pull request #119 from brjos/master
brjos Oct 30, 2023
6fb2621
feat(common): add volume type csi
janlauber Oct 30, 2023
dadd6af
fix(common): _pod.yaml
janlauber Oct 30, 2023
532ed46
Merge pull request #121 from janlauber/add-csi-volumes
adberger Oct 31, 2023
74650be
fix(common): rendering of csi volume
janlauber Oct 31, 2023
6197547
Merge pull request #122 from janlauber/add-csi-volumes
adberger Oct 31, 2023
36fd3db
Merge branch 'master' into master
lucakuendig Oct 31, 2023
431085e
Merge pull request #120 from chillTschill/master
wthhub Oct 31, 2023
a43dad5
fix: [common] common chart duplicated init container #123
fanks4 Nov 15, 2023
5568cca
fix: unify merges
Nightreaver Nov 17, 2023
28177e3
chore: version bump
Nightreaver Nov 17, 2023
1e1a778
chore: add init-containers to ci yaml
Nightreaver Nov 17, 2023
50b0a3b
Merge pull request #124 from bedag/123-common-common-chart-duplicated…
Nightreaver Nov 20, 2023
1b5b6a9
feat: Add scrapeTimeout to serviceMonitor endpoints, fix: inclusion o…
Nov 23, 2023
cc98285
Merge pull request #125 from adberger/master
adberger Nov 23, 2023
3e5d740
fix: nodeSelector overrides for all components
Jan 3, 2024
00438ec
fix: make affinity for coredns configurable
Jan 3, 2024
55dc456
Merge pull request #126 from adberger/master
adberger Jan 4, 2024
8c5281d
fix: some etcd backup job values werde not intended correctly
Jan 4, 2024
61cb0d4
Merge pull request #127 from adberger/master
adberger Jan 4, 2024
629564b
fix(vcluster): delete uds file if it already exists when starting kon…
adberger Feb 26, 2024
2e3776f
Merge pull request #128 from adberger/master
adberger Feb 26, 2024
38572f7
fix(vcluster): Template empty string instead of nil
adberger Mar 11, 2024
603d8c8
Merge pull request #129 from adberger/master
adberger Mar 11, 2024
8908a52
[feat]: enable host aliases in common chart
wthhub Apr 12, 2024
1a7217d
[chore]: bump feature version
wthhub Apr 12, 2024
0bacd0b
docs: add configuration example in values.yaml
wthhub Apr 18, 2024
8342aa7
Merge pull request #130 from bedag/feat/enable-setting-hostaliases-in…
wthhub Apr 18, 2024
e43a02c
[vcluster]: Add audit feature to apiserver
Sep 30, 2024
d4c1ae1
fix: Do not run chart-testing (install) in GitHub workflows
Oct 7, 2024
068442e
fix: Switch to https for dependency in vcluster again
Oct 7, 2024
3ae8528
fix: casting of integers in vclusters
Oct 7, 2024
e9bf266
fix: Remove subPath from configMap file mount in vcluster
Oct 7, 2024
708ecbb
Merge pull request #133 from adberger/master
adberger Oct 7, 2024
5bfe874
feat(common): making multiple ingress objects possible
ln-ro Oct 4, 2024
5e13566
fix(common): name of tls secret in ingress
ln-ro Oct 7, 2024
e9f6752
Merge pull request #134 from bedag/feat/ingresses
ln-ro Oct 7, 2024
4b88bc2
fix[vcluster]: add release name to audit logs as prefix
Oct 11, 2024
2f01696
Merge pull request #137 from adberger/master
adberger Oct 11, 2024
044a62d
feat(common): support defining multiple hosts for one ingress
wthhub Oct 30, 2024
2eee6fc
feat(common): add pr number
wthhub Oct 30, 2024
3d1ceff
feat(common): add pr number
wthhub Oct 30, 2024
b0562cb
fix[vcluster]: switch kubeProxyReplacement to true instead of depreca…
Nov 14, 2024
39175aa
Merge pull request #139 from adberger/master
adberger Nov 14, 2024
2962bdd
docs: update documentation
wthhub Nov 15, 2024
4a5c6bf
docs: update documentation
wthhub Nov 15, 2024
25cc997
docs: update documentation
wthhub Nov 15, 2024
a05eb63
Merge branch 'master' into feat/add-multiple-hosts-for-ingress
wthhub Nov 15, 2024
3fab132
Merge pull request #138 from bedag/feat/add-multiple-hosts-for-ingress
wthhub Nov 15, 2024
0885c9b
fix[vcluster]: respect bgpControlPlane in lifecycle.cilium
Nov 27, 2024
fc443a7
Merge pull request #140 from adberger/master
adberger Nov 27, 2024
c2a9d36
fix[vcluster]: remove unused values, fix references
Dec 16, 2024
2f03aba
feat[vcluster]: allow installation of online manifests, disable autos…
Dec 16, 2024
816e799
Merge pull request #141 from adberger/master
adberger Dec 16, 2024
99f66e5
chore: update github workflows
Dec 16, 2024
77899ab
Merge pull request #142 from adberger/master
adberger Dec 16, 2024
576db64
chore: Update pre-commit hooks
Dec 16, 2024
06a06f9
chore: Update helm-docs & chart-testing
Dec 16, 2024
eec5f2b
[vcluster]: chore - switch dependency to oci helm chart
Dec 16, 2024
37305bd
fix: unresolvable version of chart-testing-action
Dec 16, 2024
09ff749
Merge pull request #143 from adberger/master
adberger Dec 16, 2024
81f3a48
[vcluster]: fix - use ServerSideApply for lifecycle tasks
Dec 18, 2024
5f8dabf
Merge pull request #144 from adberger/master
adberger Dec 18, 2024
3356c43
[vcluster]: fix - vcluster lifecycle tasks
Dec 19, 2024
b244440
Merge pull request #145 from adberger/master
adberger Dec 19, 2024
21bb8cc
feat(common): appVersion as optional value
gnaex Dec 19, 2024
ebdb948
Merge branch 'bedag:master' into master
gnaex Dec 19, 2024
68c1c42
Merge pull request #146 from gnaex/master
wthhub Jan 6, 2025
dd9219f
[common]: enable mounting of existing cm
wthhub Jan 6, 2025
9458129
[common]: enable mounting of existing cm
wthhub Jan 6, 2025
07e8e4a
[common]: update version number and enable the feature when items is set
wthhub Jan 6, 2025
b58864c
[common]: update version number and enable the feature when items is set
wthhub Jan 6, 2025
edfcf47
Merge pull request #147 from bedag/feat/common-enable-mounting-of-exi…
wthhub Jan 6, 2025
c387dd5
feat: enable mounting of existing secrets and allow optional flag for…
wthhub Feb 13, 2025
2887753
feat: fix typos in commentary
wthhub Feb 27, 2025
aa421e2
feat: enable annotations for pvcs
wthhub Feb 27, 2025
c3ea5c8
Merge pull request #148 from bedag/feat/common-enable-mounting-of-exi…
wthhub Feb 27, 2025
cd7660b
feat: bump version
wthhub Feb 27, 2025
f71b3d7
Merge branch 'master' into feat/common-enable-annotations-for-pvcs
wthhub Feb 27, 2025
4300c52
feat: bump version
wthhub Feb 27, 2025
8343e21
Merge pull request #149 from bedag/feat/common-enable-annotations-for…
wthhub Mar 7, 2025
ae0020d
[vcluster]: feat - udpate etcd, add better probes for etcd, etcd thro…
Jul 18, 2025
cd30093
[vcluster]: fix - indentation of cleanup job
Jul 19, 2025
18dfb5b
[vcluster]: fix - typo in proxy envs
Jul 19, 2025
1b3384e
[vcluster]: chore - fix typos and spelling
brjos Jul 18, 2025
8c80736
Merge pull request #1 from brjos/master
adberger Jul 21, 2025
7ab4c77
[vcluster]: fix - bugs in imagePullSecrets
Jul 21, 2025
dd53015
Merge pull request #151 from adberger/master
adberger Jul 21, 2025
dcbb8ec
[vcluster]: fix - always expose all etcd endpoitns for etcdctl
Jul 21, 2025
bafa022
Merge pull request #152 from adberger/master
adberger Jul 21, 2025
b29d0d9
[workflows]: chore - update helm, ct & github workflow versions
Aug 5, 2025
3af46d8
Merge pull request #154 from adberger/master
adberger Aug 5, 2025
952f1b2
chore: update CODEOWNERS
Aug 6, 2025
08bd5c9
Merge pull request #155 from adberger/master
adberger Aug 6, 2025
0f5b2f2
[vcluster]: update etcd to latest
Aug 18, 2025
2d55d7b
Merge pull request #156 from adberger/master
adberger Aug 18, 2025
fc72e14
[common]: enable ClusterIP for all service types
wthhub Aug 18, 2025
c288b35
[common]: enable ClusterIP for all service types
wthhub Aug 18, 2025
61a6740
[common]: Enable ClusterIP for all service types
wthhub Aug 21, 2025
b83a5e9
[vcluster]: add secondary pull registries, add mirror registries, rem…
Sep 19, 2025
edc8419
Merge pull request #158 from adberger/master
adberger Sep 19, 2025
10812c3
[vcluster]: remove mirror registries
Sep 21, 2025
00bfcf8
[vcluster]: remove redundant whitespaces
Sep 25, 2025
6bea52b
[vcluster]: add separate lifecycle values for every component using it
Sep 25, 2025
a593434
[all]: bump version
Sep 25, 2025
dc6839a
[vcluster]: add separate values for machine-controller & operating-sy…
Sep 25, 2025
0643305
[vcluster]: remove deprecated environment variable of etcd named ETCD…
Sep 29, 2025
378942c
Merge pull request #159 from adberger/master
adberger Sep 29, 2025
a2c72d5
[vcluster]: remove bitnami common subchart
Sep 30, 2025
e4a7bb9
[vcluster]: add optional etcd defragmentation CronJob
Sep 30, 2025
345d3d1
Merge pull request #160 from adberger/master
adberger Oct 1, 2025
7f21d4d
[common]: add support for terminationGracePeriodSeconds
jub-bedag Jul 29, 2025
50b88c4
Merge pull request #153 from jub-bedag/master
fanks4 Oct 1, 2025
bebf6d5
[vcluster]: Update osm crds, enable osm controller by default, disabl…
Oct 27, 2025
9759bc2
Merge pull request #163 from adberger/master
adberger Oct 28, 2025
11c9290
[vcluster]: add support for audit webhook backend
larsgerber Oct 16, 2025
5430f3d
Merge pull request #162 from bedag/feat/vcluster-audit
larsgerber Nov 7, 2025
9e2b282
[vcluster]: mount webhook configmap as directory
larsgerber Nov 7, 2025
112a3e7
Merge pull request #164 from bedag/feat/vcluster-audit
larsgerber Nov 7, 2025
71d28e7
[vcluster]: add konnectivity server controlplane connection settings
larsgerber Nov 17, 2025
874d227
Merge pull request #165 from bedag/feat/vcluster-audit
larsgerber Nov 17, 2025
8f8d3ab
[vcluster]: remove webhook subdirectory in /var/log directory
larsgerber Nov 18, 2025
6ccea84
Merge pull request #166 from bedag/feat/vcluster-audit
larsgerber Nov 18, 2025
ec8c6f4
[vcluster]: remove Helm chart labels from matchLabel selector
larsgerber Nov 20, 2025
144d04e
Merge pull request #167 from bedag/fix/selector-labels
larsgerber Nov 20, 2025
c3d711b
[vcluster]: add checksums to trigger pod restarts only on config chan…
larsgerber Nov 28, 2025
da449c4
feat: add support for topologySpreadConstraints
fanks4 Apr 7, 2026
ecbeec6
Merge pull request #173 from bedag/feat/topologySpreadConstraints
fanks4 Apr 7, 2026
a3e06a0
[workflows]: update actions to use sha
wthhub Apr 9, 2026
1e89334
Merge pull request #175 from bedag/update-release-actions-to-use-sha
wthhub Apr 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4.3.0
with:
version: latest
version: v3.18.4 # Also update in release.yml

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.3.1
uses: helm/chart-testing-action@v2.7.0

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -53,20 +53,3 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml --lint-conf lintconf.yaml
if: steps.list-changed.outputs.changed == 'true'

- name: Create kind cluster
uses: helm/kind-action@v1.5.0
if: steps.list-changed.outputs.changed == 'true'
#with:
# kubectl_version: v1.22.0

# Install Dependencies
- name: Install Required dependencies
if: steps.list-changed.outputs.changed == 'true'
run: |
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
kubectl create -f https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.58.0/bundle.yaml

- name: Run chart-testing (install)
run: ct install --config ct.yaml
if: steps.list-changed.outputs.changed == 'true'
2 changes: 1 addition & 1 deletion .github/workflows/pr-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/size-label-action@v0.4.2"
uses: "pascalgn/size-label-action@v0.5.5"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: morrisoncole/pr-lint-action@v1.5.0
- uses: morrisoncole/pr-lint-action@v1.7.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title-regex: '^\[[a-zA-Z0-9\,\_\-]+\]\:.+'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0
with:
version: v3.10.1 # Also update in lint-and-test.yaml
version: v3.18.4 # Also update in lint-and-test.yml

- name: Add dependency chart repos
run: |
Expand All @@ -35,7 +35,7 @@ jobs:
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.1
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
with:
charts_dir: charts
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ Sessionx.vim
.idea/
.intellij/
*.iml
.project
.settings
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.3.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
exclude_types: ['markdown']
stages: [commit]
stages: [pre-commit]
- id: trailing-whitespace
exclude_types: ['markdown']
stages: [commit]
stages: [pre-commit]
- id: mixed-line-ending
stages: [commit]
stages: [pre-commit]
- id: check-byte-order-marker
stages: [commit]
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [commit]
stages: [pre-commit]
- id: check-merge-conflict

- repo: local
Expand All @@ -26,11 +26,11 @@ repos:
args: ["helm-docs"]
language: system
pass_filenames: false
stages: [commit]
stages: [pre-commit]
- id: ct-lint
name: ct-lint
entry: make
args: ["helm-lint"]
language: system
pass_filenames: false
stages: [commit]
stages: [pre-commit]
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @bedag/sre
* @bedag/syx2 @bedag/apc
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Helm
SRC_ROOT = $(shell git rev-parse --show-toplevel)

helm-docs: HELMDOCS_VERSION := v1.11.0
helm-docs: HELMDOCS_VERSION := v1.14.2
helm-docs: docker
@docker run -v "$(SRC_ROOT):/helm-docs" jnorwood/helm-docs:$(HELMDOCS_VERSION) --chart-search-root /helm-docs

helm-lint: CT_VERSION := v3.3.1
helm-lint: CT_VERSION := v3.13.0
helm-lint: docker
@docker run -v "$(SRC_ROOT):/workdir" --entrypoint /bin/sh quay.io/helmpack/chart-testing:$(CT_VERSION) -c "cd /workdir; ct lint --config ct.yaml --lint-conf lintconf.yaml --all --debug"

Expand Down
5 changes: 3 additions & 2 deletions charts/common/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: common
description: "Bedag's common Helm chart to use for creating other Helm charts"
version: 10.2.0
version: 12.7.0
# 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
Expand All @@ -27,4 +27,5 @@ annotations:
artifacthub.io/prerelease: "false"
artifacthub.io/license: Apache-2.0
artifacthub.io/changes: |
- "[Added]: support for clusterIP field"
- "[Changed]: extra annotations and labels support sprig statements"
- "[Added]: Possibility to optionally set appVersion in values"
45 changes: 25 additions & 20 deletions charts/common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# common

![Version: 10.2.0](https://img.shields.io/badge/Version-10.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 12.7.0](https://img.shields.io/badge/Version-12.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Bedag's common Helm chart to use for creating other Helm charts

Expand All @@ -23,32 +23,37 @@ Major Changes to functions are documented with the version affected. **Before up
|logPersistence removed|8.0.0|Removes logPersistence functionality as it can be achieved with volumeMounts & extraVolumeClaimTemplates and is buggy anyway.|https://github.com/bedag/helm-charts/pull/68|
|networkpolicy template changes|9.0.0|add possibility to define more than one Port in networkpolicy|https://github.com/bedag/helm-charts/pull/70|
|networkpolicy template changes|10.0.0|add possibility to create multiple networkpolicies|https://github.com/bedag/helm-charts/pull/77|
|ingress template changes|11.0.0|add possibility to create multiple ingress objects|https://github.com/bedag/helm-charts/pull/134
|ingress template changes|12.0.0|support defining multiple hosts and secrets for one ingress|https://github.com/bedag/helm-charts/pull/138

# Values by Component

## Ingress

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| ingress.annotations | object | `{"nginx.ingress.kubernetes.io/ssl-redirect":"true"}` | annotations is a dictionary for defining ingress controller specific annotations |
| ingress.deploy | bool | `false` | deploy has to be set to true for rendering to be applied |
| ingress.ingressClassName | string | `""` | ingressClassName, defines the class of the ingress controller. |
| ingress.rules[0] | object | `{"host":"myapp.cluster.local","http":{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]}}` | host is the URL which ingress is listening |
| ingress.rules[0].http | object | `{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]}` | http is a list of http selectors pointing to backends |
| ingress.rules[0].http.paths | list | `[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]` | paths is a list of paths that map requests to backends |
| ingress.rules[0].http.paths[0] | object | `{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}` | backend defines the referenced service endpoint to which the traffic will be forwarded to |
| ingress.rules[0].http.paths[0].backend.serviceNameSuffix | string | `"component-1"` | serviceNameSuffix describes the suffix of the serviceName |
| ingress.rules[0].http.paths[0].backend.servicePort | string | `"http"` | servicePort describes the port where the service is listening at (can be either a string or a number) |
| ingress.rules[0].http.paths[0].path | string | `"/"` | path which ingress is listening |
| ingress.rules[0].http.paths[0].pathType | string | `"ImplementationSpecific"` | pathType Each path in an Ingress is required to have a corresponding path type. Comment out for using default ("ImplementationSpecific") |
| ingress.tls.existing.secret | string | `""` | name of an existing secret with tls.crt & tls.key content |
| ingress.tls.provided.cert | string | `""` | If SSL is terminated on ingress and you have a generated (preferrably CERT-001) certificate/key Has to be base64 encoded and should be encrypted in the ejson vault Add Variable to your CI/CD Settings "SKIP_DECRYPT" with value "" that it doesnt decrypt the cert and fails. |
| ingress.tls.provided.key | string | `""` | The key must not have a passphrase |
| ingress.tls.self | object | `{"alternativeDnsNames":[],"commonName":"*.cluster.local","ipAddresses":[],"validityDuration":365}` | depending on the type you have further configuration options: |
| ingress.tls.self.alternativeDnsNames | list | `[]` | alternativeDnsNames is an optional list of DNS names to add in the Subject Alternative Names (SAN) sectiom |
| ingress.tls.self.commonName | string | `"*.cluster.local"` | commonName of the certificate (mandatory) |
| ingress.tls.self.ipAddresses | list | `[]` | ipAddresses is an optional list of IP addresses to add in the Subject Alternative Names (SAN) section |
| ingress.tls.self.validityDuration | int | `365` | validityDuration defines how long the certificate is valid (in days) |
| ingresses.ingress-1.annotations | object | `{"nginx.ingress.kubernetes.io/ssl-redirect":"true"}` | annotations is a dictionary for defining ingress controller specific annotations |
| ingresses.ingress-1.annotations."nginx.ingress.kubernetes.io/ssl-redirect" | string | `"true"` | nginx.ingress.kubernetes.io/ssl-redirect needs to be set to 'true' when using SSL/TLS offloading with a LB outside of Kubernetes |
| ingresses.ingress-1.deploy | bool | `false` | deploy has to be set to true for rendering to be applied |
| ingresses.ingress-1.ingressClassName | string | `""` | ingressClassName, defines the class of the ingress controller. |
| ingresses.ingress-1.rules | list | `[{"host":"myapp.cluster.local","http":{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]},"secretName":""}]` | rules is a list of host rules used to configure the Ingress |
| ingresses.ingress-1.rules[0] | object | `{"host":"myapp.cluster.local","http":{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]},"secretName":""}` | host is the URL which ingress is listening |
| ingresses.ingress-1.rules[0].http | object | `{"paths":[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]}` | http is a list of http selectors pointing to backends |
| ingresses.ingress-1.rules[0].http.paths | list | `[{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}]` | paths is a list of paths that map requests to backends |
| ingresses.ingress-1.rules[0].http.paths[0] | object | `{"backend":{"serviceNameSuffix":"component-1","servicePort":"http"},"path":"/","pathType":"ImplementationSpecific"}` | backend defines the referenced service endpoint to which the traffic will be forwarded to |
| ingresses.ingress-1.rules[0].http.paths[0].backend.serviceNameSuffix | string | `"component-1"` | serviceNameSuffix describes the suffix of the serviceName |
| ingresses.ingress-1.rules[0].http.paths[0].backend.servicePort | string | `"http"` | servicePort describes the port where the service is listening at (can be either a string or a number) |
| ingresses.ingress-1.rules[0].http.paths[0].path | string | `"/"` | path which ingress is listening |
| ingresses.ingress-1.rules[0].http.paths[0].pathType | string | `"ImplementationSpecific"` | pathType Each path in an Ingress is required to have a corresponding path type. Comment out for using default ("ImplementationSpecific") |
| ingresses.ingress-1.rules[0].secretName | string | `""` | name of existing secrets with tls.crt & tls.key content |
| ingresses.ingress-1.tls.provided.cert | string | `""` | If SSL is terminated on ingress and you have a generated (preferrably CERT-001) certificate/key Has to be base64 encoded and should be encrypted in the ejson vault Add Variable to your CI/CD Settings "SKIP_DECRYPT" with value "" that it doesnt decrypt the cert and fails. |
| ingresses.ingress-1.tls.provided.key | string | `""` | The key must not have a passphrase |
| ingresses.ingress-1.tls.self | object | `{"alternativeDnsNames":[],"commonName":"*.cluster.local","ipAddresses":[],"validityDuration":365}` | depending on the type you have further configuration options: |
| ingresses.ingress-1.tls.self.alternativeDnsNames | list | `[]` | alternativeDnsNames is an optional list of DNS names to add in the Subject Alternative Names (SAN) sectiom |
| ingresses.ingress-1.tls.self.commonName | string | `"*.cluster.local"` | commonName of the certificate (mandatory) |
| ingresses.ingress-1.tls.self.ipAddresses | list | `[]` | ipAddresses is an optional list of IP addresses to add in the Subject Alternative Names (SAN) section |
| ingresses.ingress-1.tls.self.validityDuration | int | `365` | validityDuration defines how long the certificate is valid (in days) |
| ingresses.ingress-1.tls.type | string | `"none"` | define your type of tls certificate, it can be one of: none: tls will be disabled existing: use an existing secret already present in the namespace. Requires `secretName` to be specified in `.rules.host` provided: use an officially generated certificate/key k8s: use the default k8s-ingress tls. no further configuration needed self: generate a self signed certificate, which is stored as secret. Needs commonName and validityDuration at least |

## ServiceMonitor

Expand Down
4 changes: 3 additions & 1 deletion charts/common/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Major Changes to functions are documented with the version affected. **Before up
|logPersistence removed|8.0.0|Removes logPersistence functionality as it can be achieved with volumeMounts & extraVolumeClaimTemplates and is buggy anyway.|https://github.com/bedag/helm-charts/pull/68|
|networkpolicy template changes|9.0.0|add possibility to define more than one Port in networkpolicy|https://github.com/bedag/helm-charts/pull/70|
|networkpolicy template changes|10.0.0|add possibility to create multiple networkpolicies|https://github.com/bedag/helm-charts/pull/77|
|ingress template changes|11.0.0|add possibility to create multiple ingress objects|https://github.com/bedag/helm-charts/pull/134
|ingress template changes|12.0.0|support defining multiple hosts and secrets for one ingress|https://github.com/bedag/helm-charts/pull/138
{{/*
Chart Values
*/}}
Expand All @@ -49,7 +51,7 @@ Major Changes to functions are documented with the version affected. **Before up

{{ template "table.heading" . }}
{{- range .Values }}
{{- if and (hasPrefix "ingress." .Key) }}
{{- if and (hasPrefix "ingresses.ingress-1" .Key) }}
| {{ .Key }} | {{ .Type }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} |
{{- end }}
{{- end }}
Expand Down
66 changes: 66 additions & 0 deletions charts/common/ci/values.test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# includes is used to include the desired template functions (see templates/includes.yaml)
includes:
networkpolicy: true
deployment: true
statefulset: true
service: true
envSecret: true
envConfigMap: true
# files is needed for mounted volumes (secrets or configmaps)
files: true
configFiles: true
binaryFiles: true
pvcs: true
job: true
cronjob: true

# start common.ingress
ingress:
deploy: true
Expand Down Expand Up @@ -64,6 +80,15 @@ components:
controller:
deploy: true
type: "Deployment"
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"

containers:
container-1:
Expand Down Expand Up @@ -139,6 +164,12 @@ components:
mountPath: /opt/my-binary-license
content: 'base64 encoded data'
resources: {}
initContainers:
init-container-1:
image:
repository: db-init
tag: "latest"
resources: {}
component-2:
# start common.service
services:
Expand Down Expand Up @@ -179,7 +210,22 @@ components:
- name: emptydir-volume
type: "emptyDir"
sizeLimit: 100Mi
- name: secret-store
type: "csi"
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "azure-kvname"

hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"
containers:
container-1:
image:
Expand Down Expand Up @@ -257,6 +303,16 @@ components:
runAsNonRoot: true
runAsUser: 1001

hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"

# start containers
# dictionary of containers in a pod
containers:
Expand Down Expand Up @@ -317,6 +373,16 @@ components:
runAsNonRoot: true
runAsUser: 1001

hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"

# start containers
# dictionary of containers in a pod
containers:
Expand Down
2 changes: 1 addition & 1 deletion charts/common/templates/_binaryfiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{- if $componentValues.controller }}
{{- if $componentValues.controller.deploy }}
{{- if or $componentValues.controller.containers $componentValues.controller.initContainers }}
{{- $containers := merge ($componentValues.controller.containers | default dict) ($componentValues.controller.initContainers | default dict) }}
{{- $containers := merge (dict) ($componentValues.controller.containers | default dict) ($componentValues.controller.initContainers | default dict) }}
{{- range $containerName, $containerValues := $containers }}
{{- $configBinarys := $containerValues.binaryFiles }}
{{- if $configBinarys }}
Expand Down
2 changes: 1 addition & 1 deletion charts/common/templates/_configfiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Sensitive configs goes inside a Secret and non-sensitive configs are put in a Co
{{- if $componentValues.controller }}
{{- if $componentValues.controller.deploy }}
{{- if or $componentValues.controller.containers $componentValues.controller.initContainers }}
{{- $containers := merge ($componentValues.controller.containers | default dict) ($componentValues.controller.initContainers | default dict) }}
{{- $containers := merge (dict) ($componentValues.controller.containers | default dict) ($componentValues.controller.initContainers | default dict) }}
{{- range $containerName, $containerValues := $containers }}
{{- $configFiles := $containerValues.configFiles }}
{{- if $configFiles }}
Expand Down
Loading
Loading