-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
139 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
charts/cert-manager-issuers/examples/awspcaclusterissuer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
awspcaIssuers: | ||
- name: example | ||
spec: | ||
arn: <some-pca-arn> | ||
region: eu-west-1 | ||
secretRef: | ||
namespace: default | ||
name: example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
awspcaClusterIssuers: | ||
- name: example | ||
spec: | ||
arn: <some-pca-arn> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
charts/cert-manager-issuers/templates/awspcaclusterissuers.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- range .Values.awspcaClusterIssuers }} | ||
--- | ||
# raw issuer: {{ . | toJson }} | ||
{{- $enabled := printf "%t" .enabled }} | ||
{{- if regexMatch "nil" $enabled }}{{- $enabled = "true" }}{{- end }} | ||
{{- if (eq $enabled "true") }} | ||
apiVersion: awspca.cert-manager.io/v1beta1 | ||
kind: AWSPCAClusterIssuer | ||
{{ template "cert-manager-issuers.metadata" (dict "data" . "root" $) }} | ||
spec: | ||
{{- .spec | toYaml | nindent 2 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- range .Values.awspcaIssuers }} | ||
--- | ||
# raw issuer: {{ . | toJson }} | ||
{{- $enabled := printf "%t" .enabled }} | ||
{{- if regexMatch "nil" $enabled }}{{- $enabled = "true" }}{{- end }} | ||
{{- if (eq $enabled "true") }} | ||
apiVersion: awspca.cert-manager.io/v1beta1 | ||
kind: AWSPCAIssuer | ||
{{ template "cert-manager-issuers.metadata" (dict "data" . "root" $) }} | ||
spec: | ||
{{- .spec | toYaml | nindent 2 }} | ||
{{- end }} | ||
{{- end }} |
14 changes: 14 additions & 0 deletions
14
charts/cert-manager-issuers/tests/__snapshot__/awspcaclusterissuers_test.yaml.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
should create a AWSPCAIssuer: | ||
1: | | ||
apiVersion: awspca.cert-manager.io/v1beta1 | ||
kind: AWSPCAClusterIssuer | ||
metadata: | ||
labels: | ||
app.kubernetes.io/app: cert-manager-issuers | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/version: "1" | ||
helm.sh/chart: cert-manager-issuers-0.3.0 | ||
name: example | ||
spec: | ||
arn: <some-pca-arn> |
18 changes: 18 additions & 0 deletions
18
charts/cert-manager-issuers/tests/__snapshot__/awspcaissuers_test.yaml.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
should create a AWSPCAClusterIssuer: | ||
1: | | ||
apiVersion: awspca.cert-manager.io/v1beta1 | ||
kind: AWSPCAIssuer | ||
metadata: | ||
labels: | ||
app.kubernetes.io/app: cert-manager-issuers | ||
app.kubernetes.io/instance: RELEASE-NAME | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/version: "1" | ||
helm.sh/chart: cert-manager-issuers-0.3.0 | ||
name: example | ||
spec: | ||
arn: <some-pca-arn> | ||
region: eu-west-1 | ||
secretRef: | ||
name: example | ||
namespace: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
charts/cert-manager-issuers/tests/awspcaclusterissuers_test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
suite: AWSPCAClusterIssuer tests | ||
templates: | ||
- awspcaclusterissuers.yaml | ||
tests: | ||
- it: should create a AWSPCAIssuer | ||
values: | ||
- ../examples/awspcaissuer.yaml | ||
asserts: | ||
- matchSnapshot: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
suite: AWSPCAIssuer tests | ||
templates: | ||
- awspcaissuers.yaml | ||
tests: | ||
- it: should create a AWSPCAClusterIssuer | ||
values: | ||
- ../examples/awspcaclusterissuer.yaml | ||
asserts: | ||
- matchSnapshot: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters