Update Helm Source APIs to v1 (GA)

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2024-05-06 12:28:34 +03:00
parent 89038b7300
commit 1aaa48fa09
18 changed files with 41 additions and 40 deletions

View File

@ -95,16 +95,16 @@ func (a bucketListAdapter) len() int {
return len(a.BucketList.Items)
}
// sourcev1b2.HelmChart
// sourcev1.HelmChart
var helmChartType = apiType{
kind: sourcev1b2.HelmChartKind,
kind: sourcev1.HelmChartKind,
humanKind: "source chart",
groupVersion: sourcev1b2.GroupVersion,
groupVersion: sourcev1.GroupVersion,
}
type helmChartAdapter struct {
*sourcev1b2.HelmChart
*sourcev1.HelmChart
}
func (a helmChartAdapter) asClientObject() client.Object {
@ -115,10 +115,10 @@ func (a helmChartAdapter) deepCopyClientObject() client.Object {
return a.HelmChart.DeepCopy()
}
// sourcev1b2.HelmChartList
// sourcev1.HelmChartList
type helmChartListAdapter struct {
*sourcev1b2.HelmChartList
*sourcev1.HelmChartList
}
func (a helmChartListAdapter) asClientList() client.ObjectList {
@ -163,16 +163,16 @@ func (a gitRepositoryListAdapter) len() int {
return len(a.GitRepositoryList.Items)
}
// sourcev1b2.HelmRepository
// sourcev1.HelmRepository
var helmRepositoryType = apiType{
kind: sourcev1b2.HelmRepositoryKind,
kind: sourcev1.HelmRepositoryKind,
humanKind: "source helm",
groupVersion: sourcev1b2.GroupVersion,
groupVersion: sourcev1.GroupVersion,
}
type helmRepositoryAdapter struct {
*sourcev1b2.HelmRepository
*sourcev1.HelmRepository
}
func (a helmRepositoryAdapter) asClientObject() client.Object {
@ -183,10 +183,10 @@ func (a helmRepositoryAdapter) deepCopyClientObject() client.Object {
return a.HelmRepository.DeepCopy()
}
// sourcev1b2.HelmRepositoryList
// sourcev1.HelmRepositoryList
type helmRepositoryListAdapter struct {
*sourcev1b2.HelmRepositoryList
*sourcev1.HelmRepositoryList
}
func (a helmRepositoryListAdapter) asClientList() client.ObjectList {