Deprecate v1beta1 APIs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
af6cfc4d61
commit
31c4df4a8d
|
@ -195,6 +195,7 @@ func (in *Bucket) GetInterval() metav1.Duration {
|
||||||
// +genclient
|
// +genclient
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
|
// +kubebuilder:deprecatedversion:warning="v1beta1 Bucket is deprecated, upgrade to v1beta2"
|
||||||
// +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.spec.endpoint`
|
// +kubebuilder:printcolumn:name="Endpoint",type=string,JSONPath=`.spec.endpoint`
|
||||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||||
|
|
|
@ -234,6 +234,7 @@ func (in *HelmChart) GetValuesFiles() []string {
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:resource:shortName=hc
|
// +kubebuilder:resource:shortName=hc
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
|
// +kubebuilder:deprecatedversion:warning="v1beta1 HelmChart is deprecated, upgrade to v1"
|
||||||
// +kubebuilder:printcolumn:name="Chart",type=string,JSONPath=`.spec.chart`
|
// +kubebuilder:printcolumn:name="Chart",type=string,JSONPath=`.spec.chart`
|
||||||
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
|
// +kubebuilder:printcolumn:name="Version",type=string,JSONPath=`.spec.version`
|
||||||
// +kubebuilder:printcolumn:name="Source Kind",type=string,JSONPath=`.spec.sourceRef.kind`
|
// +kubebuilder:printcolumn:name="Source Kind",type=string,JSONPath=`.spec.sourceRef.kind`
|
||||||
|
|
|
@ -184,6 +184,7 @@ func (in *HelmRepository) GetInterval() metav1.Duration {
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
// +kubebuilder:resource:shortName=helmrepo
|
// +kubebuilder:resource:shortName=helmrepo
|
||||||
// +kubebuilder:subresource:status
|
// +kubebuilder:subresource:status
|
||||||
|
// +kubebuilder:deprecatedversion:warning="v1beta1 HelmRepository is deprecated, upgrade to v1"
|
||||||
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
// +kubebuilder:printcolumn:name="URL",type=string,JSONPath=`.spec.url`
|
||||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||||
|
|
|
@ -27,6 +27,8 @@ spec:
|
||||||
- jsonPath: .metadata.creationTimestamp
|
- jsonPath: .metadata.creationTimestamp
|
||||||
name: Age
|
name: Age
|
||||||
type: date
|
type: date
|
||||||
|
deprecated: true
|
||||||
|
deprecationWarning: v1beta1 Bucket is deprecated, upgrade to v1beta2
|
||||||
name: v1beta1
|
name: v1beta1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
|
@ -383,6 +383,8 @@ spec:
|
||||||
- jsonPath: .metadata.creationTimestamp
|
- jsonPath: .metadata.creationTimestamp
|
||||||
name: Age
|
name: Age
|
||||||
type: date
|
type: date
|
||||||
|
deprecated: true
|
||||||
|
deprecationWarning: v1beta1 HelmChart is deprecated, upgrade to v1
|
||||||
name: v1beta1
|
name: v1beta1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
|
@ -347,6 +347,8 @@ spec:
|
||||||
- jsonPath: .metadata.creationTimestamp
|
- jsonPath: .metadata.creationTimestamp
|
||||||
name: Age
|
name: Age
|
||||||
type: date
|
type: date
|
||||||
|
deprecated: true
|
||||||
|
deprecationWarning: v1beta1 HelmRepository is deprecated, upgrade to v1
|
||||||
name: v1beta1
|
name: v1beta1
|
||||||
schema:
|
schema:
|
||||||
openAPIV3Schema:
|
openAPIV3Schema:
|
||||||
|
|
|
@ -159,7 +159,7 @@ type HelmChartReconcilerOptions struct {
|
||||||
RateLimiter ratelimiter.RateLimiter
|
RateLimiter ratelimiter.RateLimiter
|
||||||
}
|
}
|
||||||
|
|
||||||
// helmChartReconcileFunc is the function type for all the v1beta2.HelmChart
|
// helmChartReconcileFunc is the function type for all the v1.HelmChart
|
||||||
// (sub)reconcile functions. The type implementations are grouped and
|
// (sub)reconcile functions. The type implementations are grouped and
|
||||||
// executed serially to perform the complete reconcile of the object.
|
// executed serially to perform the complete reconcile of the object.
|
||||||
type helmChartReconcileFunc func(ctx context.Context, sp *patch.SerialPatcher, obj *sourcev1.HelmChart, build *chart.Build) (sreconcile.Result, error)
|
type helmChartReconcileFunc func(ctx context.Context, sp *patch.SerialPatcher, obj *sourcev1.HelmChart, build *chart.Build) (sreconcile.Result, error)
|
||||||
|
@ -512,9 +512,9 @@ func (r *HelmChartReconciler) reconcileSource(ctx context.Context, sp *patch.Ser
|
||||||
}
|
}
|
||||||
|
|
||||||
// buildFromHelmRepository attempts to pull and/or package a Helm chart with
|
// buildFromHelmRepository attempts to pull and/or package a Helm chart with
|
||||||
// the specified data from the v1beta2.HelmRepository and v1beta2.HelmChart
|
// the specified data from the v1.HelmRepository and v1.HelmChart
|
||||||
// objects.
|
// objects.
|
||||||
// In case of a failure it records v1beta2.FetchFailedCondition on the chart
|
// In case of a failure it records v1.FetchFailedCondition on the chart
|
||||||
// object, and returns early.
|
// object, and returns early.
|
||||||
func (r *HelmChartReconciler) buildFromHelmRepository(ctx context.Context, obj *sourcev1.HelmChart,
|
func (r *HelmChartReconciler) buildFromHelmRepository(ctx context.Context, obj *sourcev1.HelmChart,
|
||||||
repo *sourcev1.HelmRepository, b *chart.Build) (sreconcile.Result, error) {
|
repo *sourcev1.HelmRepository, b *chart.Build) (sreconcile.Result, error) {
|
||||||
|
@ -696,9 +696,9 @@ func (r *HelmChartReconciler) buildFromHelmRepository(ctx context.Context, obj *
|
||||||
}
|
}
|
||||||
|
|
||||||
// buildFromTarballArtifact attempts to pull and/or package a Helm chart with
|
// buildFromTarballArtifact attempts to pull and/or package a Helm chart with
|
||||||
// the specified data from the v1beta2.HelmChart object and the given
|
// the specified data from the v1.HelmChart object and the given
|
||||||
// v1beta2.Artifact.
|
// v1.Artifact.
|
||||||
// In case of a failure it records v1beta2.FetchFailedCondition on the chart
|
// In case of a failure it records v1.FetchFailedCondition on the chart
|
||||||
// object, and returns early.
|
// object, and returns early.
|
||||||
func (r *HelmChartReconciler) buildFromTarballArtifact(ctx context.Context, obj *sourcev1.HelmChart, source sourcev1.Artifact, b *chart.Build) (sreconcile.Result, error) {
|
func (r *HelmChartReconciler) buildFromTarballArtifact(ctx context.Context, obj *sourcev1.HelmChart, source sourcev1.Artifact, b *chart.Build) (sreconcile.Result, error) {
|
||||||
// Create temporary working directory
|
// Create temporary working directory
|
||||||
|
@ -824,7 +824,7 @@ func (r *HelmChartReconciler) buildFromTarballArtifact(ctx context.Context, obj
|
||||||
// (Status) data on the object does not match the given.
|
// (Status) data on the object does not match the given.
|
||||||
//
|
//
|
||||||
// The inspection of the given data to the object is differed, ensuring any
|
// The inspection of the given data to the object is differed, ensuring any
|
||||||
// stale observations like v1beta2.ArtifactOutdatedCondition are removed.
|
// stale observations like v1.ArtifactOutdatedCondition are removed.
|
||||||
// If the given Artifact does not differ from the object's current, it returns
|
// If the given Artifact does not differ from the object's current, it returns
|
||||||
// early.
|
// early.
|
||||||
// On a successful archive, the Artifact in the Status of the object is set,
|
// On a successful archive, the Artifact in the Status of the object is set,
|
||||||
|
|
|
@ -387,7 +387,7 @@ func (r *HelmRepositoryReconciler) reconcileStorage(ctx context.Context, sp *pat
|
||||||
// reconcileSource attempts to fetch the Helm repository index using the
|
// reconcileSource attempts to fetch the Helm repository index using the
|
||||||
// specified configuration on the v1.HelmRepository object.
|
// specified configuration on the v1.HelmRepository object.
|
||||||
//
|
//
|
||||||
// When the fetch fails, it records v.FetchFailedCondition=True and
|
// When the fetch fails, it records v1.FetchFailedCondition=True and
|
||||||
// returns early.
|
// returns early.
|
||||||
// If successful and the index is valid, any previous
|
// If successful and the index is valid, any previous
|
||||||
// v1.FetchFailedCondition is removed, and the repository.ChartRepository
|
// v1.FetchFailedCondition is removed, and the repository.ChartRepository
|
||||||
|
|
Loading…
Reference in New Issue