Skip to content

Commit ff55c06

Browse files
committed
make venafiConnection a root-level Helm option
Signed-off-by: Tim Ramlot <[email protected]>
1 parent 677f725 commit ff55c06

File tree

8 files changed

+41
-41
lines changed

8 files changed

+41
-41
lines changed

deploy/charts/venafi-kubernetes-agent/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ Cannot be used if `maxUnavailable` is set.
476476
Configure the maximum unavailable pods for disruptions. Can either be set to an integer (e.g. 1) or a percentage value (e.g. 25%).
477477
Cannot be used if `minAvailable` is set.
478478
479+
#### **venafiConnection.include** ~ `bool`
480+
> Default value:
481+
> ```yaml
482+
> false
483+
> ```
484+
485+
When set to false, the rendered output does not contain the. VenafiConnection CRDs and RBAC. This is useful for when the. Venafi Connection resources are already installed separately.
479486
### CRDs
480487
481488
@@ -494,12 +501,5 @@ The 'x-kubernetes-validations' annotation is not supported in Kubernetes 1.22 an
494501
> ```
495502
496503
This option makes it so that the "helm.sh/resource-policy": keep annotation is added to the CRD. This will prevent Helm from uninstalling the CRD when the Helm release is uninstalled.
497-
#### **crds.venafiConnection.include** ~ `bool`
498-
> Default value:
499-
> ```yaml
500-
> false
501-
> ```
502-
503-
When set to false, the rendered output does not contain the. VenafiConnection CRDs and RBAC. This is useful for when the. Venafi Connection resources are already installed separately.
504504
505505
<!-- /AUTO-GENERATED -->

deploy/charts/venafi-kubernetes-agent/crd_bases/crd.header-without-validations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{/* DO NOT EDIT. Use 'make generate-crds-venconn' to regenerate. */}}
2-
{{- if .Values.crds.venafiConnection.include }}
2+
{{- if .Values.venafiConnection.include }}
33
{{- if (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
44
apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
@@ -12,4 +12,4 @@ metadata:
1212
helm.sh/resource-policy: keep
1313
{{- end }}
1414
labels:
15-
{{- include "venafi-connection.labels" . | nindent 4 }}
15+
{{- include "venafi-connection.labels" $ | nindent 4 }}

deploy/charts/venafi-kubernetes-agent/crd_bases/crd.header.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{/* DO NOT EDIT. Use 'make generate-crds-venconn' to regenerate. */}}
2-
{{- if .Values.crds.venafiConnection.include }}
2+
{{- if .Values.venafiConnection.include }}
33
{{- if not (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
44
apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
@@ -12,4 +12,4 @@ metadata:
1212
helm.sh/resource-policy: keep
1313
{{- end }}
1414
labels:
15-
{{- include "venafi-connection.labels" . | nindent 4 }}
15+
{{- include "venafi-connection.labels" $ | nindent 4 }}

deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-crd.without-validations.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{/* DO NOT EDIT. Use 'make generate-crds-venconn' to regenerate. */}}
2-
{{- if .Values.crds.venafiConnection.include }}
2+
{{- if .Values.venafiConnection.include }}
33
{{- if (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
44
apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
@@ -12,7 +12,7 @@ metadata:
1212
helm.sh/resource-policy: keep
1313
{{- end }}
1414
labels:
15-
{{- include "venafi-connection.labels" . | nindent 4 }}
15+
{{- include "venafi-connection.labels" $ | nindent 4 }}
1616
spec:
1717
group: jetstack.io
1818
names:

deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{/* DO NOT EDIT. Use 'make generate-crds-venconn' to regenerate. */}}
2-
{{- if .Values.crds.venafiConnection.include }}
2+
{{- if .Values.venafiConnection.include }}
33
{{- if not (or (semverCompare "<1.25" .Capabilities.KubeVersion.GitVersion) .Values.crds.forceRemoveValidationAnnotations) }}
44
apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
@@ -12,7 +12,7 @@ metadata:
1212
helm.sh/resource-policy: keep
1313
{{- end }}
1414
labels:
15-
{{- include "venafi-connection.labels" . | nindent 4 }}
15+
{{- include "venafi-connection.labels" $ | nindent 4 }}
1616
spec:
1717
group: jetstack.io
1818
names:

deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-rbac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.crds.venafiConnection.include }}
1+
{{- if .Values.venafiConnection.include }}
22
# The 'venafi-connection' service account is used by multiple
33
# controllers. When configuring which resources a VenafiConnection
44
# can access, the RBAC rules you create manually must point to this SA.
@@ -43,4 +43,4 @@ subjects:
4343
- kind: ServiceAccount
4444
name: venafi-connection
4545
namespace: {{ $.Release.Namespace | quote }}
46-
{{- end }}
46+
{{- end }}

deploy/charts/venafi-kubernetes-agent/values.schema.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
"tolerations": {
7676
"$ref": "#/$defs/helm-values.tolerations"
7777
},
78+
"venafiConnection": {
79+
"$ref": "#/$defs/helm-values.venafiConnection"
80+
},
7881
"volumeMounts": {
7982
"$ref": "#/$defs/helm-values.volumeMounts"
8083
},
@@ -275,9 +278,6 @@
275278
},
276279
"keep": {
277280
"$ref": "#/$defs/helm-values.crds.keep"
278-
},
279-
"venafiConnection": {
280-
"$ref": "#/$defs/helm-values.crds.venafiConnection"
281281
}
282282
},
283283
"type": "object"
@@ -292,20 +292,6 @@
292292
"description": "This option makes it so that the \"helm.sh/resource-policy\": keep annotation is added to the CRD. This will prevent Helm from uninstalling the CRD when the Helm release is uninstalled.",
293293
"type": "boolean"
294294
},
295-
"helm-values.crds.venafiConnection": {
296-
"additionalProperties": false,
297-
"properties": {
298-
"include": {
299-
"$ref": "#/$defs/helm-values.crds.venafiConnection.include"
300-
}
301-
},
302-
"type": "object"
303-
},
304-
"helm-values.crds.venafiConnection.include": {
305-
"default": false,
306-
"description": "When set to false, the rendered output does not contain the. VenafiConnection CRDs and RBAC. This is useful for when the. Venafi Connection resources are already installed separately.",
307-
"type": "boolean"
308-
},
309295
"helm-values.extraArgs": {
310296
"default": [],
311297
"description": "Specify additional arguments to pass to the agent binary. For example, to enable JSON logging use `--logging-format`, or to increase the logging verbosity use `--log-level`.\nThe log levels are: 0=Info, 1=Debug, 2=Trace.\nUse 6-9 for increasingly verbose HTTP request logging.\nThe default log level is 0.\n\nExample:\nextraArgs:\n- --logging-format=json\n- --log-level=6 # To enable HTTP request logging",
@@ -638,6 +624,20 @@
638624
"items": {},
639625
"type": "array"
640626
},
627+
"helm-values.venafiConnection": {
628+
"additionalProperties": false,
629+
"properties": {
630+
"include": {
631+
"$ref": "#/$defs/helm-values.venafiConnection.include"
632+
}
633+
},
634+
"type": "object"
635+
},
636+
"helm-values.venafiConnection.include": {
637+
"default": false,
638+
"description": "When set to false, the rendered output does not contain the. VenafiConnection CRDs and RBAC. This is useful for when the. Venafi Connection resources are already installed separately.",
639+
"type": "boolean"
640+
},
641641
"helm-values.volumeMounts": {
642642
"default": [],
643643
"description": "Additional volume mounts to add to the Venafi Kubernetes Agent container. This is useful for mounting a custom CA bundle. Any PEM certificate mounted under /etc/ssl/certs will be loaded by the Venafi Kubernetes Agent. For\nexample:\n\nvolumeMounts:\n - name: cabundle\n mountPath: /etc/ssl/certs/cabundle\n subPath: cabundle\n readOnly: true",

deploy/charts/venafi-kubernetes-agent/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,13 @@ podDisruptionBudget:
285285
# +docs:property
286286
# maxUnavailable: 1
287287

288+
# Optionally include the VenafiConnection CRDs
289+
venafiConnection:
290+
# When set to false, the rendered output does not contain the
291+
# VenafiConnection CRDs and RBAC. This is useful for when the
292+
# Venafi Connection resources are already installed separately.
293+
include: false
294+
288295
# +docs:section=CRDs
289296
# The CRDs installed by this chart are annotated with "helm.sh/resource-policy: keep", this
290297
# prevents them from being accidentally removed by Helm when this chart is deleted. After
@@ -301,10 +308,3 @@ crds:
301308
# annotation is added to the CRD. This will prevent Helm from uninstalling
302309
# the CRD when the Helm release is uninstalled.
303310
keep: false
304-
305-
# Optionally include the VenafiConnection CRDs
306-
venafiConnection:
307-
# When set to false, the rendered output does not contain the
308-
# VenafiConnection CRDs and RBAC. This is useful for when the
309-
# Venafi Connection resources are already installed separately.
310-
include: false

0 commit comments

Comments
 (0)