config

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApplication added in v1.3.3

func CreateApplication(ctx context.Context, k8sClient client.Client, name, componentType, properties string, ui UIParam) error

CreateApplication creates a new application for the config

func DeleteApplication added in v1.3.3

func DeleteApplication(ctx context.Context, k8sClient client.Client, name string, isTerraformProvider bool) error

DeleteApplication deletes a config application, including a Terraform provider. For a Terraform Provider, it can come from 1). manually created a Terraform Provider object, like https://github.com/oam-dev/terraform-controller/blob/master/getting-started.md#aws 2). by enabling a Terraform provider addon in version older than v1.3.0 3). by create a Terraform provider via `vela provider add` 4). by VelaUX We will only target on deleting a provider which comes from 3) or 4) as for 1), it can be easily delete by hand, and for 2), it will be recreated by the addon.

func IsTerraformProviderExisted added in v1.3.3

func IsTerraformProviderExisted(ctx context.Context, k8sClient client.Client, name string) (bool, error)

IsTerraformProviderExisted returns whether a Terraform provider exists.

func ListTerraformProviders added in v1.3.3

func ListTerraformProviders(ctx context.Context, k8sClient client.Client) ([]tcv1beta1.Provider, error)

ListTerraformProviders returns a list of Terraform providers.

func ProjectMatched added in v1.3.3

func ProjectMatched(s *v1.Secret, project string) bool

ProjectMatched will check whether a config secret can be used in a given project

Types

type UIParam added in v1.3.3

type UIParam struct {
	Alias       string `json:"alias"`
	Description string `json:"description"`
	Project     string `json:"project"`
}

UIParam is the UI parameters from VelaUX for the application

Jump to

Keyboard shortcuts

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