Documentation
¶
Overview ¶
Package helm is a generated GoMock package.
Package helm is a generated GoMock package.
Index ¶
- Constants
- type CLIClusterOptions
- type ChartOptions
- type ClusterOptions
- type ContourChartOptions
- type HelmAction
- type HelmActionImpl
- func (helmAction *HelmActionImpl) ApplyHelmChart(kubeContext string, helmChart *chart.Chart, helmConf *helm.Configuration, ...) error
- func (helmAction *HelmActionImpl) GetPreviousReleaseVersion(kubeContext, releaseName, namespace string) (string, error)
- func (helmAction *HelmActionImpl) HelmChartFromContainerRegistry(version string, config *helm.Configuration, repoUrl string, releaseName string) (*chart.Chart, error)
- func (helmAction *HelmActionImpl) LoadChart(chartPath string) (*chart.Chart, error)
- func (helmAction *HelmActionImpl) QueryRelease(kubeContext, releaseName, namespace string) (bool, string, error)
- type HelmClient
- type HelmClientImpl
- func (client *HelmClientImpl) LoadChart(chartPath string) (*chart.Chart, error)
- func (client *HelmClientImpl) RunHelmGet(helmConf *helm.Configuration, releaseName string) (*release.Release, error)
- func (client *HelmClientImpl) RunHelmHistory(helmConf *helm.Configuration, releaseName string) ([]*release.Release, error)
- func (client *HelmClientImpl) RunHelmInstall(helmConf *helm.Configuration, helmChart *chart.Chart, ...) (*release.Release, error)
- func (client *HelmClientImpl) RunHelmList(helmConf *helm.Configuration, releaseName string) ([]*release.Release, error)
- func (client *HelmClientImpl) RunHelmPull(pullopts []helm.PullOpt, chartRef string) (string, error)
- func (client *HelmClientImpl) RunHelmRollback(helmConf *helm.Configuration, releaseName string, revision int, wait bool) error
- func (client *HelmClientImpl) RunHelmUninstall(helmConf *helm.Configuration, releaseName, namespace string, wait bool) (*release.UninstallReleaseResponse, error)
- func (client *HelmClientImpl) RunHelmUpgrade(helmConf *helm.Configuration, helmChart *chart.Chart, ...) (*release.Release, error)
- type Impl
- func (i *Impl) CheckRadiusInstall(kubeContext string) (InstallState, error)
- func (i *Impl) GetLatestRadiusVersion(ctx context.Context) (string, error)
- func (i *Impl) GetRadiusRevisions(ctx context.Context, kubeContext string) ([]RevisionInfo, error)
- func (i *Impl) InstallRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error
- func (i *Impl) RollbackRadius(ctx context.Context, kubeContext string) error
- func (i *Impl) RollbackRadiusToRevision(ctx context.Context, kubeContext string, revision int) error
- func (i *Impl) UninstallRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error
- func (i *Impl) UpgradeRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error
- type InstallState
- type Interface
- type MockHelmClient
- func (m *MockHelmClient) EXPECT() *MockHelmClientMockRecorder
- func (m *MockHelmClient) LoadChart(arg0 string) (*chart.Chart, error)
- func (m *MockHelmClient) RunHelmGet(arg0 *action.Configuration, arg1 string) (*release.Release, error)
- func (m *MockHelmClient) RunHelmHistory(arg0 *action.Configuration, arg1 string) ([]*release.Release, error)
- func (m *MockHelmClient) RunHelmInstall(arg0 *action.Configuration, arg1 *chart.Chart, arg2, arg3 string, arg4 bool) (*release.Release, error)
- func (m *MockHelmClient) RunHelmList(arg0 *action.Configuration, arg1 string) ([]*release.Release, error)
- func (m *MockHelmClient) RunHelmPull(arg0 []action.PullOpt, arg1 string) (string, error)
- func (m *MockHelmClient) RunHelmRollback(arg0 *action.Configuration, arg1 string, arg2 int, arg3 bool) error
- func (m *MockHelmClient) RunHelmUninstall(arg0 *action.Configuration, arg1, arg2 string, arg3 bool) (*release.UninstallReleaseResponse, error)
- func (m *MockHelmClient) RunHelmUpgrade(arg0 *action.Configuration, arg1 *chart.Chart, arg2, arg3 string, arg4 bool) (*release.Release, error)
- type MockHelmClientLoadChartCall
- func (c *MockHelmClientLoadChartCall) Do(f func(string) (*chart.Chart, error)) *MockHelmClientLoadChartCall
- func (c *MockHelmClientLoadChartCall) DoAndReturn(f func(string) (*chart.Chart, error)) *MockHelmClientLoadChartCall
- func (c *MockHelmClientLoadChartCall) Return(arg0 *chart.Chart, arg1 error) *MockHelmClientLoadChartCall
- type MockHelmClientMockRecorder
- func (mr *MockHelmClientMockRecorder) LoadChart(arg0 any) *MockHelmClientLoadChartCall
- func (mr *MockHelmClientMockRecorder) RunHelmGet(arg0, arg1 any) *MockHelmClientRunHelmGetCall
- func (mr *MockHelmClientMockRecorder) RunHelmHistory(arg0, arg1 any) *MockHelmClientRunHelmHistoryCall
- func (mr *MockHelmClientMockRecorder) RunHelmInstall(arg0, arg1, arg2, arg3, arg4 any) *MockHelmClientRunHelmInstallCall
- func (mr *MockHelmClientMockRecorder) RunHelmList(arg0, arg1 any) *MockHelmClientRunHelmListCall
- func (mr *MockHelmClientMockRecorder) RunHelmPull(arg0, arg1 any) *MockHelmClientRunHelmPullCall
- func (mr *MockHelmClientMockRecorder) RunHelmRollback(arg0, arg1, arg2, arg3 any) *MockHelmClientRunHelmRollbackCall
- func (mr *MockHelmClientMockRecorder) RunHelmUninstall(arg0, arg1, arg2, arg3 any) *MockHelmClientRunHelmUninstallCall
- func (mr *MockHelmClientMockRecorder) RunHelmUpgrade(arg0, arg1, arg2, arg3, arg4 any) *MockHelmClientRunHelmUpgradeCall
- type MockHelmClientRunHelmGetCall
- func (c *MockHelmClientRunHelmGetCall) Do(f func(*action.Configuration, string) (*release.Release, error)) *MockHelmClientRunHelmGetCall
- func (c *MockHelmClientRunHelmGetCall) DoAndReturn(f func(*action.Configuration, string) (*release.Release, error)) *MockHelmClientRunHelmGetCall
- func (c *MockHelmClientRunHelmGetCall) Return(arg0 *release.Release, arg1 error) *MockHelmClientRunHelmGetCall
- type MockHelmClientRunHelmHistoryCall
- func (c *MockHelmClientRunHelmHistoryCall) Do(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmHistoryCall
- func (c *MockHelmClientRunHelmHistoryCall) DoAndReturn(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmHistoryCall
- func (c *MockHelmClientRunHelmHistoryCall) Return(arg0 []*release.Release, arg1 error) *MockHelmClientRunHelmHistoryCall
- type MockHelmClientRunHelmInstallCall
- type MockHelmClientRunHelmListCall
- func (c *MockHelmClientRunHelmListCall) Do(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmListCall
- func (c *MockHelmClientRunHelmListCall) DoAndReturn(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmListCall
- func (c *MockHelmClientRunHelmListCall) Return(arg0 []*release.Release, arg1 error) *MockHelmClientRunHelmListCall
- type MockHelmClientRunHelmPullCall
- func (c *MockHelmClientRunHelmPullCall) Do(f func([]action.PullOpt, string) (string, error)) *MockHelmClientRunHelmPullCall
- func (c *MockHelmClientRunHelmPullCall) DoAndReturn(f func([]action.PullOpt, string) (string, error)) *MockHelmClientRunHelmPullCall
- func (c *MockHelmClientRunHelmPullCall) Return(arg0 string, arg1 error) *MockHelmClientRunHelmPullCall
- type MockHelmClientRunHelmRollbackCall
- func (c *MockHelmClientRunHelmRollbackCall) Do(f func(*action.Configuration, string, int, bool) error) *MockHelmClientRunHelmRollbackCall
- func (c *MockHelmClientRunHelmRollbackCall) DoAndReturn(f func(*action.Configuration, string, int, bool) error) *MockHelmClientRunHelmRollbackCall
- func (c *MockHelmClientRunHelmRollbackCall) Return(arg0 error) *MockHelmClientRunHelmRollbackCall
- type MockHelmClientRunHelmUninstallCall
- func (c *MockHelmClientRunHelmUninstallCall) Do(...) *MockHelmClientRunHelmUninstallCall
- func (c *MockHelmClientRunHelmUninstallCall) DoAndReturn(...) *MockHelmClientRunHelmUninstallCall
- func (c *MockHelmClientRunHelmUninstallCall) Return(arg0 *release.UninstallReleaseResponse, arg1 error) *MockHelmClientRunHelmUninstallCall
- type MockHelmClientRunHelmUpgradeCall
- type MockInterface
- func (m *MockInterface) CheckRadiusInstall(arg0 string) (InstallState, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetLatestRadiusVersion(arg0 context.Context) (string, error)
- func (m *MockInterface) GetRadiusRevisions(arg0 context.Context, arg1 string) ([]RevisionInfo, error)
- func (m *MockInterface) InstallRadius(arg0 context.Context, arg1 ClusterOptions, arg2 string) error
- func (m *MockInterface) RollbackRadius(arg0 context.Context, arg1 string) error
- func (m *MockInterface) RollbackRadiusToRevision(arg0 context.Context, arg1 string, arg2 int) error
- func (m *MockInterface) UninstallRadius(arg0 context.Context, arg1 ClusterOptions, arg2 string) error
- func (m *MockInterface) UpgradeRadius(arg0 context.Context, arg1 ClusterOptions, arg2 string) error
- type MockInterfaceCheckRadiusInstallCall
- func (c *MockInterfaceCheckRadiusInstallCall) Do(f func(string) (InstallState, error)) *MockInterfaceCheckRadiusInstallCall
- func (c *MockInterfaceCheckRadiusInstallCall) DoAndReturn(f func(string) (InstallState, error)) *MockInterfaceCheckRadiusInstallCall
- func (c *MockInterfaceCheckRadiusInstallCall) Return(arg0 InstallState, arg1 error) *MockInterfaceCheckRadiusInstallCall
- type MockInterfaceGetLatestRadiusVersionCall
- func (c *MockInterfaceGetLatestRadiusVersionCall) Do(f func(context.Context) (string, error)) *MockInterfaceGetLatestRadiusVersionCall
- func (c *MockInterfaceGetLatestRadiusVersionCall) DoAndReturn(f func(context.Context) (string, error)) *MockInterfaceGetLatestRadiusVersionCall
- func (c *MockInterfaceGetLatestRadiusVersionCall) Return(arg0 string, arg1 error) *MockInterfaceGetLatestRadiusVersionCall
- type MockInterfaceGetRadiusRevisionsCall
- func (c *MockInterfaceGetRadiusRevisionsCall) Do(f func(context.Context, string) ([]RevisionInfo, error)) *MockInterfaceGetRadiusRevisionsCall
- func (c *MockInterfaceGetRadiusRevisionsCall) DoAndReturn(f func(context.Context, string) ([]RevisionInfo, error)) *MockInterfaceGetRadiusRevisionsCall
- func (c *MockInterfaceGetRadiusRevisionsCall) Return(arg0 []RevisionInfo, arg1 error) *MockInterfaceGetRadiusRevisionsCall
- type MockInterfaceInstallRadiusCall
- func (c *MockInterfaceInstallRadiusCall) Do(f func(context.Context, ClusterOptions, string) error) *MockInterfaceInstallRadiusCall
- func (c *MockInterfaceInstallRadiusCall) DoAndReturn(f func(context.Context, ClusterOptions, string) error) *MockInterfaceInstallRadiusCall
- func (c *MockInterfaceInstallRadiusCall) Return(arg0 error) *MockInterfaceInstallRadiusCall
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) CheckRadiusInstall(arg0 any) *MockInterfaceCheckRadiusInstallCall
- func (mr *MockInterfaceMockRecorder) GetLatestRadiusVersion(arg0 any) *MockInterfaceGetLatestRadiusVersionCall
- func (mr *MockInterfaceMockRecorder) GetRadiusRevisions(arg0, arg1 any) *MockInterfaceGetRadiusRevisionsCall
- func (mr *MockInterfaceMockRecorder) InstallRadius(arg0, arg1, arg2 any) *MockInterfaceInstallRadiusCall
- func (mr *MockInterfaceMockRecorder) RollbackRadius(arg0, arg1 any) *MockInterfaceRollbackRadiusCall
- func (mr *MockInterfaceMockRecorder) RollbackRadiusToRevision(arg0, arg1, arg2 any) *MockInterfaceRollbackRadiusToRevisionCall
- func (mr *MockInterfaceMockRecorder) UninstallRadius(arg0, arg1, arg2 any) *MockInterfaceUninstallRadiusCall
- func (mr *MockInterfaceMockRecorder) UpgradeRadius(arg0, arg1, arg2 any) *MockInterfaceUpgradeRadiusCall
- type MockInterfaceRollbackRadiusCall
- func (c *MockInterfaceRollbackRadiusCall) Do(f func(context.Context, string) error) *MockInterfaceRollbackRadiusCall
- func (c *MockInterfaceRollbackRadiusCall) DoAndReturn(f func(context.Context, string) error) *MockInterfaceRollbackRadiusCall
- func (c *MockInterfaceRollbackRadiusCall) Return(arg0 error) *MockInterfaceRollbackRadiusCall
- type MockInterfaceRollbackRadiusToRevisionCall
- func (c *MockInterfaceRollbackRadiusToRevisionCall) Do(f func(context.Context, string, int) error) *MockInterfaceRollbackRadiusToRevisionCall
- func (c *MockInterfaceRollbackRadiusToRevisionCall) DoAndReturn(f func(context.Context, string, int) error) *MockInterfaceRollbackRadiusToRevisionCall
- func (c *MockInterfaceRollbackRadiusToRevisionCall) Return(arg0 error) *MockInterfaceRollbackRadiusToRevisionCall
- type MockInterfaceUninstallRadiusCall
- func (c *MockInterfaceUninstallRadiusCall) Do(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUninstallRadiusCall
- func (c *MockInterfaceUninstallRadiusCall) DoAndReturn(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUninstallRadiusCall
- func (c *MockInterfaceUninstallRadiusCall) Return(arg0 error) *MockInterfaceUninstallRadiusCall
- type MockInterfaceUpgradeRadiusCall
- func (c *MockInterfaceUpgradeRadiusCall) Do(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUpgradeRadiusCall
- func (c *MockInterfaceUpgradeRadiusCall) DoAndReturn(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUpgradeRadiusCall
- func (c *MockInterfaceUpgradeRadiusCall) Return(arg0 error) *MockInterfaceUpgradeRadiusCall
- type RadiusChartOptions
- type RevisionInfo
Constants ¶
const ( ContourChartDefaultVersion = "11.1.1" // ContourDisabledReason is the user-facing message explaining why Contour is disabled ContourDisabledReason = "Contour installation temporarily disabled due to Bitnami repository changes." )
const (
// RadiusSystemNamespace is the default namespace for Radius.
RadiusSystemNamespace = "radius-system"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIClusterOptions ¶
type CLIClusterOptions struct { Radius ChartOptions Contour ChartOptions }
type ChartOptions ¶ added in v0.41.0
type ChartOptions struct { // Disabled specifies whether the chart should be disabled. // Setting this to true will skip the chart installation. Disabled bool // Target namespace for deployment Namespace string // ReleaseName specifies the release name for the helm chart. ReleaseName string // ChartRepo specifies the helm chart repository. ChartRepo string // Reinstall specifies whether to reinstall the chart (helm upgrade). Reinstall bool // ChartPath specifies an override for the chart location. ChartPath string // ChartVersion specifies the chart version. ChartVersion string // SetArgs specifies as set of additional "values" to pass to helm. These are specified using the command-line syntax accepted // by helm, in the order they appear on the command line (last one wins). SetArgs []string // SetFileArgs specifies as set of additional "values" from file to pass it to helm. SetFileArgs []string // Wait specifies whether to wait for the chart to be ready. Wait bool }
ChartOptions describes the options for a Helm chart.
type ClusterOptions ¶
type ClusterOptions struct { Radius RadiusChartOptions Contour ContourChartOptions }
func NewDefaultClusterOptions ¶
func NewDefaultClusterOptions() ClusterOptions
NewDefaultClusterOptions sets the default values for the ClusterOptions struct, using the chart version that matches the channel of the CLI (major.minor) or the latest available version if it is an edge build.
func PopulateDefaultClusterOptions ¶
func PopulateDefaultClusterOptions(cliOptions CLIClusterOptions) ClusterOptions
PopulateDefaultClusterOptions compares the CLI options provided by the user to the default options and returns a ClusterOptions object with the CLI options overriding the default options if they are provided.
type ContourChartOptions ¶ added in v0.47.0
type ContourChartOptions struct { ChartOptions // HostNetwork specifies whether to use host networking for the Envoy pod. HostNetwork bool // Wait specifies whether to wait for the chart to be ready. Wait bool }
type HelmAction ¶ added in v0.47.0
type HelmAction interface { // HelmChartFromContainerRegistry downloads a helm chart (using helm pull) from a container registry and returns the chart object. HelmChartFromContainerRegistry(version string, config *helm.Configuration, repoUrl string, releaseName string) (*chart.Chart, error) // ApplyHelmChart checks if a Helm chart is already installed, and if not, installs it or upgrades it if the "Reinstall" option is set. ApplyHelmChart(kubeContext string, helmChart *chart.Chart, helmConf *helm.Configuration, options ChartOptions) error // QueryRelease checks to see if a release is deployed to a namespace for a given kubecontext. // Returns a bool indicating if the release is deployed, the version of the release, and an error if one occurs. QueryRelease(kubeContext, releaseName, namespace string) (bool, string, error) // GetPreviousReleaseVersion gets the version of the last deployed or superseded release. // This is useful during upgrades to get the actual running version rather than the pending upgrade version. GetPreviousReleaseVersion(kubeContext, releaseName, namespace string) (string, error) // LoadChart loads a helm chart from the specified path and returns the chart object. LoadChart(chartPath string) (*chart.Chart, error) }
HelmAction is an interface for performing actions on Helm charts.
type HelmActionImpl ¶ added in v0.47.0
type HelmActionImpl struct {
HelmClient HelmClient
}
func NewHelmAction ¶ added in v0.47.0
func NewHelmAction(helmClient HelmClient) *HelmActionImpl
func (*HelmActionImpl) ApplyHelmChart ¶ added in v0.47.0
func (helmAction *HelmActionImpl) ApplyHelmChart(kubeContext string, helmChart *chart.Chart, helmConf *helm.Configuration, options ChartOptions) error
func (*HelmActionImpl) GetPreviousReleaseVersion ¶ added in v0.50.0
func (helmAction *HelmActionImpl) GetPreviousReleaseVersion(kubeContext, releaseName, namespace string) (string, error)
func (*HelmActionImpl) HelmChartFromContainerRegistry ¶ added in v0.47.0
func (helmAction *HelmActionImpl) HelmChartFromContainerRegistry(version string, config *helm.Configuration, repoUrl string, releaseName string) (*chart.Chart, error)
func (*HelmActionImpl) LoadChart ¶ added in v0.47.0
func (helmAction *HelmActionImpl) LoadChart(chartPath string) (*chart.Chart, error)
func (*HelmActionImpl) QueryRelease ¶ added in v0.47.0
func (helmAction *HelmActionImpl) QueryRelease(kubeContext, releaseName, namespace string) (bool, string, error)
type HelmClient ¶ added in v0.47.0
type HelmClient interface { // RunHelmInstall installs the Helm chart. RunHelmInstall(helmConf *helm.Configuration, helmChart *chart.Chart, releaseName, namespace string, wait bool) (*release.Release, error) // RunHelmUpgrade upgrades the Helm chart. RunHelmUpgrade(helmConf *helm.Configuration, helmChart *chart.Chart, releaseName, namespace string, wait bool) (*release.Release, error) // RunHelmUninstall uninstalls the Helm chart. RunHelmUninstall(helmConf *helm.Configuration, releaseName, namespace string, wait bool) (*release.UninstallReleaseResponse, error) // RunHelmList lists the Helm releases. RunHelmList(helmConf *helm.Configuration, releaseName string) ([]*release.Release, error) // RunHelmGet retrieves the Helm release information. RunHelmGet(helmConf *helm.Configuration, releaseName string) (*release.Release, error) // RunHelmHistory retrieves the history of a Helm release. RunHelmHistory(helmConf *helm.Configuration, releaseName string) ([]*release.Release, error) // RunHelmRollback rolls back a release to a previous revision. RunHelmRollback(helmConf *helm.Configuration, releaseName string, revision int, wait bool) error // RunHelmPull pulls the Helm chart. RunHelmPull(pullopts []helm.PullOpt, chartRef string) (string, error) // LoadChart loads a Helm chart from the specified path. LoadChart(chartPath string) (*chart.Chart, error) }
HelmClient is an interface for interacting with Helm charts.
func NewHelmClient ¶ added in v0.47.0
func NewHelmClient() HelmClient
NewHelmClient creates a new instance of HelmClient that uses the Helm Go SDK to perform operations on Helm charts.
type HelmClientImpl ¶ added in v0.47.0
type HelmClientImpl struct{}
HelmClientImpl is an implementation of the HelmClient interface. It uses the Helm go sdk to perform operations on Helm charts.
func (*HelmClientImpl) LoadChart ¶ added in v0.47.0
func (client *HelmClientImpl) LoadChart(chartPath string) (*chart.Chart, error)
LoadChart loads a Helm chart from the specified file path. The path can be a directory containing chart files or a packaged chart archive.
func (*HelmClientImpl) RunHelmGet ¶ added in v0.50.0
func (client *HelmClientImpl) RunHelmGet(helmConf *helm.Configuration, releaseName string) (*release.Release, error)
RunHelmGet retrieves detailed information about a specific Helm release. It returns the latest revision of the release.
func (*HelmClientImpl) RunHelmHistory ¶ added in v0.50.0
func (client *HelmClientImpl) RunHelmHistory(helmConf *helm.Configuration, releaseName string) ([]*release.Release, error)
RunHelmHistory retrieves the revision history of a Helm release. It returns all revisions of the release, including superseded and failed deployments.
func (*HelmClientImpl) RunHelmInstall ¶ added in v0.47.0
func (client *HelmClientImpl) RunHelmInstall(helmConf *helm.Configuration, helmChart *chart.Chart, releaseName, namespace string, wait bool) (*release.Release, error)
RunHelmInstall installs a Helm chart as a new release in the specified namespace. It creates the namespace if it doesn't exist and optionally waits for the deployment to be ready.
func (*HelmClientImpl) RunHelmList ¶ added in v0.47.0
func (client *HelmClientImpl) RunHelmList(helmConf *helm.Configuration, releaseName string) ([]*release.Release, error)
RunHelmList lists Helm releases that match the provided filter. It searches for deployed releases across all namespaces.
func (*HelmClientImpl) RunHelmPull ¶ added in v0.47.0
RunHelmPull downloads a Helm chart from a repository to the local filesystem. It returns the path to the downloaded chart archive.
func (*HelmClientImpl) RunHelmRollback ¶ added in v0.50.0
func (client *HelmClientImpl) RunHelmRollback(helmConf *helm.Configuration, releaseName string, revision int, wait bool) error
RunHelmRollback rolls back a Helm release to a previous revision. It optionally waits for the rollback to complete and all resources to be ready.
func (*HelmClientImpl) RunHelmUninstall ¶ added in v0.47.0
func (client *HelmClientImpl) RunHelmUninstall(helmConf *helm.Configuration, releaseName, namespace string, wait bool) (*release.UninstallReleaseResponse, error)
RunHelmUninstall removes a Helm release and its associated resources from the cluster. It optionally waits for all resources to be deleted before returning.
func (*HelmClientImpl) RunHelmUpgrade ¶ added in v0.47.0
func (client *HelmClientImpl) RunHelmUpgrade(helmConf *helm.Configuration, helmChart *chart.Chart, releaseName, namespace string, wait bool) (*release.Release, error)
RunHelmUpgrade upgrades an existing Helm release with a new chart version or configuration. It recreates pods to ensure the new configuration is applied and optionally waits for the deployment to be ready.
type Impl ¶
type Impl struct { // HelmClient is the Helm client used to interact with the Kubernetes cluster. Helm HelmClient }
func (*Impl) CheckRadiusInstall ¶
func (i *Impl) CheckRadiusInstall(kubeContext string) (InstallState, error)
CheckRadiusInstall checks if the Radius release is installed in the given kubeContext and returns an InstallState object with the version of the release if installed, or an error if an error occurs while checking.
func (*Impl) GetLatestRadiusVersion ¶ added in v0.50.0
GetLatestRadiusVersion gets the latest available version of the Radius chart from the Helm repository.
func (*Impl) GetRadiusRevisions ¶ added in v0.50.0
GetRadiusRevisions returns information about all available revisions of the Radius installation.
func (*Impl) InstallRadius ¶
func (i *Impl) InstallRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error
InstallRadius installs Radius and its dependencies (Contour) on the cluster using the provided options.
func (*Impl) RollbackRadius ¶ added in v0.50.0
RollbackRadius rolls back the Radius installation to the previous revision.
func (*Impl) RollbackRadiusToRevision ¶ added in v0.50.0
func (i *Impl) RollbackRadiusToRevision(ctx context.Context, kubeContext string, revision int) error
RollbackRadiusToRevision rolls back the Radius installation to a specific revision.
func (*Impl) UninstallRadius ¶
func (i *Impl) UninstallRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error
UninstallRadius uninstalls Radius from the cluster using the provided options. Note: Contour uninstallation is skipped due to Bitnami repository changes.
func (*Impl) UpgradeRadius ¶ added in v0.47.0
func (i *Impl) UpgradeRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error
UpgradeRadius upgrades the Radius installation on the cluster, based on the specified Kubernetes context.
type InstallState ¶
type InstallState struct { // RadiusInstalled denotes whether the Radius helm chart is installed on the cluster. RadiusInstalled bool // RadiusVersion is the version of the Radius helm chart installed on the cluster. Will be blank if Radius is not installed. RadiusVersion string // ContourInstalled denotes whether the Contour helm chart is installed on the cluster. ContourInstalled bool // ContourVersion is the version of the Contour helm chart installed on the cluster. Will be blank if Contour is not installed. ContourVersion string }
InstallState represents the state of the Radius installation on a Kubernetes cluster.
type Interface ¶
type Interface interface { // InstallRadius installs Radius on the cluster, based on the specified Kubernetes context. InstallRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error // UninstallRadius uninstalls Radius from the cluster based on the specified Kubernetes context. Will succeed regardless of whether Radius is installed. UninstallRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error // UpgradeRadius upgrades the Radius installation on the cluster, based on the specified Kubernetes context. UpgradeRadius(ctx context.Context, clusterOptions ClusterOptions, kubeContext string) error // CheckRadiusInstall checks whether Radius is installed on the cluster, based on the specified Kubernetes context. CheckRadiusInstall(kubeContext string) (InstallState, error) // GetLatestRadiusVersion gets the latest available version of the Radius chart from the Helm repository. GetLatestRadiusVersion(ctx context.Context) (string, error) // RollbackRadius rolls back the Radius installation to the previous revision. RollbackRadius(ctx context.Context, kubeContext string) error // RollbackRadiusToRevision rolls back the Radius installation to a specific revision. RollbackRadiusToRevision(ctx context.Context, kubeContext string, revision int) error // GetRadiusRevisions lists all available revisions of the Radius installation. GetRadiusRevisions(ctx context.Context, kubeContext string) ([]RevisionInfo, error) }
Interface provides an abstraction over Helm operations for installing Radius.
type MockHelmClient ¶ added in v0.47.0
type MockHelmClient struct {
// contains filtered or unexported fields
}
MockHelmClient is a mock of HelmClient interface.
func NewMockHelmClient ¶ added in v0.47.0
func NewMockHelmClient(ctrl *gomock.Controller) *MockHelmClient
NewMockHelmClient creates a new mock instance.
func (*MockHelmClient) EXPECT ¶ added in v0.47.0
func (m *MockHelmClient) EXPECT() *MockHelmClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHelmClient) LoadChart ¶ added in v0.47.0
func (m *MockHelmClient) LoadChart(arg0 string) (*chart.Chart, error)
LoadChart mocks base method.
func (*MockHelmClient) RunHelmGet ¶ added in v0.50.0
func (m *MockHelmClient) RunHelmGet(arg0 *action.Configuration, arg1 string) (*release.Release, error)
RunHelmGet mocks base method.
func (*MockHelmClient) RunHelmHistory ¶ added in v0.50.0
func (m *MockHelmClient) RunHelmHistory(arg0 *action.Configuration, arg1 string) ([]*release.Release, error)
RunHelmHistory mocks base method.
func (*MockHelmClient) RunHelmInstall ¶ added in v0.47.0
func (m *MockHelmClient) RunHelmInstall(arg0 *action.Configuration, arg1 *chart.Chart, arg2, arg3 string, arg4 bool) (*release.Release, error)
RunHelmInstall mocks base method.
func (*MockHelmClient) RunHelmList ¶ added in v0.47.0
func (m *MockHelmClient) RunHelmList(arg0 *action.Configuration, arg1 string) ([]*release.Release, error)
RunHelmList mocks base method.
func (*MockHelmClient) RunHelmPull ¶ added in v0.47.0
RunHelmPull mocks base method.
func (*MockHelmClient) RunHelmRollback ¶ added in v0.50.0
func (m *MockHelmClient) RunHelmRollback(arg0 *action.Configuration, arg1 string, arg2 int, arg3 bool) error
RunHelmRollback mocks base method.
func (*MockHelmClient) RunHelmUninstall ¶ added in v0.47.0
func (m *MockHelmClient) RunHelmUninstall(arg0 *action.Configuration, arg1, arg2 string, arg3 bool) (*release.UninstallReleaseResponse, error)
RunHelmUninstall mocks base method.
func (*MockHelmClient) RunHelmUpgrade ¶ added in v0.47.0
func (m *MockHelmClient) RunHelmUpgrade(arg0 *action.Configuration, arg1 *chart.Chart, arg2, arg3 string, arg4 bool) (*release.Release, error)
RunHelmUpgrade mocks base method.
type MockHelmClientLoadChartCall ¶ added in v0.47.0
MockHelmClientLoadChartCall wrap *gomock.Call
func (*MockHelmClientLoadChartCall) Do ¶ added in v0.47.0
func (c *MockHelmClientLoadChartCall) Do(f func(string) (*chart.Chart, error)) *MockHelmClientLoadChartCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientLoadChartCall) DoAndReturn ¶ added in v0.47.0
func (c *MockHelmClientLoadChartCall) DoAndReturn(f func(string) (*chart.Chart, error)) *MockHelmClientLoadChartCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientLoadChartCall) Return ¶ added in v0.47.0
func (c *MockHelmClientLoadChartCall) Return(arg0 *chart.Chart, arg1 error) *MockHelmClientLoadChartCall
Return rewrite *gomock.Call.Return
type MockHelmClientMockRecorder ¶ added in v0.47.0
type MockHelmClientMockRecorder struct {
// contains filtered or unexported fields
}
MockHelmClientMockRecorder is the mock recorder for MockHelmClient.
func (*MockHelmClientMockRecorder) LoadChart ¶ added in v0.47.0
func (mr *MockHelmClientMockRecorder) LoadChart(arg0 any) *MockHelmClientLoadChartCall
LoadChart indicates an expected call of LoadChart.
func (*MockHelmClientMockRecorder) RunHelmGet ¶ added in v0.50.0
func (mr *MockHelmClientMockRecorder) RunHelmGet(arg0, arg1 any) *MockHelmClientRunHelmGetCall
RunHelmGet indicates an expected call of RunHelmGet.
func (*MockHelmClientMockRecorder) RunHelmHistory ¶ added in v0.50.0
func (mr *MockHelmClientMockRecorder) RunHelmHistory(arg0, arg1 any) *MockHelmClientRunHelmHistoryCall
RunHelmHistory indicates an expected call of RunHelmHistory.
func (*MockHelmClientMockRecorder) RunHelmInstall ¶ added in v0.47.0
func (mr *MockHelmClientMockRecorder) RunHelmInstall(arg0, arg1, arg2, arg3, arg4 any) *MockHelmClientRunHelmInstallCall
RunHelmInstall indicates an expected call of RunHelmInstall.
func (*MockHelmClientMockRecorder) RunHelmList ¶ added in v0.47.0
func (mr *MockHelmClientMockRecorder) RunHelmList(arg0, arg1 any) *MockHelmClientRunHelmListCall
RunHelmList indicates an expected call of RunHelmList.
func (*MockHelmClientMockRecorder) RunHelmPull ¶ added in v0.47.0
func (mr *MockHelmClientMockRecorder) RunHelmPull(arg0, arg1 any) *MockHelmClientRunHelmPullCall
RunHelmPull indicates an expected call of RunHelmPull.
func (*MockHelmClientMockRecorder) RunHelmRollback ¶ added in v0.50.0
func (mr *MockHelmClientMockRecorder) RunHelmRollback(arg0, arg1, arg2, arg3 any) *MockHelmClientRunHelmRollbackCall
RunHelmRollback indicates an expected call of RunHelmRollback.
func (*MockHelmClientMockRecorder) RunHelmUninstall ¶ added in v0.47.0
func (mr *MockHelmClientMockRecorder) RunHelmUninstall(arg0, arg1, arg2, arg3 any) *MockHelmClientRunHelmUninstallCall
RunHelmUninstall indicates an expected call of RunHelmUninstall.
func (*MockHelmClientMockRecorder) RunHelmUpgrade ¶ added in v0.47.0
func (mr *MockHelmClientMockRecorder) RunHelmUpgrade(arg0, arg1, arg2, arg3, arg4 any) *MockHelmClientRunHelmUpgradeCall
RunHelmUpgrade indicates an expected call of RunHelmUpgrade.
type MockHelmClientRunHelmGetCall ¶ added in v0.50.0
MockHelmClientRunHelmGetCall wrap *gomock.Call
func (*MockHelmClientRunHelmGetCall) Do ¶ added in v0.50.0
func (c *MockHelmClientRunHelmGetCall) Do(f func(*action.Configuration, string) (*release.Release, error)) *MockHelmClientRunHelmGetCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmGetCall) DoAndReturn ¶ added in v0.50.0
func (c *MockHelmClientRunHelmGetCall) DoAndReturn(f func(*action.Configuration, string) (*release.Release, error)) *MockHelmClientRunHelmGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmGetCall) Return ¶ added in v0.50.0
func (c *MockHelmClientRunHelmGetCall) Return(arg0 *release.Release, arg1 error) *MockHelmClientRunHelmGetCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmHistoryCall ¶ added in v0.50.0
MockHelmClientRunHelmHistoryCall wrap *gomock.Call
func (*MockHelmClientRunHelmHistoryCall) Do ¶ added in v0.50.0
func (c *MockHelmClientRunHelmHistoryCall) Do(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmHistoryCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmHistoryCall) DoAndReturn ¶ added in v0.50.0
func (c *MockHelmClientRunHelmHistoryCall) DoAndReturn(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmHistoryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmHistoryCall) Return ¶ added in v0.50.0
func (c *MockHelmClientRunHelmHistoryCall) Return(arg0 []*release.Release, arg1 error) *MockHelmClientRunHelmHistoryCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmInstallCall ¶ added in v0.47.0
MockHelmClientRunHelmInstallCall wrap *gomock.Call
func (*MockHelmClientRunHelmInstallCall) Do ¶ added in v0.47.0
func (c *MockHelmClientRunHelmInstallCall) Do(f func(*action.Configuration, *chart.Chart, string, string, bool) (*release.Release, error)) *MockHelmClientRunHelmInstallCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmInstallCall) DoAndReturn ¶ added in v0.47.0
func (c *MockHelmClientRunHelmInstallCall) DoAndReturn(f func(*action.Configuration, *chart.Chart, string, string, bool) (*release.Release, error)) *MockHelmClientRunHelmInstallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmInstallCall) Return ¶ added in v0.47.0
func (c *MockHelmClientRunHelmInstallCall) Return(arg0 *release.Release, arg1 error) *MockHelmClientRunHelmInstallCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmListCall ¶ added in v0.47.0
MockHelmClientRunHelmListCall wrap *gomock.Call
func (*MockHelmClientRunHelmListCall) Do ¶ added in v0.47.0
func (c *MockHelmClientRunHelmListCall) Do(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmListCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmListCall) DoAndReturn ¶ added in v0.47.0
func (c *MockHelmClientRunHelmListCall) DoAndReturn(f func(*action.Configuration, string) ([]*release.Release, error)) *MockHelmClientRunHelmListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmListCall) Return ¶ added in v0.47.0
func (c *MockHelmClientRunHelmListCall) Return(arg0 []*release.Release, arg1 error) *MockHelmClientRunHelmListCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmPullCall ¶ added in v0.47.0
MockHelmClientRunHelmPullCall wrap *gomock.Call
func (*MockHelmClientRunHelmPullCall) Do ¶ added in v0.47.0
func (c *MockHelmClientRunHelmPullCall) Do(f func([]action.PullOpt, string) (string, error)) *MockHelmClientRunHelmPullCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmPullCall) DoAndReturn ¶ added in v0.47.0
func (c *MockHelmClientRunHelmPullCall) DoAndReturn(f func([]action.PullOpt, string) (string, error)) *MockHelmClientRunHelmPullCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmPullCall) Return ¶ added in v0.47.0
func (c *MockHelmClientRunHelmPullCall) Return(arg0 string, arg1 error) *MockHelmClientRunHelmPullCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmRollbackCall ¶ added in v0.50.0
MockHelmClientRunHelmRollbackCall wrap *gomock.Call
func (*MockHelmClientRunHelmRollbackCall) Do ¶ added in v0.50.0
func (c *MockHelmClientRunHelmRollbackCall) Do(f func(*action.Configuration, string, int, bool) error) *MockHelmClientRunHelmRollbackCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmRollbackCall) DoAndReturn ¶ added in v0.50.0
func (c *MockHelmClientRunHelmRollbackCall) DoAndReturn(f func(*action.Configuration, string, int, bool) error) *MockHelmClientRunHelmRollbackCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmRollbackCall) Return ¶ added in v0.50.0
func (c *MockHelmClientRunHelmRollbackCall) Return(arg0 error) *MockHelmClientRunHelmRollbackCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmUninstallCall ¶ added in v0.47.0
MockHelmClientRunHelmUninstallCall wrap *gomock.Call
func (*MockHelmClientRunHelmUninstallCall) Do ¶ added in v0.47.0
func (c *MockHelmClientRunHelmUninstallCall) Do(f func(*action.Configuration, string, string, bool) (*release.UninstallReleaseResponse, error)) *MockHelmClientRunHelmUninstallCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmUninstallCall) DoAndReturn ¶ added in v0.47.0
func (c *MockHelmClientRunHelmUninstallCall) DoAndReturn(f func(*action.Configuration, string, string, bool) (*release.UninstallReleaseResponse, error)) *MockHelmClientRunHelmUninstallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmUninstallCall) Return ¶ added in v0.47.0
func (c *MockHelmClientRunHelmUninstallCall) Return(arg0 *release.UninstallReleaseResponse, arg1 error) *MockHelmClientRunHelmUninstallCall
Return rewrite *gomock.Call.Return
type MockHelmClientRunHelmUpgradeCall ¶ added in v0.47.0
MockHelmClientRunHelmUpgradeCall wrap *gomock.Call
func (*MockHelmClientRunHelmUpgradeCall) Do ¶ added in v0.47.0
func (c *MockHelmClientRunHelmUpgradeCall) Do(f func(*action.Configuration, *chart.Chart, string, string, bool) (*release.Release, error)) *MockHelmClientRunHelmUpgradeCall
Do rewrite *gomock.Call.Do
func (*MockHelmClientRunHelmUpgradeCall) DoAndReturn ¶ added in v0.47.0
func (c *MockHelmClientRunHelmUpgradeCall) DoAndReturn(f func(*action.Configuration, *chart.Chart, string, string, bool) (*release.Release, error)) *MockHelmClientRunHelmUpgradeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHelmClientRunHelmUpgradeCall) Return ¶ added in v0.47.0
func (c *MockHelmClientRunHelmUpgradeCall) Return(arg0 *release.Release, arg1 error) *MockHelmClientRunHelmUpgradeCall
Return rewrite *gomock.Call.Return
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) CheckRadiusInstall ¶
func (m *MockInterface) CheckRadiusInstall(arg0 string) (InstallState, error)
CheckRadiusInstall mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetLatestRadiusVersion ¶ added in v0.50.0
func (m *MockInterface) GetLatestRadiusVersion(arg0 context.Context) (string, error)
GetLatestRadiusVersion mocks base method.
func (*MockInterface) GetRadiusRevisions ¶ added in v0.50.0
func (m *MockInterface) GetRadiusRevisions(arg0 context.Context, arg1 string) ([]RevisionInfo, error)
GetRadiusRevisions mocks base method.
func (*MockInterface) InstallRadius ¶
func (m *MockInterface) InstallRadius(arg0 context.Context, arg1 ClusterOptions, arg2 string) error
InstallRadius mocks base method.
func (*MockInterface) RollbackRadius ¶ added in v0.50.0
func (m *MockInterface) RollbackRadius(arg0 context.Context, arg1 string) error
RollbackRadius mocks base method.
func (*MockInterface) RollbackRadiusToRevision ¶ added in v0.50.0
RollbackRadiusToRevision mocks base method.
func (*MockInterface) UninstallRadius ¶
func (m *MockInterface) UninstallRadius(arg0 context.Context, arg1 ClusterOptions, arg2 string) error
UninstallRadius mocks base method.
func (*MockInterface) UpgradeRadius ¶ added in v0.47.0
func (m *MockInterface) UpgradeRadius(arg0 context.Context, arg1 ClusterOptions, arg2 string) error
UpgradeRadius mocks base method.
type MockInterfaceCheckRadiusInstallCall ¶ added in v0.35.0
MockInterfaceCheckRadiusInstallCall wrap *gomock.Call
func (*MockInterfaceCheckRadiusInstallCall) Do ¶ added in v0.35.0
func (c *MockInterfaceCheckRadiusInstallCall) Do(f func(string) (InstallState, error)) *MockInterfaceCheckRadiusInstallCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceCheckRadiusInstallCall) DoAndReturn ¶ added in v0.35.0
func (c *MockInterfaceCheckRadiusInstallCall) DoAndReturn(f func(string) (InstallState, error)) *MockInterfaceCheckRadiusInstallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceCheckRadiusInstallCall) Return ¶ added in v0.35.0
func (c *MockInterfaceCheckRadiusInstallCall) Return(arg0 InstallState, arg1 error) *MockInterfaceCheckRadiusInstallCall
Return rewrite *gomock.Call.Return
type MockInterfaceGetLatestRadiusVersionCall ¶ added in v0.50.0
MockInterfaceGetLatestRadiusVersionCall wrap *gomock.Call
func (*MockInterfaceGetLatestRadiusVersionCall) Do ¶ added in v0.50.0
func (c *MockInterfaceGetLatestRadiusVersionCall) Do(f func(context.Context) (string, error)) *MockInterfaceGetLatestRadiusVersionCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceGetLatestRadiusVersionCall) DoAndReturn ¶ added in v0.50.0
func (c *MockInterfaceGetLatestRadiusVersionCall) DoAndReturn(f func(context.Context) (string, error)) *MockInterfaceGetLatestRadiusVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceGetLatestRadiusVersionCall) Return ¶ added in v0.50.0
func (c *MockInterfaceGetLatestRadiusVersionCall) Return(arg0 string, arg1 error) *MockInterfaceGetLatestRadiusVersionCall
Return rewrite *gomock.Call.Return
type MockInterfaceGetRadiusRevisionsCall ¶ added in v0.50.0
MockInterfaceGetRadiusRevisionsCall wrap *gomock.Call
func (*MockInterfaceGetRadiusRevisionsCall) Do ¶ added in v0.50.0
func (c *MockInterfaceGetRadiusRevisionsCall) Do(f func(context.Context, string) ([]RevisionInfo, error)) *MockInterfaceGetRadiusRevisionsCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceGetRadiusRevisionsCall) DoAndReturn ¶ added in v0.50.0
func (c *MockInterfaceGetRadiusRevisionsCall) DoAndReturn(f func(context.Context, string) ([]RevisionInfo, error)) *MockInterfaceGetRadiusRevisionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceGetRadiusRevisionsCall) Return ¶ added in v0.50.0
func (c *MockInterfaceGetRadiusRevisionsCall) Return(arg0 []RevisionInfo, arg1 error) *MockInterfaceGetRadiusRevisionsCall
Return rewrite *gomock.Call.Return
type MockInterfaceInstallRadiusCall ¶ added in v0.35.0
MockInterfaceInstallRadiusCall wrap *gomock.Call
func (*MockInterfaceInstallRadiusCall) Do ¶ added in v0.35.0
func (c *MockInterfaceInstallRadiusCall) Do(f func(context.Context, ClusterOptions, string) error) *MockInterfaceInstallRadiusCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceInstallRadiusCall) DoAndReturn ¶ added in v0.35.0
func (c *MockInterfaceInstallRadiusCall) DoAndReturn(f func(context.Context, ClusterOptions, string) error) *MockInterfaceInstallRadiusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceInstallRadiusCall) Return ¶ added in v0.35.0
func (c *MockInterfaceInstallRadiusCall) Return(arg0 error) *MockInterfaceInstallRadiusCall
Return rewrite *gomock.Call.Return
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) CheckRadiusInstall ¶
func (mr *MockInterfaceMockRecorder) CheckRadiusInstall(arg0 any) *MockInterfaceCheckRadiusInstallCall
CheckRadiusInstall indicates an expected call of CheckRadiusInstall.
func (*MockInterfaceMockRecorder) GetLatestRadiusVersion ¶ added in v0.50.0
func (mr *MockInterfaceMockRecorder) GetLatestRadiusVersion(arg0 any) *MockInterfaceGetLatestRadiusVersionCall
GetLatestRadiusVersion indicates an expected call of GetLatestRadiusVersion.
func (*MockInterfaceMockRecorder) GetRadiusRevisions ¶ added in v0.50.0
func (mr *MockInterfaceMockRecorder) GetRadiusRevisions(arg0, arg1 any) *MockInterfaceGetRadiusRevisionsCall
GetRadiusRevisions indicates an expected call of GetRadiusRevisions.
func (*MockInterfaceMockRecorder) InstallRadius ¶
func (mr *MockInterfaceMockRecorder) InstallRadius(arg0, arg1, arg2 any) *MockInterfaceInstallRadiusCall
InstallRadius indicates an expected call of InstallRadius.
func (*MockInterfaceMockRecorder) RollbackRadius ¶ added in v0.50.0
func (mr *MockInterfaceMockRecorder) RollbackRadius(arg0, arg1 any) *MockInterfaceRollbackRadiusCall
RollbackRadius indicates an expected call of RollbackRadius.
func (*MockInterfaceMockRecorder) RollbackRadiusToRevision ¶ added in v0.50.0
func (mr *MockInterfaceMockRecorder) RollbackRadiusToRevision(arg0, arg1, arg2 any) *MockInterfaceRollbackRadiusToRevisionCall
RollbackRadiusToRevision indicates an expected call of RollbackRadiusToRevision.
func (*MockInterfaceMockRecorder) UninstallRadius ¶
func (mr *MockInterfaceMockRecorder) UninstallRadius(arg0, arg1, arg2 any) *MockInterfaceUninstallRadiusCall
UninstallRadius indicates an expected call of UninstallRadius.
func (*MockInterfaceMockRecorder) UpgradeRadius ¶ added in v0.47.0
func (mr *MockInterfaceMockRecorder) UpgradeRadius(arg0, arg1, arg2 any) *MockInterfaceUpgradeRadiusCall
UpgradeRadius indicates an expected call of UpgradeRadius.
type MockInterfaceRollbackRadiusCall ¶ added in v0.50.0
MockInterfaceRollbackRadiusCall wrap *gomock.Call
func (*MockInterfaceRollbackRadiusCall) Do ¶ added in v0.50.0
func (c *MockInterfaceRollbackRadiusCall) Do(f func(context.Context, string) error) *MockInterfaceRollbackRadiusCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceRollbackRadiusCall) DoAndReturn ¶ added in v0.50.0
func (c *MockInterfaceRollbackRadiusCall) DoAndReturn(f func(context.Context, string) error) *MockInterfaceRollbackRadiusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceRollbackRadiusCall) Return ¶ added in v0.50.0
func (c *MockInterfaceRollbackRadiusCall) Return(arg0 error) *MockInterfaceRollbackRadiusCall
Return rewrite *gomock.Call.Return
type MockInterfaceRollbackRadiusToRevisionCall ¶ added in v0.50.0
MockInterfaceRollbackRadiusToRevisionCall wrap *gomock.Call
func (*MockInterfaceRollbackRadiusToRevisionCall) Do ¶ added in v0.50.0
func (c *MockInterfaceRollbackRadiusToRevisionCall) Do(f func(context.Context, string, int) error) *MockInterfaceRollbackRadiusToRevisionCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceRollbackRadiusToRevisionCall) DoAndReturn ¶ added in v0.50.0
func (c *MockInterfaceRollbackRadiusToRevisionCall) DoAndReturn(f func(context.Context, string, int) error) *MockInterfaceRollbackRadiusToRevisionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceRollbackRadiusToRevisionCall) Return ¶ added in v0.50.0
func (c *MockInterfaceRollbackRadiusToRevisionCall) Return(arg0 error) *MockInterfaceRollbackRadiusToRevisionCall
Return rewrite *gomock.Call.Return
type MockInterfaceUninstallRadiusCall ¶ added in v0.35.0
MockInterfaceUninstallRadiusCall wrap *gomock.Call
func (*MockInterfaceUninstallRadiusCall) Do ¶ added in v0.35.0
func (c *MockInterfaceUninstallRadiusCall) Do(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUninstallRadiusCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceUninstallRadiusCall) DoAndReturn ¶ added in v0.35.0
func (c *MockInterfaceUninstallRadiusCall) DoAndReturn(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUninstallRadiusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceUninstallRadiusCall) Return ¶ added in v0.35.0
func (c *MockInterfaceUninstallRadiusCall) Return(arg0 error) *MockInterfaceUninstallRadiusCall
Return rewrite *gomock.Call.Return
type MockInterfaceUpgradeRadiusCall ¶ added in v0.47.0
MockInterfaceUpgradeRadiusCall wrap *gomock.Call
func (*MockInterfaceUpgradeRadiusCall) Do ¶ added in v0.47.0
func (c *MockInterfaceUpgradeRadiusCall) Do(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUpgradeRadiusCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceUpgradeRadiusCall) DoAndReturn ¶ added in v0.47.0
func (c *MockInterfaceUpgradeRadiusCall) DoAndReturn(f func(context.Context, ClusterOptions, string) error) *MockInterfaceUpgradeRadiusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceUpgradeRadiusCall) Return ¶ added in v0.47.0
func (c *MockInterfaceUpgradeRadiusCall) Return(arg0 error) *MockInterfaceUpgradeRadiusCall
Return rewrite *gomock.Call.Return
type RadiusChartOptions ¶ added in v0.47.0
type RadiusChartOptions struct {
ChartOptions
}
type RevisionInfo ¶ added in v0.50.0
type RevisionInfo struct { // Revision is the revision number of the release. Revision int // ChartVersion is the version of the chart used in this revision. ChartVersion string // UpdatedAt is when this revision was deployed. UpdatedAt string // Status is the current status of the revision (e.g., deployed, superseded). Status string // Description provides additional information about the revision. Description string }
RevisionInfo contains information about a specific Helm release revision.