Skip to content

Commit

Permalink
Merge pull request #12 from adamrushuk/disable-cert-manager-option
Browse files Browse the repository at this point in the history
Added option to omit letsencrypt / cert-manager annotations
  • Loading branch information
adamrushuk authored Oct 18, 2020
2 parents f02ea1a + 821e577 commit 63f6804
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: sonatype-nexus
description: Sonatype Nexus is an open source repository manager
type: application
# This is the chart version
version: 0.2.6
version: 0.2.7
# This is the version number of the application being deployed
appVersion: 3.27.0
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/templates/cluster-issuer-prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.ingress.enabled -}}
{{- if .Values.ingress.certmanagerEnabled -}}
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/templates/cluster-issuer-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.ingress.enabled -}}
{{- if .Values.ingress.certmanagerEnabled -}}
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
Expand Down
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
kubernetes.io/ingress.class: nginx
{{- if eq .Values.ingress.letsencryptEnvironment "prod" }}
cert-manager.io/cluster-issuer: letsencrypt-prod
{{- else }}
{{- else if eq .Values.ingress.letsencryptEnvironment "staging" }}
cert-manager.io/cluster-issuer: letsencrypt-staging
{{- end }}
# fixes "413 Request Entity Too Large" error when pushing docker images
Expand Down
3 changes: 2 additions & 1 deletion charts/sonatype-nexus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ image:

ingress:
enabled: false
certmanagerEnabled: false
# use "staging" environment during testing to avoid rate limiting
# https://letsencrypt.org/docs/staging-environment/#rate-limits
# "staging" or "prod"
letsencryptEnvironment: "staging"
letsencryptEnvironment: ""
annotations:
nginx.org/hsts: "false"
tls:
Expand Down

0 comments on commit 63f6804

Please sign in to comment.