@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- package v2alpha1
17
+ package v2beta1
18
18
19
19
import (
20
20
"encoding/json"
@@ -35,7 +35,7 @@ const HelmReleaseFinalizer = "finalizers.fluxcd.io"
35
35
36
36
// HelmReleaseSpec defines the desired state of a Helm release.
37
37
type HelmReleaseSpec struct {
38
- // Chart defines the template of the v1alpha1 .HelmChart that should be created
38
+ // Chart defines the template of the v1beta1 .HelmChart that should be created
39
39
// for this HelmRelease.
40
40
// +required
41
41
Chart HelmChartTemplate `json:"chart"`
@@ -155,31 +155,31 @@ func (in HelmReleaseSpec) GetUninstall() Uninstall {
155
155
}
156
156
157
157
// HelmChartTemplate defines the template from which the controller will
158
- // generate a v1alpha1 .HelmChart object in the same namespace as the referenced
159
- // v1alpha1 .Source.
158
+ // generate a v1beta1 .HelmChart object in the same namespace as the referenced
159
+ // v1beta1 .Source.
160
160
type HelmChartTemplate struct {
161
- // Spec holds the template for the v1alpha1 .HelmChartSpec for this HelmRelease.
161
+ // Spec holds the template for the v1beta1 .HelmChartSpec for this HelmRelease.
162
162
// +required
163
163
Spec HelmChartTemplateSpec `json:"spec"`
164
164
}
165
165
166
166
// HelmChartTemplateSpec defines the template from which the controller will
167
- // generate a v1alpha1 .HelmChartSpec object.
167
+ // generate a v1beta1 .HelmChartSpec object.
168
168
type HelmChartTemplateSpec struct {
169
169
// The name or path the Helm chart is available at in the SourceRef.
170
170
// +required
171
171
Chart string `json:"chart"`
172
172
173
- // Version semver expression, ignored for charts from v1alpha1 .GitRepository and
174
- // v1alpha1 .Bucket sources. Defaults to latest when omitted.
173
+ // Version semver expression, ignored for charts from v1beta1 .GitRepository and
174
+ // v1beta1 .Bucket sources. Defaults to latest when omitted.
175
175
// +optional
176
176
Version string `json:"version,omitempty"`
177
177
178
- // The name and namespace of the v1alpha1 .Source the chart is available at.
178
+ // The name and namespace of the v1beta1 .Source the chart is available at.
179
179
// +required
180
180
SourceRef CrossNamespaceObjectReference `json:"sourceRef"`
181
181
182
- // Interval at which to check the v1alpha1 .Source for updates. Defaults to
182
+ // Interval at which to check the v1beta1 .Source for updates. Defaults to
183
183
// 'HelmReleaseSpec.Interval'.
184
184
// +optional
185
185
Interval * metav1.Duration `json:"interval,omitempty"`
@@ -190,7 +190,7 @@ type HelmChartTemplateSpec struct {
190
190
ValuesFile string `json:"valuesFile,omitempty"`
191
191
}
192
192
193
- // GetInterval returns the configured interval for the v1alpha1 .HelmChart,
193
+ // GetInterval returns the configured interval for the v1beta1 .HelmChart,
194
194
// or the given default.
195
195
func (in HelmChartTemplate ) GetInterval (defaultInterval metav1.Duration ) metav1.Duration {
196
196
if in .Spec .Interval == nil {
@@ -200,7 +200,7 @@ func (in HelmChartTemplate) GetInterval(defaultInterval metav1.Duration) metav1.
200
200
}
201
201
202
202
// GetNamespace returns the namespace targeted namespace for the
203
- // v1alpha1 .HelmChart, or the given default.
203
+ // v1beta1 .HelmChart, or the given default.
204
204
func (in HelmChartTemplate ) GetNamespace (defaultNamespace string ) string {
205
205
if in .Spec .SourceRef .Namespace == "" {
206
206
return defaultNamespace
0 commit comments