Skip to content

Commit 1a445f9

Browse files
committed
sourcev1: drop defaults for optional fields
1 parent bcfc9ab commit 1a445f9

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

api/v1/gitrepository_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ type GitRepositorySpec struct {
9696
// Provider used for authentication, can be 'azure', 'github', 'generic'.
9797
// When not specified, defaults to 'generic'.
9898
// +kubebuilder:validation:Enum=generic;azure;github
99-
// +kubebuilder:default:=generic
10099
// +optional
101100
Provider string `json:"provider,omitempty"`
102101

api/v1/helmrepository_types.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ type HelmRepositorySpec struct {
100100
// and for remote OCI Repository operations like pulling for an OCI helm
101101
// chart by the associated HelmChart.
102102
// Its default value is 60s.
103-
// +kubebuilder:default="60s"
104103
// +kubebuilder:validation:Type=string
105104
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(ms|s|m))+$"
106105
// +optional

config/crd/bases/source.toolkit.fluxcd.io_gitrepositories.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ spec:
104104
pattern: ^([0-9]+(\.[0-9]+)?(ms|s|m|h))+$
105105
type: string
106106
provider:
107-
default: generic
108107
description: |-
109108
Provider used for authentication, can be 'azure', 'github', 'generic'.
110109
When not specified, defaults to 'generic'.

config/crd/bases/source.toolkit.fluxcd.io_helmrepositories.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ spec:
162162
HelmRepository.
163163
type: boolean
164164
timeout:
165-
default: 60s
166165
description: |-
167166
Timeout is used for the index fetch operation for an HTTPS helm repository,
168167
and for remote OCI Repository operations like pulling for an OCI helm

0 commit comments

Comments
 (0)