Skip to content

Commit eea3c22

Browse files
committed
fix header formatting and some typos
Signed-off-by: Soule BA <soule@weave.works>
1 parent 244afa4 commit eea3c22

7 files changed

+26
-7
lines changed

api/v1beta1/helmrepository_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type HelmRepositorySpec struct {
7474
AccessFrom *acl.AccessFrom `json:"accessFrom,omitempty"`
7575

7676
// Type of the HelmRepository.
77-
// When this field is set to "OCI", the URL field value must be prefixed with "oci://".
77+
// When this field is set to "oci", the URL field value must be prefixed with "oci://".
7878
// +kubebuilder:validation:Enum=default;oci
7979
// +optional
8080
Type string `json:"type,omitempty"`

api/v1beta2/helmrepository_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type HelmRepositorySpec struct {
8383
AccessFrom *acl.AccessFrom `json:"accessFrom,omitempty"`
8484

8585
// Type of the HelmRepository.
86-
// When this field is set to "OCI", the URL field value must be prefixed with "oci://".
86+
// When this field is set to "oci", the URL field value must be prefixed with "oci://".
8787
// +kubebuilder:validation:Enum=default;oci
8888
// +optional
8989
Type string `json:"type,omitempty"`

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ spec:
110110
description: The timeout of index downloading, defaults to 60s.
111111
type: string
112112
type:
113-
description: Type of the HelmRepository. When this field is set to "OCI",
113+
description: Type of the HelmRepository. When this field is set to "oci",
114114
the URL field value must be prefixed with "oci://".
115115
enum:
116116
- default
@@ -338,7 +338,7 @@ spec:
338338
description: Timeout of the index fetch operation, defaults to 60s.
339339
type: string
340340
type:
341-
description: Type of the HelmRepository. When this field is set to "OCI",
341+
description: Type of the HelmRepository. When this field is set to "oci",
342342
the URL field value must be prefixed with "oci://".
343343
enum:
344344
- default

config/manager/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ resources:
66
images:
77
- name: fluxcd/source-controller
88
newName: fluxcd/source-controller
9-
newTag: v0.24.4
9+
newTag: latest

controllers/helmrepository_controller_oci_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
/*
22
Copyright 2022 The Flux authors
3+
34
Licensed under the Apache License, Version 2.0 (the "License");
45
you may not use this file except in compliance with the License.
56
You may obtain a copy of the License at
7+
68
http://www.apache.org/licenses/LICENSE-2.0
9+
710
Unless required by applicable law or agreed to in writing, software
811
distributed under the License is distributed on an "AS IS" BASIS,
912
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

controllers/helmrepository_predicate.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2022 The Flux authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package controllers
218

319
import (

docs/api/source.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ string
858858
<td>
859859
<em>(Optional)</em>
860860
<p>Type of the HelmRepository.
861-
When this field is set to &ldquo;OCI&rdquo;, the URL field value must be prefixed with &ldquo;oci://&rdquo;.</p>
861+
When this field is set to &ldquo;oci&rdquo;, the URL field value must be prefixed with &ldquo;oci://&rdquo;.</p>
862862
</td>
863863
</tr>
864864
</table>
@@ -2116,7 +2116,7 @@ string
21162116
<td>
21172117
<em>(Optional)</em>
21182118
<p>Type of the HelmRepository.
2119-
When this field is set to &ldquo;OCI&rdquo;, the URL field value must be prefixed with &ldquo;oci://&rdquo;.</p>
2119+
When this field is set to &ldquo;oci&rdquo;, the URL field value must be prefixed with &ldquo;oci://&rdquo;.</p>
21202120
</td>
21212121
</tr>
21222122
</tbody>

0 commit comments

Comments
 (0)