ocm

package
v0.0.0-...-5851d12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package ocm is a generated GoMock package.

Index

Constants

View Source
const (
	CSPropertyProvisionShardID = "provision_shard_id"
	CSPropertyNoopProvision    = "provisioner_noop_provision"
	CSPropertyNoopDeprovision  = "provisioner_noop_deprovision"
	CSPropertySingleReplica    = "hosted_cluster_single_replica"
	CSPropertySizeOverride     = "hosted_cluster_size_override"
	CSPropertyCPOImageOverride = "control_plane_operator_image"

	CSPropertyEnabled                    = "true"
	CSPropertyE2EMinimalControlPlaneSize = "e2e_minimal"
)

CS cluster property keys and values used in the Cluster Service API.

View Source
const (
	CSCloudProvider string = "azure"

	CSCIDRBlockAllowAccessModeAllowAll  string = "allow_all"
	CSCIDRBlockAllowAccessModeAllowList string = "allow_list"

	CSProvisionShardStatusActive      string = "active"
	CSProvisionShardStatusMaintenance string = "maintenance"
	CSProvisionShardStatusOffline     string = "offline"
	CSProvisionShardTopologyShared    string = "shared"
)

Variables

View Source
var ErrUnknownValue = errors.New("unknown value")

Sentinel error for use with errors.Is

Functions

func BuildCSCluster

func BuildCSCluster(resourceID *azcorearm.ResourceID, tenantID string, hcpCluster *api.HCPOpenShiftCluster, requiredProperties map[string]string, oldClusterServiceCluster *arohcpv1alpha1.Cluster, serviceProviderCluster *api.ServiceProviderCluster) (*arohcpv1alpha1.ClusterBuilder, error)

BuildCSCluster creates a CS ClusterBuilder object from an HCPOpenShiftCluster object. requiredProperties are caller-specified properties (e.g. provision shard, noop flags). oldClusterServiceCluster, if non-nil, indicates an update and its existing properties are preserved as a base layer.

func BuildCSExternalAuth

func BuildCSExternalAuth(ctx context.Context, externalAuth *api.HCPOpenShiftClusterExternalAuth, updating bool) (*arohcpv1alpha1.ExternalAuthBuilder, error)

BuildCSExternalAuth creates a CS ExternalAuthBuilder object from an HCPOpenShiftClusterExternalAuth object.

func BuildCSNodePool

func BuildCSNodePool(ctx context.Context, nodePool *api.HCPOpenShiftClusterNodePool, updating bool) (*arohcpv1alpha1.NodePoolBuilder, error)

BuildCSNodePool creates a CS NodePoolBuilder object from an HCPOpenShiftClusterNodePool object.

func CSErrorToCloudError

func CSErrorToCloudError(err error, resourceID *azcorearm.ResourceID) *arm.CloudError

CSErrorToCloudError attempts to convert various 4xx status codes from Cluster Service to an ARM-compliant error structure, with 500 Internal Server Error as a last-ditch fallback.

func ClusterUpdateDispatchConfigAuthorizedCIDRsFromCS

func ClusterUpdateDispatchConfigAuthorizedCIDRsFromCS(in *arohcpv1alpha1.ClusterAPI) []string

ClusterUpdateDispatchConfigAuthorizedCIDRsFromCS extracts customer authorized CIDRs from a Cluster Service cluster API configuration. Returns nil when access is not allow-list mode.

func ClusterUpdateDispatchConfigJSONFromCS

func ClusterUpdateDispatchConfigJSONFromCS(csCluster *arohcpv1alpha1.Cluster) (string, error)

ClusterUpdateDispatchConfigJSONFromCS returns the canonical JSON of the dispatch config projected from a Cluster Service cluster.

func ClusterUpdateDispatchConfigJSONFromRP

func ClusterUpdateDispatchConfigJSONFromRP(cluster *api.HCPOpenShiftCluster, serviceProviderCluster *api.ServiceProviderCluster) (string, error)

ClusterUpdateDispatchConfigJSONFromRP returns the canonical JSON of the dispatch config projected from RP desired state.

func ClusterUpdateDispatchConfigNodeDrainTimeoutFromCS

func ClusterUpdateDispatchConfigNodeDrainTimeoutFromCS(in *arohcpv1alpha1.Cluster) int32

ClusterUpdateDispatchConfigNodeDrainTimeoutFromCS extracts the node drain timeout in minutes from a Cluster Service cluster. Returns 0 when unset or not expressed in minutes.

func ConvertCSManagementClusterToInternal

func ConvertCSManagementClusterToInternal(csShard *arohcpv1alpha1.ProvisionShard) (*fleet.ManagementCluster, error)

ConvertCSManagementClusterToInternal converts a Cluster Service ProvisionShard to the internal ManagementCluster representation.

func ConvertCStoAdminCredential

func ConvertCStoAdminCredential(breakGlassCredential *cmv1.BreakGlassCredential) *api.HCPOpenShiftClusterAdminCredential

ConvertCStoAdminCredential converts a CS BreakGlassCredential object into an HCPOpenShiftClusterAdminCredential object.

func ConvertCStoHCPOpenShiftVersion

func ConvertCStoHCPOpenShiftVersion(resourceID *azcorearm.ResourceID, version *arohcpv1alpha1.Version) *api.HCPOpenShiftVersion

ConvertCStoHCPOpenShiftVersion converts a CS Version object into an HCPOpenShiftVersion object.

func ConvertHostedClusterSizeOverrideToCS

func ConvertHostedClusterSizeOverrideToCS(desiredClusterControlPlanePodSizing api.ControlPlanePodSizing, desiredServiceProviderClusterControlPlanePodSizing *string) (string, bool)

ConvertHostedClusterSizeOverrideToCS returns the value the CSPropertySizeOverride entry should have when receiving desiredClusterControlPlanePodSizing, which is the Cosmos level ControlPlanePodSizing configuration, as well as the ServiceProviderCluster level one. It also returns whether the property should be set at all on CS side. This is the single source of truth for computing the override and is shared between the cluster update dispatch controller (CS writer) and the desired-control-plane-size status reconciler (SPC Status confirmation) so the two cannot disagree.

Precedence:

  1. desiredServiceProviderClusterControlPlanePodSizing, when set to non nil wins. Returned lowercased because cluster-service's clustersizingconfiguration uses lowercase tier names.
  2. Otherwise, desiredClusterControlPlanePodSizing == MinimalControlPlanePodSizing returns CSPropertyE2EMinimalControlPlaneSize ("e2e_minimal"), the named internal-only tier cluster-service uses for the e2e minimal layout.
  3. Otherwise the property is determined to need to be absent

func ConvertOpenShiftVersionAddPrefix

func ConvertOpenShiftVersionAddPrefix(v string) string

ConvertOpenShiftVersionAddPrefix adds openshift-v prefix

func ConvertOpenShiftVersionNoPrefix

func ConvertOpenShiftVersionNoPrefix(v string) string

ConvertOpenShiftVersionNoPrefix strips off openshift-v prefix

func ExternalAuthUpdateDispatchConfigJSONFromCS

func ExternalAuthUpdateDispatchConfigJSONFromCS(csExternalAuth *arohcpv1alpha1.ExternalAuth) (string, error)

ExternalAuthUpdateDispatchConfigJSONFromCS returns the canonical JSON of the dispatch config projected from a Cluster Service external auth.

func ExternalAuthUpdateDispatchConfigJSONFromRP

func ExternalAuthUpdateDispatchConfigJSONFromRP(externalAuth *api.HCPOpenShiftClusterExternalAuth) (string, error)

ExternalAuthUpdateDispatchConfigJSONFromRP returns the canonical JSON of the dispatch config projected from RP desired state.

func GenerateAROHCPBreakGlassCredentialHREF

func GenerateAROHCPBreakGlassCredentialHREF(clusterPath string, credentialName string) string

func GenerateAROHCPClusterHREF

func GenerateAROHCPClusterHREF(clusterName string) string

func GenerateAROHCPExternalAuthHREF

func GenerateAROHCPExternalAuthHREF(clusterPath string, externalAuthName string) string

func GenerateAROHCPNodePoolHREF

func GenerateAROHCPNodePoolHREF(clusterPath string, nodePoolName string) string

func GenerateOCMCommercialBreakGlassCredentialHREF

func GenerateOCMCommercialBreakGlassCredentialHREF(clusterPath string, credentialName string) string

func GenerateOCMCommercialClusterHREF

func GenerateOCMCommercialClusterHREF(clusterName string) string

func GenerateOCMCommercialExternalAuthHREF

func GenerateOCMCommercialExternalAuthHREF(clusterPath string, externalAuthName string) string

func GenerateOCMCommercialNodePoolHREF

func GenerateOCMCommercialNodePoolHREF(clusterPath string, nodePoolName string) string

func GetBreakGlassCredentialClient

func GetBreakGlassCredentialClient(id InternalID, transport http.RoundTripper) (*cmv1.BreakGlassCredentialClient, bool)

GetBreakGlassCredentialClient returns a v1 BreakGlassCredentialClient from the InternalID. The transport is most likely to be a Connection object from the SDK.

func GetClusterServiceUserAssignedIdentities

func GetClusterServiceUserAssignedIdentities(clusterServiceCluster *arohcpv1alpha1.Cluster) map[string]*arm.UserAssignedIdentity

GetClusterServiceUserAssignedIdentities extracts user-assigned identities from a CS Cluster object, keyed by resource ID.

func GetExternalAuthClient

func GetExternalAuthClient(id InternalID, transport http.RoundTripper) (*arohcpv1alpha1.ExternalAuthClient, bool)

GetExternalAuthClient returns a arohcpv1alpha1 ExternalAuthClient from the InternalID. The transport is most likely to be a Connection object from the SDK.

func GetNodePoolClient

func GetNodePoolClient(id InternalID, transport http.RoundTripper) (*arohcpv1alpha1.NodePoolClient, bool)

GetNodePoolClient returns a arohcpv1alpha1 NodePoolClient from the InternalID. The transport is most likely to be a Connection object from the SDK.

func NewOpenShiftVersionXY

func NewOpenShiftVersionXY(v string) string

NewOpenShiftVersionXY parses the given version, stripping off any OpenShift prefix ("openshift-"), and suffix ("-<channel_group>") and returns a new Version X.Y.

func NewOpenShiftVersionXYZ

func NewOpenShiftVersionXYZ(v, cg string) string

NewOpenShiftVersionXYZ parses the given version and converts it to CS readable version CS readable version "openshift-v<X.Y.Z>" or "openshift-v<X.Y.Z>-channel_group"

func NodePoolUpdateDispatchConfigDiffJSON

func NodePoolUpdateDispatchConfigDiffJSON(nodePool *api.HCPOpenShiftClusterNodePool, csNodePool *arohcpv1alpha1.NodePool) (string, string, error)

NodePoolUpdateDispatchConfigDiffJSON returns canonical JSON for both sides of the dispatch diff comparison, including drain-timeout normalization when RP has no override.

func NodePoolUpdateDispatchConfigEffectiveNodeDrainTimeoutMinutes

func NodePoolUpdateDispatchConfigEffectiveNodeDrainTimeoutMinutes(nodePool *api.HCPOpenShiftClusterNodePool, csNodePool *arohcpv1alpha1.NodePool) *int32

NodePoolUpdateDispatchConfigEffectiveNodeDrainTimeoutMinutes returns the drain timeout Hypershift reconciliation should expect. When RP stores an explicit override, that value is returned. When RP stores nil (no override), the live Cluster Service node pool value is returned because CS PATCH omit/null cannot clear or re-inherit cluster default.

func NodePoolUpdateDispatchConfigJSONFromCS

func NodePoolUpdateDispatchConfigJSONFromCS(csNodePool *arohcpv1alpha1.NodePool) (string, error)

NodePoolUpdateDispatchConfigJSONFromCS returns the canonical JSON of the dispatch config projected from a Cluster Service node pool.

func NodePoolUpdateDispatchConfigJSONFromRP

func NodePoolUpdateDispatchConfigJSONFromRP(nodePool *api.HCPOpenShiftClusterNodePool) (string, error)

NodePoolUpdateDispatchConfigJSONFromRP returns the canonical JSON of the dispatch config projected from RP desired state.

func NodePoolUpdateDispatchConfigLabelsFromCS

func NodePoolUpdateDispatchConfigLabelsFromCS(csNodePool *arohcpv1alpha1.NodePool) map[string]string

NodePoolUpdateDispatchConfigLabelsFromCS extracts labels from a Cluster Service node pool.

func NodePoolUpdateDispatchConfigNodeDrainTimeoutFromCS

func NodePoolUpdateDispatchConfigNodeDrainTimeoutFromCS(in *arohcpv1alpha1.NodePool) *int32

NodePoolUpdateDispatchConfigNodeDrainTimeoutFromCS extracts the node drain timeout in minutes from a Cluster Service node pool object. Returns nil when unset.

Types

type BreakGlassCredentialListIterator

type BreakGlassCredentialListIterator interface {
	Items(ctx context.Context) iter.Seq[*cmv1.BreakGlassCredential]
	GetError() error
}

func NewSimpleBreakGlassCredentialsListIterator

func NewSimpleBreakGlassCredentialsListIterator(objs []*cmv1.BreakGlassCredential, err error) BreakGlassCredentialListIterator

type ClusterListIterator

type ClusterListIterator interface {
	Items(ctx context.Context) iter.Seq[*arohcpv1alpha1.Cluster]
	GetError() error
}

func NewSimpleClusterListIterator

func NewSimpleClusterListIterator(objs []*arohcpv1alpha1.Cluster, err error) ClusterListIterator

type ClusterServiceClientSpec

type ClusterServiceClientSpec interface {
	// GetCluster sends a GET request to fetch a cluster from Cluster Service.
	GetCluster(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.Cluster, error)

	// GetClusterStatus sends a GET request to fetch a cluster's status from Cluster Service.
	GetClusterStatus(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.ClusterStatus, error)

	// GetClusterProvisionShard sends a GET request to fetch a cluster's provision shard from Cluster Service.
	GetClusterProvisionShard(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.ProvisionShard, error)

	// GetClusterInflightChecks sends a GET request to fetch a cluster's inflight checks from Cluster Service.
	GetClusterInflightChecks(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.InflightCheckList, error)

	// GetClusterHypershiftDetails sends a GET request to fetch a cluster's hypershift details from Cluster Service.
	GetClusterHypershiftDetails(ctx context.Context, internalID InternalID) (*cmv1.HypershiftConfig, error)

	// PostCluster sends a POST request to create a cluster in Cluster Service.
	PostCluster(ctx context.Context, clusterBuilder *arohcpv1alpha1.ClusterBuilder) (*arohcpv1alpha1.Cluster, error)

	// UpdateCluster sends a PATCH request to update a cluster in Cluster Service.
	UpdateCluster(ctx context.Context, internalID InternalID, builder *arohcpv1alpha1.ClusterBuilder) (*arohcpv1alpha1.Cluster, error)

	// DeleteCluster sends a DELETE request to delete a cluster from Cluster Service.
	DeleteCluster(ctx context.Context, internalID InternalID) error

	// ListClusters prepares a GET request with the given search expression. Call Items() on
	// the returned iterator in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListClusters(searchExpression string) ClusterListIterator

	// GetNodePool sends a GET request to fetch a node pool from Cluster Service.
	GetNodePool(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.NodePool, error)

	// GetNodePoolStatus sends a GET request to fetch a node pool's status from Cluster Service.
	GetNodePoolStatus(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.NodePoolStatus, error)

	// PostNodePool sends a POST request to create a node pool in Cluster Service.
	PostNodePool(ctx context.Context, clusterInternalID InternalID, builder *arohcpv1alpha1.NodePoolBuilder) (*arohcpv1alpha1.NodePool, error)

	// UpdateNodePool sends a PATCH request to update a node pool in Cluster Service.
	UpdateNodePool(ctx context.Context, internalID InternalID, builder *arohcpv1alpha1.NodePoolBuilder) (*arohcpv1alpha1.NodePool, error)

	// DeleteNodePool sends a DELETE request to delete a node pool from Cluster Service.
	DeleteNodePool(ctx context.Context, internalID InternalID) error

	// ListNodePools prepares a GET request with the given search expression. Call Items() on
	// the returned iterator in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListNodePools(clusterInternalID InternalID, searchExpression string) NodePoolListIterator

	// GetExternalAuth sends a GET request to fetch an external auth config from Cluster Service.
	GetExternalAuth(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.ExternalAuth, error)

	// PostExternalAuth sends a POST request to create an external auth config in Cluster Service.
	PostExternalAuth(ctx context.Context, clusterInternalID InternalID, builder *arohcpv1alpha1.ExternalAuthBuilder) (*arohcpv1alpha1.ExternalAuth, error)

	// UpdateExternalAuth sends a PATCH request to update an external auth config in Cluster Service.
	UpdateExternalAuth(ctx context.Context, internalID InternalID, builder *arohcpv1alpha1.ExternalAuthBuilder) (*arohcpv1alpha1.ExternalAuth, error)

	// DeleteExternalAuth sends a DELETE request to delete an external auth config from Cluster Service.
	DeleteExternalAuth(ctx context.Context, internalID InternalID) error

	// ListExternalAuths prepares a GET request with the given search expression. Call Items() on
	// the returned iterator in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListExternalAuths(clusterInternalID InternalID, searchExpression string) ExternalAuthListIterator

	// GetBreakGlassCredential sends a GET request to fetch a break-glass cluster credential from Cluster Service.
	GetBreakGlassCredential(ctx context.Context, internalID InternalID) (*cmv1.BreakGlassCredential, error)

	// PostBreakGlassCredential sends a POST request to create a break-glass cluster credential in Cluster Service.
	PostBreakGlassCredential(ctx context.Context, clusterInternalID InternalID) (*cmv1.BreakGlassCredential, error)

	// DeleteBreakGlassCredentials sends a DELETE request to revoke all break-glass credentials for a cluster in Cluster Service.
	DeleteBreakGlassCredentials(ctx context.Context, clusterInternalID InternalID) error

	// ListBreakGlassCredentials prepares a GET request with the given search expression. Call
	// Items() on the returned iterator in a for/range loop to execute the request and paginate
	// over results, then call GetError() to check for an iteration error.
	ListBreakGlassCredentials(clusterInternalID InternalID, searchExpression string) BreakGlassCredentialListIterator

	// GetVersion sends a GET request to fetch cluster version
	GetVersion(ctx context.Context, versionName string) (*arohcpv1alpha1.Version, error)

	// ListVersions prepares a GET request.
	// Call Items() on the returned iterator with options in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListVersions() *VersionsListIterator

	// ListControlPlaneUpgradePolicies prepares a GET request to list control plane upgrade policies for a cluster.
	// Call Items() on the returned iterator in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListControlPlaneUpgradePolicies(clusterInternalID InternalID, orderBy string) ControlPlaneUpgradePolicyListIterator

	// PostControlPlaneUpgradePolicy sends a POST request to create a control plane upgrade policy in Cluster Service.
	PostControlPlaneUpgradePolicy(ctx context.Context, clusterInternalID InternalID, builder *arohcpv1alpha1.ControlPlaneUpgradePolicyBuilder) (*arohcpv1alpha1.ControlPlaneUpgradePolicy, error)

	// ListProvisionShards prepares a GET request to list provision shards.
	// Call Items() on the returned iterator in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListProvisionShards() ProvisionShardListIterator

	// GetProvisionShard sends a GET request to fetch a provision shard from Cluster Service.
	// The internalID is the internal ID of the provision shard.
	GetProvisionShard(ctx context.Context, internalID InternalID) (*arohcpv1alpha1.ProvisionShard, error)

	// PostProvisionShard sends a POST request to create a provision shard in Cluster Service.
	PostProvisionShard(ctx context.Context, builder *arohcpv1alpha1.ProvisionShardBuilder) (*arohcpv1alpha1.ProvisionShard, error)

	// UpdateProvisionShard sends a PATCH request to update a provision shard in Cluster Service.
	UpdateProvisionShard(ctx context.Context, internalID InternalID, builder *arohcpv1alpha1.ProvisionShardBuilder) (*arohcpv1alpha1.ProvisionShard, error)

	// DeleteProvisionShard sends a DELETE request to delete a provision shard from Cluster Service.
	DeleteProvisionShard(ctx context.Context, internalID InternalID) error
	// ListNodePoolUpgradePolicies prepares a GET request to list node pool upgrade policies for a node pool.
	// Call Items() on the returned iterator in a for/range loop to execute the request and paginate over results,
	// then call GetError() to check for an iteration error.
	ListNodePoolUpgradePolicies(nodePoolInternalID InternalID, orderBy string) NodePoolUpgradePolicyListIterator

	// PostNodePoolUpgradePolicy sends a POST request to create a node pool upgrade policy in Cluster Service.
	PostNodePoolUpgradePolicy(ctx context.Context, nodePoolInternalID InternalID, builder *arohcpv1alpha1.NodePoolUpgradePolicyBuilder) (*arohcpv1alpha1.NodePoolUpgradePolicy, error)
}

func NewClusterServiceClient

func NewClusterServiceClient(conn *sdk.Connection) ClusterServiceClientSpec

func NewClusterServiceClientWithTracing

func NewClusterServiceClientWithTracing(csc ClusterServiceClientSpec, tracerName string) ClusterServiceClientSpec

type ControlPlaneUpgradePolicyListIterator

type ControlPlaneUpgradePolicyListIterator interface {
	Items(ctx context.Context) iter.Seq[*arohcpv1alpha1.ControlPlaneUpgradePolicy]
	GetError() error
}

type ExternalAuthListIterator

type ExternalAuthListIterator interface {
	Items(ctx context.Context) iter.Seq[*arohcpv1alpha1.ExternalAuth]
	GetError() error
}

func NewSimpleExternalAuthListIterator

func NewSimpleExternalAuthListIterator(objs []*arohcpv1alpha1.ExternalAuth, err error) ExternalAuthListIterator

type InternalID

type InternalID = api.InternalID

type ListIterator

type ListIterator[T any] interface {
	Items(ctx context.Context) iter.Seq[*T]
	GetError() error
}

type MockClusterServiceClientSpec

type MockClusterServiceClientSpec struct {
	// contains filtered or unexported fields
}

MockClusterServiceClientSpec is a mock of ClusterServiceClientSpec interface.

func NewMockClusterServiceClientSpec

func NewMockClusterServiceClientSpec(ctrl *gomock.Controller) *MockClusterServiceClientSpec

NewMockClusterServiceClientSpec creates a new mock instance.

func (*MockClusterServiceClientSpec) DeleteBreakGlassCredentials

func (m *MockClusterServiceClientSpec) DeleteBreakGlassCredentials(ctx context.Context, clusterInternalID InternalID) error

DeleteBreakGlassCredentials mocks base method.

func (*MockClusterServiceClientSpec) DeleteCluster

func (m *MockClusterServiceClientSpec) DeleteCluster(ctx context.Context, internalID InternalID) error

DeleteCluster mocks base method.

func (*MockClusterServiceClientSpec) DeleteExternalAuth

func (m *MockClusterServiceClientSpec) DeleteExternalAuth(ctx context.Context, internalID InternalID) error

DeleteExternalAuth mocks base method.

func (*MockClusterServiceClientSpec) DeleteNodePool

func (m *MockClusterServiceClientSpec) DeleteNodePool(ctx context.Context, internalID InternalID) error

DeleteNodePool mocks base method.

func (*MockClusterServiceClientSpec) DeleteProvisionShard

func (m *MockClusterServiceClientSpec) DeleteProvisionShard(ctx context.Context, internalID InternalID) error

DeleteProvisionShard mocks base method.

func (*MockClusterServiceClientSpec) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClusterServiceClientSpec) GetBreakGlassCredential

func (m *MockClusterServiceClientSpec) GetBreakGlassCredential(ctx context.Context, internalID InternalID) (*v1.BreakGlassCredential, error)

GetBreakGlassCredential mocks base method.

func (*MockClusterServiceClientSpec) GetCluster

func (m *MockClusterServiceClientSpec) GetCluster(ctx context.Context, internalID InternalID) (*v1alpha1.Cluster, error)

GetCluster mocks base method.

func (*MockClusterServiceClientSpec) GetClusterHypershiftDetails

func (m *MockClusterServiceClientSpec) GetClusterHypershiftDetails(ctx context.Context, internalID InternalID) (*v1.HypershiftConfig, error)

GetClusterHypershiftDetails mocks base method.

func (*MockClusterServiceClientSpec) GetClusterInflightChecks

func (m *MockClusterServiceClientSpec) GetClusterInflightChecks(ctx context.Context, internalID InternalID) (*v1alpha1.InflightCheckList, error)

GetClusterInflightChecks mocks base method.

func (*MockClusterServiceClientSpec) GetClusterProvisionShard

func (m *MockClusterServiceClientSpec) GetClusterProvisionShard(ctx context.Context, internalID InternalID) (*v1alpha1.ProvisionShard, error)

GetClusterProvisionShard mocks base method.

func (*MockClusterServiceClientSpec) GetClusterStatus

func (m *MockClusterServiceClientSpec) GetClusterStatus(ctx context.Context, internalID InternalID) (*v1alpha1.ClusterStatus, error)

GetClusterStatus mocks base method.

func (*MockClusterServiceClientSpec) GetExternalAuth

func (m *MockClusterServiceClientSpec) GetExternalAuth(ctx context.Context, internalID InternalID) (*v1alpha1.ExternalAuth, error)

GetExternalAuth mocks base method.

func (*MockClusterServiceClientSpec) GetNodePool

func (m *MockClusterServiceClientSpec) GetNodePool(ctx context.Context, internalID InternalID) (*v1alpha1.NodePool, error)

GetNodePool mocks base method.

func (*MockClusterServiceClientSpec) GetNodePoolStatus

func (m *MockClusterServiceClientSpec) GetNodePoolStatus(ctx context.Context, internalID InternalID) (*v1alpha1.NodePoolStatus, error)

GetNodePoolStatus mocks base method.

func (*MockClusterServiceClientSpec) GetProvisionShard

func (m *MockClusterServiceClientSpec) GetProvisionShard(ctx context.Context, internalID InternalID) (*v1alpha1.ProvisionShard, error)

GetProvisionShard mocks base method.

func (*MockClusterServiceClientSpec) GetVersion

func (m *MockClusterServiceClientSpec) GetVersion(ctx context.Context, versionName string) (*v1alpha1.Version, error)

GetVersion mocks base method.

func (*MockClusterServiceClientSpec) ListBreakGlassCredentials

func (m *MockClusterServiceClientSpec) ListBreakGlassCredentials(clusterInternalID InternalID, searchExpression string) BreakGlassCredentialListIterator

ListBreakGlassCredentials mocks base method.

func (*MockClusterServiceClientSpec) ListClusters

func (m *MockClusterServiceClientSpec) ListClusters(searchExpression string) ClusterListIterator

ListClusters mocks base method.

func (*MockClusterServiceClientSpec) ListControlPlaneUpgradePolicies

func (m *MockClusterServiceClientSpec) ListControlPlaneUpgradePolicies(clusterInternalID InternalID, orderBy string) ControlPlaneUpgradePolicyListIterator

ListControlPlaneUpgradePolicies mocks base method.

func (*MockClusterServiceClientSpec) ListExternalAuths

func (m *MockClusterServiceClientSpec) ListExternalAuths(clusterInternalID InternalID, searchExpression string) ExternalAuthListIterator

ListExternalAuths mocks base method.

func (*MockClusterServiceClientSpec) ListNodePoolUpgradePolicies

func (m *MockClusterServiceClientSpec) ListNodePoolUpgradePolicies(nodePoolInternalID InternalID, orderBy string) NodePoolUpgradePolicyListIterator

ListNodePoolUpgradePolicies mocks base method.

func (*MockClusterServiceClientSpec) ListNodePools

func (m *MockClusterServiceClientSpec) ListNodePools(clusterInternalID InternalID, searchExpression string) NodePoolListIterator

ListNodePools mocks base method.

func (*MockClusterServiceClientSpec) ListProvisionShards

ListProvisionShards mocks base method.

func (*MockClusterServiceClientSpec) ListVersions

ListVersions mocks base method.

func (*MockClusterServiceClientSpec) PostBreakGlassCredential

func (m *MockClusterServiceClientSpec) PostBreakGlassCredential(ctx context.Context, clusterInternalID InternalID) (*v1.BreakGlassCredential, error)

PostBreakGlassCredential mocks base method.

func (*MockClusterServiceClientSpec) PostCluster

func (m *MockClusterServiceClientSpec) PostCluster(ctx context.Context, clusterBuilder *v1alpha1.ClusterBuilder) (*v1alpha1.Cluster, error)

PostCluster mocks base method.

func (*MockClusterServiceClientSpec) PostControlPlaneUpgradePolicy

func (m *MockClusterServiceClientSpec) PostControlPlaneUpgradePolicy(ctx context.Context, clusterInternalID InternalID, builder *v1alpha1.ControlPlaneUpgradePolicyBuilder) (*v1alpha1.ControlPlaneUpgradePolicy, error)

PostControlPlaneUpgradePolicy mocks base method.

func (*MockClusterServiceClientSpec) PostExternalAuth

func (m *MockClusterServiceClientSpec) PostExternalAuth(ctx context.Context, clusterInternalID InternalID, builder *v1alpha1.ExternalAuthBuilder) (*v1alpha1.ExternalAuth, error)

PostExternalAuth mocks base method.

func (*MockClusterServiceClientSpec) PostNodePool

func (m *MockClusterServiceClientSpec) PostNodePool(ctx context.Context, clusterInternalID InternalID, builder *v1alpha1.NodePoolBuilder) (*v1alpha1.NodePool, error)

PostNodePool mocks base method.

func (*MockClusterServiceClientSpec) PostNodePoolUpgradePolicy

func (m *MockClusterServiceClientSpec) PostNodePoolUpgradePolicy(ctx context.Context, nodePoolInternalID InternalID, builder *v1alpha1.NodePoolUpgradePolicyBuilder) (*v1alpha1.NodePoolUpgradePolicy, error)

PostNodePoolUpgradePolicy mocks base method.

func (*MockClusterServiceClientSpec) PostProvisionShard

PostProvisionShard mocks base method.

func (*MockClusterServiceClientSpec) UpdateCluster

func (m *MockClusterServiceClientSpec) UpdateCluster(ctx context.Context, internalID InternalID, builder *v1alpha1.ClusterBuilder) (*v1alpha1.Cluster, error)

UpdateCluster mocks base method.

func (*MockClusterServiceClientSpec) UpdateExternalAuth

func (m *MockClusterServiceClientSpec) UpdateExternalAuth(ctx context.Context, internalID InternalID, builder *v1alpha1.ExternalAuthBuilder) (*v1alpha1.ExternalAuth, error)

UpdateExternalAuth mocks base method.

func (*MockClusterServiceClientSpec) UpdateNodePool

func (m *MockClusterServiceClientSpec) UpdateNodePool(ctx context.Context, internalID InternalID, builder *v1alpha1.NodePoolBuilder) (*v1alpha1.NodePool, error)

UpdateNodePool mocks base method.

func (*MockClusterServiceClientSpec) UpdateProvisionShard

func (m *MockClusterServiceClientSpec) UpdateProvisionShard(ctx context.Context, internalID InternalID, builder *v1alpha1.ProvisionShardBuilder) (*v1alpha1.ProvisionShard, error)

UpdateProvisionShard mocks base method.

type MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall

type MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecDeleteClusterCall

type MockClusterServiceClientSpecDeleteClusterCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecDeleteClusterCall wrap *gomock.Call

func (*MockClusterServiceClientSpecDeleteClusterCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecDeleteClusterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecDeleteClusterCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecDeleteExternalAuthCall

type MockClusterServiceClientSpecDeleteExternalAuthCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecDeleteExternalAuthCall wrap *gomock.Call

func (*MockClusterServiceClientSpecDeleteExternalAuthCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecDeleteExternalAuthCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecDeleteExternalAuthCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecDeleteNodePoolCall

type MockClusterServiceClientSpecDeleteNodePoolCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecDeleteNodePoolCall wrap *gomock.Call

func (*MockClusterServiceClientSpecDeleteNodePoolCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecDeleteNodePoolCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecDeleteNodePoolCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecDeleteProvisionShardCall

type MockClusterServiceClientSpecDeleteProvisionShardCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecDeleteProvisionShardCall wrap *gomock.Call

func (*MockClusterServiceClientSpecDeleteProvisionShardCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecDeleteProvisionShardCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecDeleteProvisionShardCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetBreakGlassCredentialCall

type MockClusterServiceClientSpecGetBreakGlassCredentialCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetBreakGlassCredentialCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetBreakGlassCredentialCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetBreakGlassCredentialCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetBreakGlassCredentialCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetClusterCall

type MockClusterServiceClientSpecGetClusterCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetClusterCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetClusterCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetClusterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetClusterCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetClusterHypershiftDetailsCall

type MockClusterServiceClientSpecGetClusterHypershiftDetailsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetClusterHypershiftDetailsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetClusterHypershiftDetailsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetClusterHypershiftDetailsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetClusterHypershiftDetailsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetClusterInflightChecksCall

type MockClusterServiceClientSpecGetClusterInflightChecksCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetClusterInflightChecksCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetClusterInflightChecksCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetClusterInflightChecksCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetClusterInflightChecksCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetClusterProvisionShardCall

type MockClusterServiceClientSpecGetClusterProvisionShardCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetClusterProvisionShardCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetClusterProvisionShardCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetClusterProvisionShardCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetClusterProvisionShardCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetClusterStatusCall

type MockClusterServiceClientSpecGetClusterStatusCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetClusterStatusCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetClusterStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetClusterStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetClusterStatusCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetExternalAuthCall

type MockClusterServiceClientSpecGetExternalAuthCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetExternalAuthCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetExternalAuthCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetExternalAuthCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetExternalAuthCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetNodePoolCall

type MockClusterServiceClientSpecGetNodePoolCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetNodePoolCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetNodePoolCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetNodePoolCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetNodePoolCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetNodePoolStatusCall

type MockClusterServiceClientSpecGetNodePoolStatusCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetNodePoolStatusCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetNodePoolStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetNodePoolStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetNodePoolStatusCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetProvisionShardCall

type MockClusterServiceClientSpecGetProvisionShardCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetProvisionShardCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetProvisionShardCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetProvisionShardCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetProvisionShardCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecGetVersionCall

type MockClusterServiceClientSpecGetVersionCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecGetVersionCall wrap *gomock.Call

func (*MockClusterServiceClientSpecGetVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecGetVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecGetVersionCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListBreakGlassCredentialsCall

type MockClusterServiceClientSpecListBreakGlassCredentialsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListBreakGlassCredentialsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListBreakGlassCredentialsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListBreakGlassCredentialsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListBreakGlassCredentialsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListClustersCall

type MockClusterServiceClientSpecListClustersCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListClustersCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListClustersCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListClustersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListClustersCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall

type MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListExternalAuthsCall

type MockClusterServiceClientSpecListExternalAuthsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListExternalAuthsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListExternalAuthsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListExternalAuthsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListExternalAuthsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall

type MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListNodePoolsCall

type MockClusterServiceClientSpecListNodePoolsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListNodePoolsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListNodePoolsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListNodePoolsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListNodePoolsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListProvisionShardsCall

type MockClusterServiceClientSpecListProvisionShardsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListProvisionShardsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListProvisionShardsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListProvisionShardsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListProvisionShardsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecListVersionsCall

type MockClusterServiceClientSpecListVersionsCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecListVersionsCall wrap *gomock.Call

func (*MockClusterServiceClientSpecListVersionsCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecListVersionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecListVersionsCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecMockRecorder

type MockClusterServiceClientSpecMockRecorder struct {
	// contains filtered or unexported fields
}

MockClusterServiceClientSpecMockRecorder is the mock recorder for MockClusterServiceClientSpec.

func (*MockClusterServiceClientSpecMockRecorder) DeleteBreakGlassCredentials

func (mr *MockClusterServiceClientSpecMockRecorder) DeleteBreakGlassCredentials(ctx, clusterInternalID any) *MockClusterServiceClientSpecDeleteBreakGlassCredentialsCall

DeleteBreakGlassCredentials indicates an expected call of DeleteBreakGlassCredentials.

func (*MockClusterServiceClientSpecMockRecorder) DeleteCluster

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockClusterServiceClientSpecMockRecorder) DeleteExternalAuth

DeleteExternalAuth indicates an expected call of DeleteExternalAuth.

func (*MockClusterServiceClientSpecMockRecorder) DeleteNodePool

DeleteNodePool indicates an expected call of DeleteNodePool.

func (*MockClusterServiceClientSpecMockRecorder) DeleteProvisionShard

DeleteProvisionShard indicates an expected call of DeleteProvisionShard.

func (*MockClusterServiceClientSpecMockRecorder) GetBreakGlassCredential

GetBreakGlassCredential indicates an expected call of GetBreakGlassCredential.

func (*MockClusterServiceClientSpecMockRecorder) GetCluster

GetCluster indicates an expected call of GetCluster.

func (*MockClusterServiceClientSpecMockRecorder) GetClusterHypershiftDetails

GetClusterHypershiftDetails indicates an expected call of GetClusterHypershiftDetails.

func (*MockClusterServiceClientSpecMockRecorder) GetClusterInflightChecks

GetClusterInflightChecks indicates an expected call of GetClusterInflightChecks.

func (*MockClusterServiceClientSpecMockRecorder) GetClusterProvisionShard

GetClusterProvisionShard indicates an expected call of GetClusterProvisionShard.

func (*MockClusterServiceClientSpecMockRecorder) GetClusterStatus

GetClusterStatus indicates an expected call of GetClusterStatus.

func (*MockClusterServiceClientSpecMockRecorder) GetExternalAuth

GetExternalAuth indicates an expected call of GetExternalAuth.

func (*MockClusterServiceClientSpecMockRecorder) GetNodePool

GetNodePool indicates an expected call of GetNodePool.

func (*MockClusterServiceClientSpecMockRecorder) GetNodePoolStatus

GetNodePoolStatus indicates an expected call of GetNodePoolStatus.

func (*MockClusterServiceClientSpecMockRecorder) GetProvisionShard

GetProvisionShard indicates an expected call of GetProvisionShard.

func (*MockClusterServiceClientSpecMockRecorder) GetVersion

GetVersion indicates an expected call of GetVersion.

func (*MockClusterServiceClientSpecMockRecorder) ListBreakGlassCredentials

func (mr *MockClusterServiceClientSpecMockRecorder) ListBreakGlassCredentials(clusterInternalID, searchExpression any) *MockClusterServiceClientSpecListBreakGlassCredentialsCall

ListBreakGlassCredentials indicates an expected call of ListBreakGlassCredentials.

func (*MockClusterServiceClientSpecMockRecorder) ListClusters

ListClusters indicates an expected call of ListClusters.

func (*MockClusterServiceClientSpecMockRecorder) ListControlPlaneUpgradePolicies

func (mr *MockClusterServiceClientSpecMockRecorder) ListControlPlaneUpgradePolicies(clusterInternalID, orderBy any) *MockClusterServiceClientSpecListControlPlaneUpgradePoliciesCall

ListControlPlaneUpgradePolicies indicates an expected call of ListControlPlaneUpgradePolicies.

func (*MockClusterServiceClientSpecMockRecorder) ListExternalAuths

func (mr *MockClusterServiceClientSpecMockRecorder) ListExternalAuths(clusterInternalID, searchExpression any) *MockClusterServiceClientSpecListExternalAuthsCall

ListExternalAuths indicates an expected call of ListExternalAuths.

func (*MockClusterServiceClientSpecMockRecorder) ListNodePoolUpgradePolicies

func (mr *MockClusterServiceClientSpecMockRecorder) ListNodePoolUpgradePolicies(nodePoolInternalID, orderBy any) *MockClusterServiceClientSpecListNodePoolUpgradePoliciesCall

ListNodePoolUpgradePolicies indicates an expected call of ListNodePoolUpgradePolicies.

func (*MockClusterServiceClientSpecMockRecorder) ListNodePools

func (mr *MockClusterServiceClientSpecMockRecorder) ListNodePools(clusterInternalID, searchExpression any) *MockClusterServiceClientSpecListNodePoolsCall

ListNodePools indicates an expected call of ListNodePools.

func (*MockClusterServiceClientSpecMockRecorder) ListProvisionShards

ListProvisionShards indicates an expected call of ListProvisionShards.

func (*MockClusterServiceClientSpecMockRecorder) ListVersions

ListVersions indicates an expected call of ListVersions.

func (*MockClusterServiceClientSpecMockRecorder) PostBreakGlassCredential

PostBreakGlassCredential indicates an expected call of PostBreakGlassCredential.

func (*MockClusterServiceClientSpecMockRecorder) PostCluster

PostCluster indicates an expected call of PostCluster.

func (*MockClusterServiceClientSpecMockRecorder) PostControlPlaneUpgradePolicy

func (mr *MockClusterServiceClientSpecMockRecorder) PostControlPlaneUpgradePolicy(ctx, clusterInternalID, builder any) *MockClusterServiceClientSpecPostControlPlaneUpgradePolicyCall

PostControlPlaneUpgradePolicy indicates an expected call of PostControlPlaneUpgradePolicy.

func (*MockClusterServiceClientSpecMockRecorder) PostExternalAuth

func (mr *MockClusterServiceClientSpecMockRecorder) PostExternalAuth(ctx, clusterInternalID, builder any) *MockClusterServiceClientSpecPostExternalAuthCall

PostExternalAuth indicates an expected call of PostExternalAuth.

func (*MockClusterServiceClientSpecMockRecorder) PostNodePool

func (mr *MockClusterServiceClientSpecMockRecorder) PostNodePool(ctx, clusterInternalID, builder any) *MockClusterServiceClientSpecPostNodePoolCall

PostNodePool indicates an expected call of PostNodePool.

func (*MockClusterServiceClientSpecMockRecorder) PostNodePoolUpgradePolicy

func (mr *MockClusterServiceClientSpecMockRecorder) PostNodePoolUpgradePolicy(ctx, nodePoolInternalID, builder any) *MockClusterServiceClientSpecPostNodePoolUpgradePolicyCall

PostNodePoolUpgradePolicy indicates an expected call of PostNodePoolUpgradePolicy.

func (*MockClusterServiceClientSpecMockRecorder) PostProvisionShard

PostProvisionShard indicates an expected call of PostProvisionShard.

func (*MockClusterServiceClientSpecMockRecorder) UpdateCluster

UpdateCluster indicates an expected call of UpdateCluster.

func (*MockClusterServiceClientSpecMockRecorder) UpdateExternalAuth

UpdateExternalAuth indicates an expected call of UpdateExternalAuth.

func (*MockClusterServiceClientSpecMockRecorder) UpdateNodePool

UpdateNodePool indicates an expected call of UpdateNodePool.

func (*MockClusterServiceClientSpecMockRecorder) UpdateProvisionShard

UpdateProvisionShard indicates an expected call of UpdateProvisionShard.

type MockClusterServiceClientSpecPostBreakGlassCredentialCall

type MockClusterServiceClientSpecPostBreakGlassCredentialCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostBreakGlassCredentialCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostBreakGlassCredentialCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecPostBreakGlassCredentialCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostBreakGlassCredentialCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecPostClusterCall

type MockClusterServiceClientSpecPostClusterCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostClusterCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostClusterCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecPostClusterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostClusterCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecPostControlPlaneUpgradePolicyCall

type MockClusterServiceClientSpecPostControlPlaneUpgradePolicyCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostControlPlaneUpgradePolicyCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostControlPlaneUpgradePolicyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostControlPlaneUpgradePolicyCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecPostExternalAuthCall

type MockClusterServiceClientSpecPostExternalAuthCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostExternalAuthCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostExternalAuthCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecPostExternalAuthCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostExternalAuthCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecPostNodePoolCall

type MockClusterServiceClientSpecPostNodePoolCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostNodePoolCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostNodePoolCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecPostNodePoolCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostNodePoolCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecPostNodePoolUpgradePolicyCall

type MockClusterServiceClientSpecPostNodePoolUpgradePolicyCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostNodePoolUpgradePolicyCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostNodePoolUpgradePolicyCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostNodePoolUpgradePolicyCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecPostProvisionShardCall

type MockClusterServiceClientSpecPostProvisionShardCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecPostProvisionShardCall wrap *gomock.Call

func (*MockClusterServiceClientSpecPostProvisionShardCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecPostProvisionShardCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecPostProvisionShardCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecUpdateClusterCall

type MockClusterServiceClientSpecUpdateClusterCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecUpdateClusterCall wrap *gomock.Call

func (*MockClusterServiceClientSpecUpdateClusterCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecUpdateClusterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecUpdateClusterCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecUpdateExternalAuthCall

type MockClusterServiceClientSpecUpdateExternalAuthCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecUpdateExternalAuthCall wrap *gomock.Call

func (*MockClusterServiceClientSpecUpdateExternalAuthCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecUpdateExternalAuthCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecUpdateExternalAuthCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecUpdateNodePoolCall

type MockClusterServiceClientSpecUpdateNodePoolCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecUpdateNodePoolCall wrap *gomock.Call

func (*MockClusterServiceClientSpecUpdateNodePoolCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecUpdateNodePoolCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecUpdateNodePoolCall) Return

Return rewrite *gomock.Call.Return

type MockClusterServiceClientSpecUpdateProvisionShardCall

type MockClusterServiceClientSpecUpdateProvisionShardCall struct {
	*gomock.Call
}

MockClusterServiceClientSpecUpdateProvisionShardCall wrap *gomock.Call

func (*MockClusterServiceClientSpecUpdateProvisionShardCall) Do

Do rewrite *gomock.Call.Do

func (*MockClusterServiceClientSpecUpdateProvisionShardCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClusterServiceClientSpecUpdateProvisionShardCall) Return

Return rewrite *gomock.Call.Return

type NodePoolListIterator

type NodePoolListIterator interface {
	Items(ctx context.Context) iter.Seq[*arohcpv1alpha1.NodePool]
	GetError() error
}

func NewSimpleNodePoolListIterator

func NewSimpleNodePoolListIterator(objs []*arohcpv1alpha1.NodePool, err error) NodePoolListIterator

type NodePoolUpdateDispatchConfigTaint

type NodePoolUpdateDispatchConfigTaint struct {
	Effect string `json:"effect,omitempty"`
	Key    string `json:"key,omitempty"`
	Value  string `json:"value,omitempty"`
}

NodePoolUpdateDispatchConfigTaint is the curated taint subset used for dispatch hash and sync. See nodePoolUpdateDispatchConfig: do not embed api.Taint.

func NodePoolUpdateDispatchConfigTaintsFromCS

func NodePoolUpdateDispatchConfigTaintsFromCS(csNodePool *arohcpv1alpha1.NodePool) []NodePoolUpdateDispatchConfigTaint

NodePoolUpdateDispatchConfigTaintsFromCS extracts taints from a Cluster Service node pool into the dispatch canonical form.

func NodePoolUpdateDispatchConfigTaintsFromRP

func NodePoolUpdateDispatchConfigTaintsFromRP(taints []api.Taint) []NodePoolUpdateDispatchConfigTaint

NodePoolUpdateDispatchConfigTaintsFromRP copies taints from RP into the dispatch canonical form.

type NodePoolUpgradePolicyListIterator

type NodePoolUpgradePolicyListIterator interface {
	Items(ctx context.Context) iter.Seq[*arohcpv1alpha1.NodePoolUpgradePolicy]
	GetError() error
}

type ProvisionShardListIterator

type ProvisionShardListIterator interface {
	Items(ctx context.Context) iter.Seq[*arohcpv1alpha1.ProvisionShard]
	GetError() error
}

func NewSimpleProvisionShardListIterator

func NewSimpleProvisionShardListIterator(objs []*arohcpv1alpha1.ProvisionShard, err error) ProvisionShardListIterator

type VersionsListIterator

type VersionsListIterator struct {
	// contains filtered or unexported fields
}

func (VersionsListIterator) GetError

func (iter VersionsListIterator) GetError() error

GetError returns any error that occurred during iteration. Call this after the for/range loop that calls Items() to check if iteration completed successfully.

func (*VersionsListIterator) Items

Items returns a push iterator that can be used directly in for/range loops. If an error occurs during paging, iteration stops and the error is recorded.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL