Documentation ¶
Index ¶
- Constants
- func CreateAwsIpRangeWithSubnets(ctx context.Context, infra testinfra.Infra, ...) error
- func CreateAwsNfsVolume(ctx context.Context, clnt client.Client, ...) error
- func CreateGcpNfsVolume(ctx context.Context, clnt client.Client, ...) error
- func CreateKcpIpRange(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.IpRange, ...) error
- func CreateKcpVpcPeering(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.VpcPeering, ...) error
- func CreateKymaCR(ctx context.Context, infra testinfra.Infra, kymaCR *unstructured.Unstructured, ...) error
- func CreateNamespace(ctx context.Context, clnt client.Client, obj *corev1.Namespace, ...) error
- func CreateNfsInstance(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.NfsInstance, ...) error
- func CreateObj(ctx context.Context, clnt client.Client, obj client.Object, opts ...ObjAction) error
- func CreateScopeAws(ctx context.Context, infra testinfra.Infra, scope *cloudcontrolv1beta1.Scope, ...) error
- func CreateShootAws(ctx context.Context, infra testinfra.Infra, shoot *gardenerTypes.Shoot, ...) error
- func CreateShootGcp(ctx context.Context, infra testinfra.Infra, shoot *gardenerTypes.Shoot, ...) error
- func CreateSkrIpRange(ctx context.Context, clnt client.Client, obj *cloudresourcesv1beta1.IpRange, ...) error
- func Delete(ctx context.Context, client client.Client, obj client.Object) error
- func DeleteAllOfSKR(infra testinfra.Infra) error
- func DeleteNfsInstance(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.NfsInstance, ...) error
- func IsDeleted(ctx context.Context, clnt client.Client, obj client.Object, opts ...ObjAction) error
- func KcpReadyCondition() metav1.Condition
- func KymaCRModuleStateUpdate(ctx context.Context, kcpClient client.Client, ...) error
- func LoadAndCheck(ctx context.Context, clnt client.Client, obj client.Object, ...) error
- func SkipDescribe(text string, _ ...interface{}) bool
- func SkrReadyCondition() metav1.Condition
- func Update(ctx context.Context, client client.Client, obj client.Object, ...) error
- func UpdateNfsInstance(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.NfsInstance, ...) error
- func UpdateObj(ctx context.Context, clnt client.Client, obj client.Object, opts ...ObjAction) error
- func UpdateStatus(ctx context.Context, clnt client.Client, obj client.Object, opts ...ObjAction) error
- type ObjAction
- func AddFinalizer(finalizer string) ObjAction
- func RemoveFinalizer(name string) ObjAction
- func WithAwsNfsVolumeCapacity(capacity string) ObjAction
- func WithAwsNfsVolumePvAnnotations(annotations map[string]string) ObjAction
- func WithAwsNfsVolumePvLabels(labels map[string]string) ObjAction
- func WithAwsNfsVolumePvName(name string) ObjAction
- func WithGcpNfsValues() ObjAction
- func WithGcpNfsVolumeCapacity(capacityGb int) ObjAction
- func WithGcpNfsVolumeIpRange(ipRangeName string) ObjAction
- func WithKcpIpRangeRemoteRef(ns, name string) ObjAction
- func WithKcpIpRangeSpecCidr(cidr string) ObjAction
- func WithKcpIpRangeSpecScope(scopeName string) ObjAction
- func WithKcpVpcPeeringRemoteRef(ns, name string) ObjAction
- func WithKcpVpcPeeringSpecAws(remoteVpcId, remoteAccountId, remoteRegion string) ObjAction
- func WithKcpVpcPeeringSpecScope(scopeName string) ObjAction
- func WithKymaModuleListedInSpec() ObjAction
- func WithKymaModuleRemovedInSpec() ObjAction
- func WithKymaSpecChannel(channel string) ObjAction
- func WithLabels(labels map[string]string) ObjAction
- func WithName(name string) ObjAction
- func WithNamespace(ns string) ObjAction
- func WithNfsInstanceAws() ObjAction
- func WithNfsInstanceGcp(location string) ObjAction
- func WithNfsInstanceIpRange(ipRangeName string) ObjAction
- func WithNfsInstanceScope(scopeName string) ObjAction
- func WithNfsVolumeIpRange(ipRangeName string) ObjAction
- func WithRemoteRef(name string) ObjAction
- func WithSkrIpRangeSpecCidr(cidr string) ObjAction
- type ObjActionFunc
- type ObjActions
- type ObjAssertion
- func AssertGcpNfsVolumeHasId() ObjAssertion
- func AssertKcpIpRangeCidr(expectedCidr string) ObjAssertion
- func AssertKcpIpRangeRemoteRef(expectedNamespace, expectedName string) ObjAssertion
- func AssertKcpIpRangeScope(expectedScopeName string) ObjAssertion
- func AssertKcpStatusHosts(host string) ObjAssertion
- func AssertSkrIpRangeHasId() ObjAssertion
- func HavingAwsNfsVolumeStatusId() ObjAssertion
- func HavingConditionTrue(conditionType string) ObjAssertion
- func HavingDeletionTimestamp() ObjAssertion
- func HavingNfsInstanceStatusId() ObjAssertion
- type ObjAssertions
- type ObjStatusAction
- func WithConditions(setConds ...metav1.Condition) ObjStatusAction
- func WithKcpIpRangeStatusCidr(cidr string) ObjStatusAction
- func WithKcpNfsStatusCapacity(capacity int) ObjStatusAction
- func WithKcpNfsStatusHost(host string) ObjStatusAction
- func WithKcpNfsStatusState(state cloudcontrolv1beta1.StatusState) ObjStatusAction
- func WithKymaStatusModuleState(state util.KymaModuleState) ObjStatusAction
- func WithNfsInstanceStatusHost(host string) ObjStatusAction
- func WithPvStatusPhase(phase v1.PersistentVolumePhase) ObjStatusAction
- func WithSkrIpRangeStatusCidr(cidr string) ObjStatusAction
- func WithSkrIpRangeStatusId(id string) ObjStatusAction
- func WithoutConditions(removeConds ...string) ObjStatusAction
Constants ¶
View Source
const ( DefaultSkrNamespace = "test" DefaultKcpNamespace = "kcp-system" )
View Source
const ( DefaultNfsInstanceHost = "nfs.instance.local" DefaultGcpNfsInstanceCapacityGb = 1024 DefaultGcpNfsInstanceConnectMode = "PRIVATE_SERVICE_ACCESS" DefaultGcpNfsInstanceTier = "BASIC_HDD" )
View Source
const (
DefaultGardenNamespace = "garden-kyma" // must be same as infra.Garden().Namespace()
)
View Source
const (
DefaultIpRangeCidr = "10.181.0.0/16"
)
View Source
const (
DefaultModuleName = "cloud-manager"
)
Variables ¶
This section is empty.
Functions ¶
func CreateAwsIpRangeWithSubnets ¶ added in v0.1.4
func CreateAwsNfsVolume ¶
func CreateAwsNfsVolume(ctx context.Context, clnt client.Client, obj *cloudresourcesv1beta1.AwsNfsVolume, opts ...ObjAction) error
func CreateGcpNfsVolume ¶
func CreateGcpNfsVolume(ctx context.Context, clnt client.Client, obj *cloudresourcesv1beta1.GcpNfsVolume, opts ...ObjAction) error
func CreateKcpIpRange ¶
func CreateKcpVpcPeering ¶ added in v0.1.4
func CreateKcpVpcPeering(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.VpcPeering, opts ...ObjAction) error
func CreateKymaCR ¶
func CreateKymaCR(ctx context.Context, infra testinfra.Infra, kymaCR *unstructured.Unstructured, opts ...ObjAction) error
func CreateNamespace ¶
func CreateNfsInstance ¶
func CreateNfsInstance(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.NfsInstance, opts ...ObjAction) error
func CreateScopeAws ¶
func CreateShootAws ¶
func CreateShootGcp ¶ added in v0.1.4
func CreateSkrIpRange ¶
func DeleteAllOfSKR ¶ added in v0.1.4
func DeleteNfsInstance ¶
func DeleteNfsInstance(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.NfsInstance, opts ...ObjAction) error
func KcpReadyCondition ¶
func KymaCRModuleStateUpdate ¶
func KymaCRModuleStateUpdate(ctx context.Context, kcpClient client.Client, kymaCR *unstructured.Unstructured, opts ...ObjAction) error
func LoadAndCheck ¶
func LoadAndCheck(ctx context.Context, clnt client.Client, obj client.Object, loadingOps ObjActions, asserts ...ObjAssertion) error
func SkipDescribe ¶ added in v0.1.4
func SkrReadyCondition ¶
func UpdateNfsInstance ¶
func UpdateNfsInstance(ctx context.Context, clnt client.Client, obj *cloudcontrolv1beta1.NfsInstance, opts ...ObjAction) error
Types ¶
type ObjAction ¶
func AddFinalizer ¶ added in v0.1.4
func RemoveFinalizer ¶
func WithAwsNfsVolumePvAnnotations ¶ added in v0.1.4
func WithAwsNfsVolumePvLabels ¶ added in v0.1.4
func WithAwsNfsVolumePvName ¶ added in v0.1.4
func WithGcpNfsValues ¶
func WithGcpNfsValues() ObjAction
func WithGcpNfsVolumeIpRange ¶
func WithKcpIpRangeRemoteRef ¶
func WithKcpIpRangeSpecCidr ¶
func WithKcpIpRangeSpecScope ¶
func WithKcpVpcPeeringRemoteRef ¶ added in v0.1.4
func WithKcpVpcPeeringSpecAws ¶ added in v0.1.4
func WithKcpVpcPeeringSpecScope ¶ added in v0.1.4
func WithKymaModuleListedInSpec ¶
func WithKymaModuleListedInSpec() ObjAction
func WithKymaModuleRemovedInSpec ¶
func WithKymaModuleRemovedInSpec() ObjAction
func WithKymaSpecChannel ¶ added in v0.1.4
func WithLabels ¶
func WithNamespace ¶
func WithNfsInstanceAws ¶
func WithNfsInstanceAws() ObjAction
func WithNfsInstanceGcp ¶
func WithNfsInstanceIpRange ¶
func WithNfsInstanceScope ¶
func WithNfsVolumeIpRange ¶
func WithRemoteRef ¶
func WithSkrIpRangeSpecCidr ¶
type ObjActionFunc ¶
type ObjActions ¶
type ObjActions []ObjAction
func NewObjActions ¶
func NewObjActions(opts ...ObjAction) ObjActions
func (ObjActions) Append ¶
func (arr ObjActions) Append(actionsToAdd ...ObjAction) ObjActions
func (ObjActions) ApplyOnObject ¶
func (arr ObjActions) ApplyOnObject(obj client.Object) ObjActions
func (ObjActions) ApplyOnStatus ¶
func (arr ObjActions) ApplyOnStatus(obj client.Object) ObjActions
type ObjAssertion ¶
func AssertGcpNfsVolumeHasId ¶
func AssertGcpNfsVolumeHasId() ObjAssertion
func AssertKcpIpRangeCidr ¶
func AssertKcpIpRangeCidr(expectedCidr string) ObjAssertion
func AssertKcpIpRangeRemoteRef ¶
func AssertKcpIpRangeRemoteRef(expectedNamespace, expectedName string) ObjAssertion
func AssertKcpIpRangeScope ¶
func AssertKcpIpRangeScope(expectedScopeName string) ObjAssertion
func AssertKcpStatusHosts ¶
func AssertKcpStatusHosts(host string) ObjAssertion
func AssertSkrIpRangeHasId ¶
func AssertSkrIpRangeHasId() ObjAssertion
func HavingAwsNfsVolumeStatusId ¶ added in v0.1.4
func HavingAwsNfsVolumeStatusId() ObjAssertion
func HavingConditionTrue ¶ added in v0.1.4
func HavingConditionTrue(conditionType string) ObjAssertion
func HavingDeletionTimestamp ¶ added in v0.1.4
func HavingDeletionTimestamp() ObjAssertion
func HavingNfsInstanceStatusId ¶ added in v0.1.4
func HavingNfsInstanceStatusId() ObjAssertion
type ObjAssertions ¶
type ObjAssertions []ObjAssertion
func NewObjAssertions ¶
func NewObjAssertions(items []ObjAssertion) ObjAssertions
type ObjStatusAction ¶
func WithConditions ¶
func WithConditions(setConds ...metav1.Condition) ObjStatusAction
func WithKcpIpRangeStatusCidr ¶
func WithKcpIpRangeStatusCidr(cidr string) ObjStatusAction
func WithKcpNfsStatusCapacity ¶
func WithKcpNfsStatusCapacity(capacity int) ObjStatusAction
func WithKcpNfsStatusHost ¶
func WithKcpNfsStatusHost(host string) ObjStatusAction
func WithKcpNfsStatusState ¶
func WithKcpNfsStatusState(state cloudcontrolv1beta1.StatusState) ObjStatusAction
func WithKymaStatusModuleState ¶ added in v0.1.4
func WithKymaStatusModuleState(state util.KymaModuleState) ObjStatusAction
func WithNfsInstanceStatusHost ¶
func WithNfsInstanceStatusHost(host string) ObjStatusAction
func WithPvStatusPhase ¶
func WithPvStatusPhase(phase v1.PersistentVolumePhase) ObjStatusAction
func WithSkrIpRangeStatusCidr ¶
func WithSkrIpRangeStatusCidr(cidr string) ObjStatusAction
func WithSkrIpRangeStatusId ¶
func WithSkrIpRangeStatusId(id string) ObjStatusAction
func WithoutConditions ¶
func WithoutConditions(removeConds ...string) ObjStatusAction
Source Files ¶
Click to show internal directories.
Click to hide internal directories.