configuration

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GithubPrefix is the constant of GitHub domain
	GithubPrefix = "https://github.com/"
	// GithubKubeVelaContribPrefix is the prefix of GitHub repository of kubevela-contrib
	GithubKubeVelaContribPrefix = "https://github.com/kubevela-contrib"
	// GiteeTerraformSourceOrg is the Gitee organization of Terraform source
	GiteeTerraformSourceOrg = "https://gitee.com/kubevela-terraform-source"
	// GiteePrefix is the constant of Gitee domain
	GiteePrefix = "https://gitee.com/"
)

Variables

This section is empty.

Functions

func Get added in v0.2.10

func Get(ctx context.Context, k8sClient client.Client, namespacedName apitypes.NamespacedName) (v1beta2.Configuration, error)

Get will get the Configuration

func GetProviderNamespacedName added in v0.3.2

func GetProviderNamespacedName(configuration v1beta2.Configuration) *crossplane.Reference

GetProviderNamespacedName will get the provider namespaced name

func Interface2String added in v0.2.6

func Interface2String(v interface{}) (string, error)

Interface2String converts an interface{} type to string

func IsDeletable added in v0.3.2

func IsDeletable(ctx context.Context, k8sClient client.Client, configuration *v1beta2.Configuration) (bool, error)

IsDeletable will check whether the Configuration can be deleted immediately If deletable, it means - feature gate AllowDeleteProvisioningResource is enabled - no external cloud resources are provisioned - it's in force-delete state

func RawExtension2Map added in v0.2.6

func RawExtension2Map(raw *runtime.RawExtension) (map[string]interface{}, error)

RawExtension2Map will convert rawExtension to map This function is copied from oam-dev/kubevela

func ReplaceTerraformSource added in v0.2.15

func ReplaceTerraformSource(remote string, githubBlockedStr string) string

ReplaceTerraformSource will replace the Terraform source from GitHub to Gitee

func SetRegion added in v0.2.10

func SetRegion(ctx context.Context, k8sClient client.Client, namespace, name string, providerObj *v1beta1.Provider) (string, error)

SetRegion will set the region for Configuration

func Update added in v0.2.10

func Update(ctx context.Context, k8sClient client.Client, configuration *v1beta2.Configuration) error

Update will update the Configuration

func ValidConfigurationObject

func ValidConfigurationObject(configuration *v1beta2.Configuration) (types.ConfigurationType, error)

ValidConfigurationObject will validate a Configuration

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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