Skip to content

Commit

Permalink
Fix Helm templating syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rottke <benjaminr@ecobee.com>
  • Loading branch information
xairos authored and terinjokes committed May 24, 2023
1 parent f2e8638 commit de44ccc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deploy/charts/origin-ca-issuer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: origin-ca-issuer
version: 0.5.0
version: 0.5.1
appVersion: 0.6.1
description: A Helm chart for origin-ca-issuer
home: https://github.com/cloudflare/origin-ca-issuer
Expand Down
10 changes: 5 additions & 5 deletions deploy/charts/origin-ca-issuer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To install the chart with the release name `my-release`:
helm install --name my-release --namespace origin-ca-issuer .
```

In order to begin issuer certificates from the Cloudflare Origin CA you will need to setup an OriginIssuer. For more information, see the [documentation](https://github.com/cloudflare/origin-ca-issuer/blob/trunk/README.org).
In order to begin issuing certificates from the Cloudflare Origin CA you will need to set up an OriginIssuer. For more information, see the [documentation](https://github.com/cloudflare/origin-ca-issuer/blob/trunk/README.org).

## Uninstalling the Chart

Expand Down Expand Up @@ -56,7 +56,7 @@ The following table lists the configurable parameters of the origin-ca-issuer ch
| `controller.podAnntoations` | Annotations to add to the origin-ca-issuer pods | `{}` |
| `controller.podLabels` | Labels to add to the origin-ca-issuer pods. | `{}` |
| `controller.replicaCount` | Number of origin-ca-issuer controller replicas | `1` |
| `controller.featureGates` | Comma-seperated list of feature gates to enable on the controller pod | `""` |
| `controller.featureGates` | Comma-separated list of feature gates to enable on the controller pod | `""` |
| `controller.extraArgs` | Optional flags for origin-ca-issuer | `[]` |
| `controller.extraEnv` | Optional environment variables for origin-ca-issuer | `[]` |
| `controller.serviceAccount.enable` | If `true`, create a new service account | `true` |
Expand All @@ -66,11 +66,11 @@ The following table lists the configurable parameters of the origin-ca-issuer ch
| `controller.securityContext` | Optional security context. The YAML block should adhere to the SecurityContext spec | `{}` |
| `controller.containerSecurityContext` | Optional container security context | `{}` |
| `controller.nodeSelector` | Node labels for pod assignment | `{}` |
| `controller.affinity` | Node (anti-)affinity for pod assignemt | `{}` |
| `controller.affinity` | Node (anti-)affinity for pod assignment | `{}` |
| `controller.tolerations` | Node tolerations for pod assignment | `{}` |
| `controller.disableApprovedCheck` | Disable waiting for CertificateRequests to be Approved before signing | `false` |
| `cert-manager.namespace ` | Namespace where the cert-manager controller is running. | `cert-manager` |
| `cert-manager.serviceAccountName` | The Service Account used by the cert-manager controller. | `cert-manager` |
| `certmanager.namespace` | Namespace where the cert-manager controller is running. | `cert-manager` |
| `certmanager.serviceAccountName` | The Service Account used by the cert-manager controller. | `cert-manager` |

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ roleRef:
name: cert-manager-controller-approve:cert-manager-k8s-cloudflare-com
subjects:
- kind: ServiceAccount
name: {{ template "cert-manager.serviceAccountName" . }}
namespace: {{ template "cert-manager.namespace" . }}
name: {{ .Values.certmanager.serviceAccountName }}
namespace: {{ .Values.certmanager.namespace }}
{{- end }}
2 changes: 1 addition & 1 deletion deploy/charts/origin-ca-issuer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ controller:
# ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core
tolerations: {}

cert-manager:
certmanager:
namespace: cert-manager
serviceAccountName: cert-manager

0 comments on commit de44ccc

Please sign in to comment.