@@ -22,7 +22,7 @@ package definition
2222
2323import (
2424 "helm.sh/helm/v3/pkg/action"
25- "helm.sh/helm/v3/pkg/release"
25+ helmRelease "helm.sh/helm/v3/pkg/release"
2626 "k8s.io/apimachinery/pkg/labels"
2727 "k8s.io/apimachinery/pkg/runtime/schema"
2828 "k8s.io/apimachinery/pkg/selection"
@@ -31,50 +31,50 @@ import (
3131 "github.com/arangodb/kube-arangodb/pkg/util/k8sutil/helm"
3232)
3333
34- func (i SchedulerV2ReleaseInfoStatus ) AsHelmStatus () release .Status {
34+ func (i SchedulerV2ReleaseInfoStatus ) AsHelmStatus () helmRelease .Status {
3535 switch i {
3636 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED :
37- return release .StatusUnknown
37+ return helmRelease .StatusUnknown
3838 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED :
39- return release .StatusDeployed
39+ return helmRelease .StatusDeployed
4040 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED :
41- return release .StatusUninstalled
41+ return helmRelease .StatusUninstalled
4242 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED :
43- return release .StatusSuperseded
43+ return helmRelease .StatusSuperseded
4444 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED :
45- return release .StatusFailed
45+ return helmRelease .StatusFailed
4646 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING :
47- return release .StatusUninstalling
47+ return helmRelease .StatusUninstalling
4848 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL :
49- return release .StatusPendingInstall
49+ return helmRelease .StatusPendingInstall
5050 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE :
51- return release .StatusPendingUpgrade
51+ return helmRelease .StatusPendingUpgrade
5252 case SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK :
53- return release .StatusPendingRollback
53+ return helmRelease .StatusPendingRollback
5454 default :
55- return release .StatusUnknown
55+ return helmRelease .StatusUnknown
5656 }
5757}
5858
59- func FromHelmStatus (in release .Status ) SchedulerV2ReleaseInfoStatus {
59+ func FromHelmStatus (in helmRelease .Status ) SchedulerV2ReleaseInfoStatus {
6060 switch in {
61- case release .StatusUnknown :
61+ case helmRelease .StatusUnknown :
6262 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED
63- case release .StatusDeployed :
63+ case helmRelease .StatusDeployed :
6464 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_DEPLOYED
65- case release .StatusUninstalled :
65+ case helmRelease .StatusUninstalled :
6666 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLED
67- case release .StatusSuperseded :
67+ case helmRelease .StatusSuperseded :
6868 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_SUPERSEDED
69- case release .StatusFailed :
69+ case helmRelease .StatusFailed :
7070 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_FAILED
71- case release .StatusUninstalling :
71+ case helmRelease .StatusUninstalling :
7272 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNINSTALLING
73- case release .StatusPendingInstall :
73+ case helmRelease .StatusPendingInstall :
7474 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGINSTALL
75- case release .StatusPendingUpgrade :
75+ case helmRelease .StatusPendingUpgrade :
7676 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGUPGRADE
77- case release .StatusPendingRollback :
77+ case helmRelease .StatusPendingRollback :
7878 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_PENDINGROLLBACK
7979 default :
8080 return SchedulerV2ReleaseInfoStatus_SCHEDULER_V2_RELEASE_INFO_STATUS_UNKNOWN_UNSPECIFIED
0 commit comments