Skip to content

Commit

Permalink
Merge pull request #19150 from richardkchapman/helmlint
Browse files Browse the repository at this point in the history
HPCC-32722 Spurious errors from helm lint with certificates enabled

Reviewed-by: Jake Smith <[email protected]>
Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Oct 10, 2024
2 parents b08c180 + fc260a2 commit 9edf4a8
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/hpcc/templates/esp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ data:
{{- end -}}
{{- $signingEnabled := eq (include "hpcc.isIssuerEnabled" (dict "root" $ "issuerKeyName" "signing")) "true" -}}
{{- $generateSigningCert := and ($signingEnabled) (eq $application "eclwatch") -}}
{{- $signingCertGenerator := and ($signingEnabled) (has $application (list "eclwatch" "eclservices")) | ternary "eclwatch" "" -}}
{{- $signingCertGenerator := and ($signingEnabled) (has $application (list "eclwatch" "eclservices")) | ternary "eclwatch" "" }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
56 changes: 56 additions & 0 deletions testing/helm/tests/certs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
certificates:
enabled: true
issuers:
local:
name: hpcc-local-issuer
## kind can be changed to ClusterIssue to refer to a ClusterIssuer. https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.ClusterIssuer
kind: Issuer
## do not define spec (set spec: null), to reference an Issuer resource that already exists in the cluster
## change spec if you'd like to change how certificates get issued... see ## https://cert-manager.io/docs/configuration/#supported-issuer-types
## for information on what spec should contain.
spec:
ca:
secretName: hpcc-local-issuer-key-pair
public:
name: hpcc-public-issuer
## kind can be changed to ClusterIssue to refer to a ClusterIssuer. https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.ClusterIssuer
kind: Issuer
## do not define spec (set spec: null), to reference an Issuer resource that already exists in the cluster
## change spec if you'd like to change how certificates get issued... see ## https://cert-manager.io/docs/configuration/#supported-issuer-types
## for information on what spec should contain.
spec:
selfSigned: {}
vaultclient:
name: hpcc-vaultclient-issuer
enabled: false
## domain: hpcc.example.com
rolePrefix: "hpcc-"
kind: Issuer
## do not define spec (set spec: null), to reference an Issuer resource that already exists in the cluster
## change spec if you'd like to change how certificates get issued... see ## https://cert-manager.io/docs/configuration/#supported-issuer-types
## for information on what spec should contain.
spec:
ca:
secretName: hpcc-vaultclient-issuer-key-pair
remote:
name: hpcc-remote-issuer
## set enabled to true if adding remoteClients for any components
enabled: false
## kind can be changed to ClusterIssue to refer to a ClusterIssuer. https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.ClusterIssuer
kind: Issuer
## do not define spec (set spec: null), to reference an Issuer resource that already exists in the cluster
## change spec if you'd like to change how certificates get issued... see ## https://cert-manager.io/docs/configuration/#supported-issuer-types
## for information on what spec should contain.
spec:
ca:
secretName: hpcc-remote-issuer-key-pair
signing: # intended to be used for signing/verification purposes only, e.g. by dafilesrv
name: hpcc-signing-issuer
## kind can be changed to ClusterIssue to refer to a ClusterIssuer. https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.ClusterIssuer
kind: Issuer
## do not define spec (set spec: null), to reference an Issuer resource that already exists in the cluster
## change spec if you'd like to change how certificates get issued... see ## https://cert-manager.io/docs/configuration/#supported-issuer-types
## for information on what spec should contain.
spec:
ca:
secretName: hpcc-signing-issuer-key-pair

0 comments on commit 9edf4a8

Please sign in to comment.