From 2741d0a150da36f03c821e5c29e38d75d366f0f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yohan=20Bell=C3=A9guic?=
Date: Mon, 9 Jan 2023 16:36:41 +0100
Subject: [PATCH] fix typo in helmRepo secretRef spec CRD
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
When using a TLS authentication, user can provide a custom certificate
by setting the caFile key in the secret, not caCert.
Signed-off-by: Yohan Belléguic
---
api/v1beta1/helmrepository_types.go | 2 +-
api/v1beta2/helmrepository_types.go | 2 +-
.../crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml | 4 ++--
docs/api/source.md | 4 ++--
docs/spec/v1alpha1/helmrepositories.md | 2 +-
docs/spec/v1beta1/helmrepositories.md | 2 +-
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/api/v1beta1/helmrepository_types.go b/api/v1beta1/helmrepository_types.go
index 62b0e9a6d..563173fe0 100644
--- a/api/v1beta1/helmrepository_types.go
+++ b/api/v1beta1/helmrepository_types.go
@@ -43,7 +43,7 @@ type HelmRepositorySpec struct {
// For HTTP/S basic auth the secret must contain username and
// password fields.
// For TLS the secret must contain a certFile and keyFile, and/or
- // caCert fields.
+ // caFile fields.
// +optional
SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"`
diff --git a/api/v1beta2/helmrepository_types.go b/api/v1beta2/helmrepository_types.go
index 64812f7e0..ebec2f7ca 100644
--- a/api/v1beta2/helmrepository_types.go
+++ b/api/v1beta2/helmrepository_types.go
@@ -51,7 +51,7 @@ type HelmRepositorySpec struct {
// For HTTP/S basic auth the secret must contain 'username' and 'password'
// fields.
// For TLS the secret must contain a 'certFile' and 'keyFile', and/or
- // 'caCert' fields.
+ // 'caFile' fields.
// +optional
SecretRef *meta.LocalObjectReference `json:"secretRef,omitempty"`
diff --git a/config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml b/config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml
index 37c0c63c6..1c6c0419c 100644
--- a/config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml
+++ b/config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml
@@ -92,7 +92,7 @@ spec:
description: The name of the secret containing authentication credentials
for the Helm repository. For HTTP/S basic auth the secret must contain
username and password fields. For TLS the secret must contain a
- certFile and keyFile, and/or caCert fields.
+ certFile and keyFile, and/or caFile fields.
properties:
name:
description: Name of the referent.
@@ -325,7 +325,7 @@ spec:
description: SecretRef specifies the Secret containing authentication
credentials for the HelmRepository. For HTTP/S basic auth the secret
must contain 'username' and 'password' fields. For TLS the secret
- must contain a 'certFile' and 'keyFile', and/or 'caCert' fields.
+ must contain a 'certFile' and 'keyFile', and/or 'caFile' fields.
properties:
name:
description: Name of the referent.
diff --git a/docs/api/source.md b/docs/api/source.md
index 0d1a8dd56..628de7c62 100644
--- a/docs/api/source.md
+++ b/docs/api/source.md
@@ -794,7 +794,7 @@ for the HelmRepository.
For HTTP/S basic auth the secret must contain ‘username’ and ‘password’
fields.
For TLS the secret must contain a ‘certFile’ and ‘keyFile’, and/or
-‘caCert’ fields.
+‘caFile’ fields.
@@ -2444,7 +2444,7 @@ for the HelmRepository.
For HTTP/S basic auth the secret must contain ‘username’ and ‘password’
fields.
For TLS the secret must contain a ‘certFile’ and ‘keyFile’, and/or
-‘caCert’ fields.
+‘caFile’ fields.
diff --git a/docs/spec/v1alpha1/helmrepositories.md b/docs/spec/v1alpha1/helmrepositories.md
index 966460dfd..e2d1bfc2f 100644
--- a/docs/spec/v1alpha1/helmrepositories.md
+++ b/docs/spec/v1alpha1/helmrepositories.md
@@ -19,7 +19,7 @@ type HelmRepositorySpec struct {
// repository.
// For HTTP/S basic auth the secret must contain username and
// password fields.
- // For TLS the secret must contain caFile, keyFile and caCert
+ // For TLS the secret must contain caFile, keyFile and caFile
// fields.
// +optional
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`
diff --git a/docs/spec/v1beta1/helmrepositories.md b/docs/spec/v1beta1/helmrepositories.md
index e00fd674e..c194a72a0 100644
--- a/docs/spec/v1beta1/helmrepositories.md
+++ b/docs/spec/v1beta1/helmrepositories.md
@@ -20,7 +20,7 @@ type HelmRepositorySpec struct {
// For HTTP/S basic auth the secret must contain username and
// password fields.
// For TLS the secret must contain a certFile and keyFile, and/or
- // caCert fields.
+ // caFile fields.
// +optional
SecretRef *corev1.LocalObjectReference `json:"secretRef,omitempty"`