Documentation ¶
Overview ¶
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
nolint:typecheck,goconst,gocritic,stylecheck,nolintlint
Index ¶
- Constants
- func E2EAddonSpec(context context.Context, inputGetter func() E2EAddonSpecInput)
- func E2EAutoscalerSpec(context context.Context, inputGetter func() E2EAutoscalerSpecInput)
- func E2ECCMiscSpec(context context.Context, inputGetter func() E2ECommonSpecInput)
- func E2ECEIPSpec(context context.Context, inputGetter func() E2ECEIPSpecInput)
- func E2ECommonSpec(ctx context.Context, inputGetter func() E2ECommonSpecInput)
- func E2ELegacyFallbackSpec(context context.Context, inputGetter func() E2ELegacyFallbackSpecInput)
- func E2EMhcCCSpec(context context.Context, inputGetter func() E2ECommonSpecInput)
- func E2EMhcSpec(context context.Context, inputGetter func() E2EMhcSpecInput)
- func E2ENodePoolSpec(context context.Context, inputGetter func() E2ENodePoolSpecInput)
- func E2EScaleSpec(context context.Context, inputGetter func() E2EScaleSpecInput)
- func E2ETKRResolverValidationForClusterCRUDSpec(context context.Context, ...)
- func E2EUpgradeSpec(context context.Context, inputGetter func() E2EUpgradeSpecInput)
- func GeneratePackageInstallName(clusterName, addonName string) string
- func GeneratePackageSecretName(clusterName, carvelPkgRefName string) string
- func GetPackageMetadata(ctx context.Context, c client.Client, carvelPkgName, carvelPkgNamespace string) (string, string, error)
- func GetTKRRepoImagePathAndNamespaceFromSecret(ctx context.Context, crClient client.Client) (string, string, error)
- func TKRCompatibilityValidationSpec(ctx context.Context, inputGetter func() TKRCompatibilityValidationSpecInput)
- func TKRNamesFromTags(tkrImageTags []string) []string
- func ValidateOSImagesOfTKR(ctx context.Context, mcProxy *framework.ClusterProxy, ...)
- func ValidatePackagesOfTKR(ctx context.Context, mcProxy *framework.ClusterProxy, ...)
- func ValidateTKRsRelatedObjectsAvailability(ctx context.Context, mcProxy *framework.ClusterProxy, expectedTKRs []string, ...)
- func VerifyOSImagesAreAvailable(expectedOSImages []v1.LocalObjectReference, osImages []*runv1.OSImage) error
- func VerifyPackagesAreAvailable(expectedPackages []v1.LocalObjectReference, ...) error
- func VerifyTKRsAreAvailable(expectedTKRs []string, tkrs []*runv1.TanzuKubernetesRelease) error
- func WaitForNodeRemediation(ctx context.Context, clusterName string, namespace string, ...)
- type Cluster
- type ClusterMetadata
- type E2EAddonSpecInput
- type E2EAutoscalerSpecInput
- type E2ECEIPSpecInput
- type E2ECommonSpecInput
- type E2ELegacyFallbackSpecInput
- type E2EMhcSpecInput
- type E2ENodePoolSpecInput
- type E2EScaleSpecInput
- type E2ETKRResolverValidationForClusterCRUDSpecInput
- type E2EUpgradeSpecInput
- type Infrastructure
- type TKRCompatibilityValidationSpecInput
- type VerifyClusterMetadataInput
Constants ¶
const ( AddonFinalizer = "tkg.tanzu.vmware.com/addon" PreTerminateAddonsAnnotationPrefix = clusterapiv1beta1.PreTerminateDeleteHookAnnotationPrefix + "/tkg.tanzu.vmware.com" PreTerminateAddonsAnnotationValue = "tkg.tanzu.vmware.com/addons" )
Variables ¶
This section is empty.
Functions ¶
func E2EAddonSpec ¶
func E2EAddonSpec(context context.Context, inputGetter func() E2EAddonSpecInput)
func E2EAutoscalerSpec ¶
func E2EAutoscalerSpec(context context.Context, inputGetter func() E2EAutoscalerSpecInput)
func E2ECCMiscSpec ¶ added in v0.25.0
func E2ECCMiscSpec(context context.Context, inputGetter func() E2ECommonSpecInput)
func E2ECEIPSpec ¶
func E2ECEIPSpec(context context.Context, inputGetter func() E2ECEIPSpecInput)
func E2ECommonSpec ¶
func E2ECommonSpec(ctx context.Context, inputGetter func() E2ECommonSpecInput)
func E2ELegacyFallbackSpec ¶ added in v0.25.0
func E2ELegacyFallbackSpec(context context.Context, inputGetter func() E2ELegacyFallbackSpecInput)
func E2EMhcCCSpec ¶ added in v0.25.0
func E2EMhcCCSpec(context context.Context, inputGetter func() E2ECommonSpecInput)
func E2EMhcSpec ¶
func E2EMhcSpec(context context.Context, inputGetter func() E2EMhcSpecInput)
func E2ENodePoolSpec ¶ added in v0.25.1
func E2ENodePoolSpec(context context.Context, inputGetter func() E2ENodePoolSpecInput)
func E2EScaleSpec ¶
func E2EScaleSpec(context context.Context, inputGetter func() E2EScaleSpecInput)
func E2ETKRResolverValidationForClusterCRUDSpec ¶ added in v0.25.0
func E2ETKRResolverValidationForClusterCRUDSpec(context context.Context, inputGetter func() E2ETKRResolverValidationForClusterCRUDSpecInput)
func E2EUpgradeSpec ¶
func E2EUpgradeSpec(context context.Context, inputGetter func() E2EUpgradeSpecInput)
func GeneratePackageInstallName ¶ added in v0.25.0
GeneratePackageInstallName is the util function to generate the PackageInstall CR name in a consistent manner. clusterName is the name of cluster within which all resources associated with this PackageInstall CR is installed. It does not necessarily mean the PackageInstall CR will be installed in that cluster. I.e., the kapp-controller PackageInstall CR is installed in the management cluster but is named after "<workload-cluster-name>-kapp-controller". It indicates that this kapp-controller PackageInstall is for reconciling resources in a cluster named "<workload-cluster-name>". addonName is the short name of a Tanzu addon with which the PackageInstall CR is associated.
func GeneratePackageSecretName ¶ added in v0.25.0
GeneratePackageSecretName generates secret name for a package from the cluster and the package name
func GetPackageMetadata ¶ added in v0.25.0
func GetPackageMetadata(ctx context.Context, c client.Client, carvelPkgName, carvelPkgNamespace string) (string, string, error)
* The below functions are duplicated from addons/pkg/util in order to avoid circular dependency between tanzu-framework and addons modules.
func GetTKRRepoImagePathAndNamespaceFromSecret ¶ added in v0.25.1
func TKRCompatibilityValidationSpec ¶ added in v0.25.0
func TKRCompatibilityValidationSpec(ctx context.Context, inputGetter func() TKRCompatibilityValidationSpecInput)
func TKRNamesFromTags ¶ added in v0.25.1
func ValidateOSImagesOfTKR ¶ added in v0.25.1
func ValidateOSImagesOfTKR(ctx context.Context, mcProxy *framework.ClusterProxy, tkr *runv1.TanzuKubernetesRelease)
func ValidatePackagesOfTKR ¶ added in v0.25.1
func ValidatePackagesOfTKR(ctx context.Context, mcProxy *framework.ClusterProxy, tkr *runv1.TanzuKubernetesRelease, namespace string)
func ValidateTKRsRelatedObjectsAvailability ¶ added in v0.25.1
func VerifyOSImagesAreAvailable ¶ added in v0.25.1
func VerifyOSImagesAreAvailable(expectedOSImages []v1.LocalObjectReference, osImages []*runv1.OSImage) error
func VerifyPackagesAreAvailable ¶ added in v0.25.1
func VerifyPackagesAreAvailable(expectedPackages []v1.LocalObjectReference, packages []*kappcontrollerv1alpha1.Package) error
func VerifyTKRsAreAvailable ¶ added in v0.25.1
func VerifyTKRsAreAvailable(expectedTKRs []string, tkrs []*runv1.TanzuKubernetesRelease) error
func WaitForNodeRemediation ¶
func WaitForNodeRemediation(ctx context.Context, clusterName string, namespace string, mcProxy *framework.ClusterProxy, wcProxy *framework.ClusterProxy)
Types ¶
type Cluster ¶
type Cluster struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Plan string `json:"plan" yaml:"plan"` KubernetesProvider string `json:"kubernetesProvider" yaml:"kubernetesProvider"` TkgVersion string `json:"tkgVersion" yaml:"tkgVersion"` Infrastructure Infrastructure `json:"infrastructure" yaml:"infrastructure"` }
type ClusterMetadata ¶
type ClusterMetadata struct {
Cluster Cluster `json:"cluster" yaml:"cluster"`
}
type E2EAddonSpecInput ¶
type E2EAutoscalerSpecInput ¶
type E2ECEIPSpecInput ¶
type E2ECommonSpecInput ¶
type E2ELegacyFallbackSpecInput ¶ added in v0.25.0
type E2EMhcSpecInput ¶
type E2ENodePoolSpecInput ¶ added in v0.25.1
type E2ENodePoolSpecInput struct { E2ECommonSpecInput NodePool client.NodePool }
type E2EScaleSpecInput ¶
type E2ETKRResolverValidationForClusterCRUDSpecInput ¶ added in v0.25.0
type E2EUpgradeSpecInput ¶
type Infrastructure ¶
type Infrastructure struct {
Provider string `json:"provider" yaml:"provider"`
}