Skip to content
Snippets Groups Projects
Commit efc8aa07 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

#2 OZG-7121 helm: Use namespace-ca-issuer

parent 1d07b1a8
No related branches found
No related tags found
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1310 passed
...@@ -38,6 +38,9 @@ test: ...@@ -38,6 +38,9 @@ test:
.helm: .helm:
before_script: before_script:
- apk add --no-cache helm git curl - apk add --no-cache helm git curl
script:
- helm package --version=${HELM_CHART_VERSION} src/main/helm
- curl -u ${NEXUS_USER}:${NEXUS_PASSWORD} https://nexus.ozg-sh.de/service/rest/v1/components?repository=${NEXUS_HELM_REPO_NAME} -F file=@${PROJECT_ARTIFACTID}-${HELM_CHART_VERSION}.tgz
test-helm: test-helm:
stage: test stage: test
...@@ -83,13 +86,16 @@ push-merge-request-image-nexus: ...@@ -83,13 +86,16 @@ push-merge-request-image-nexus:
push-merge-request-helm-nexus: push-merge-request-helm-nexus:
stage: publish stage: publish
variables:
NEXUS_HELM_REPO_NAME: ozg-base-apps-snapshot
before_script: before_script:
- !reference [.get-version, before_script] - !reference [.get-version, before_script]
- !reference [.helm, before_script] - !reference [.helm, before_script]
script: script:
- export HELM_CHART_VERSION=${PROJECT_VERSION}-MR-${CI_MERGE_REQUEST_IID} - export HELM_CHART_VERSION=${PROJECT_VERSION}-MR-${CI_MERGE_REQUEST_IID}
- helm package --version=${HELM_CHART_VERSION} src/main/helm - !reference [.helm, script]
- curl -u ${NEXUS_USER}:${NEXUS_PASSWORD} https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps-snapshot -F file=@${PROJECT_ARTIFACTID}-${HELM_CHART_VERSION}.tgz - export HELM_CHART_VERSION=${PROJECT_VERSION}-MR-${CI_MERGE_REQUEST_IID}-${CI_COMMIT_SHORT_SHA}
- !reference [.helm, script]
rules: rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
when: manual when: manual
......
...@@ -12,9 +12,8 @@ spec: ...@@ -12,9 +12,8 @@ spec:
algorithm: ECDSA algorithm: ECDSA
size: 256 size: 256
issuerRef: issuerRef:
name: xta-test-cluster-issuer name: {{ include "app.namespace" . }}-ca-issuer
kind: ClusterIssuer kind: Issuer
group: cert-manager.io
duration: 8760h0m0s # 1 Jahr duration: 8760h0m0s # 1 Jahr
renewBefore: 5840h0m0s # 8 Monate renewBefore: 5840h0m0s # 8 Monate
commonName: {{ .Release.Name }} commonName: {{ .Release.Name }}
......
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: xta-test-cluster-issuer
namespace: {{ include "app.namespace" . }}
labels:
{{- include "app.defaultLabels" . | indent 4 }}
spec:
selfSigned: {}
\ 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