Skip to content
Snippets Groups Projects
Commit c0f41e69 authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'OZG-3184 impl conditional cert issuer' (#28) from...

Merge pull request 'OZG-3184 impl conditional cert issuer' (#28) from OZG-3184-ConditionalCertIssuer into master

Reviewed-on: https://git.ozg-sh.de/mgm/user-manager/pulls/28
parents 151f8872 ba5ea1b5
Branches
Tags
No related merge requests found
# Helm
## Linter
`helm lint -f test-values.yaml`
## Unit-Tests
Für Unit-Tests wird das helm [helm-unittest](https://github.com/quintush/helm-unittest) plugin benötigt. Die Unit-Tests liegen im Verzeichnis src/test/helm
`helm unittest -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' .`
## SyntaxCheck
`helm template --debug -f test-values.yaml .`
## Package
`helm package --version=[version] .`
## Versionierung
Jenkins verwendet die Version aus der pom.xml
### Master Branch
Im master Branch werden die ersten 7 Zeichen vom git commit hash an die Version gehangen.
### Release Branch
Ist nur die Version aus der pom.xml
### Feature Branch
In einem feature Branch wird der Branchname an die Version gehangen.
......@@ -29,7 +29,11 @@ metadata:
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
more_set_headers "Access-Control-Allow-Origin: {{ (include "app.goofyAddress" .) }}";
{{- if (.Values.ingress).use_staging_cert }}
cert-manager.io/cluster-issuer: letsencrypt-staging
{{- else }}
cert-manager.io/cluster-issuer: letsencrypt-prod
{{- end }}
name: {{ include "app.name" . }}
namespace: {{ include "app.namespace" . }}
spec:
......
......@@ -46,3 +46,22 @@ tests:
path: spec.ingressClassName
- isNull:
path: spec.tls[0].secretName
- it: should use default letsencrypt-prod cluster-issuer
asserts:
- equal:
path: metadata.annotations.[cert-manager.io/cluster-issuer]
value: letsencrypt-prod
- it: should use letsencrypt-staging cluster-issuer
set:
ingress.use_staging_cert: true
asserts:
- equal:
path: metadata.annotations.[cert-manager.io/cluster-issuer]
value: letsencrypt-staging
- it: should use letsencrypt-prod cluster-issuer
set:
ingress.use_staging_cert: false
asserts:
- equal:
path: metadata.annotations.[cert-manager.io/cluster-issuer]
value: letsencrypt-prod
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment