Documentation ¶
Index ¶
- func CreateApplication(ctx context.Context, k8sClient client.Client, ...) error
- func DeleteApplication(ctx context.Context, k8sClient client.Client, name string, ...) error
- func IsTerraformProviderExisted(ctx context.Context, k8sClient client.Client, name string) (bool, error)
- func ListTerraformProviders(ctx context.Context, k8sClient client.Client) ([]tcv1beta1.Provider, error)
- func ProjectMatched(s *v1.Secret, project string) bool
- type UIParam
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.