Documentation
¶
Index ¶
- func AttributeValueToString(v attr.Value) string
- func ConfigMapExist(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func ConfigMapExistsAndIsAwsOne(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func ConfigMapImportedIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (helmReleaseNameAnnotationSet bool, helmReleaseNamespaceAnnotationSet bool, ...)
- func DaemonsetExist(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DaemonsetExistsAndIsAwsOne(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeleteConfigMap(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeleteDaemonset(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeleteDeployment(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeletePodDisruptionBudget(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeleteService(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeleteServiceAccount(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeploymentExist(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeploymentExistsAndIsAwsOne(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func DeploymentImportedIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (helmReleaseNameAnnotationSet bool, helmReleaseNamespaceAnnotationSet bool, ...)
- func EnvDefaultBool(envName string, defaultVal bool) defaults.Bool
- func EnvDefaultString(envName string, defaultVal string) defaults.String
- func ImportConfigMapAccountIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (err error)
- func ImportDeploymentIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (err error)
- func ImportPodDisruptionBudgetIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (err error)
- func ImportServiceAccountIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (err error)
- func ImportServiceIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (err error)
- func New(version string) func() provider.Provider
- func NewJobResource() resource.Resource
- func PodDisruptionBudgetExist(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func PodDisruptionBudgetExistsAndIsAwsOne(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func PodDisruptionBudgetImportedIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (helmReleaseNameAnnotationSet bool, helmReleaseNamespaceAnnotationSet bool, ...)
- func ServiceAccountExist(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func ServiceAccountExistsAndIsAwsOne(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func ServiceAccountImportedIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (helmReleaseNameAnnotationSet bool, helmReleaseNamespaceAnnotationSet bool, ...)
- func ServiceExist(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, err error)
- func ServiceExistsAndIsAwsOne(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (exists bool, clusterIPs []string, err error)
- func ServiceImportedIntoHelm(ctx context.Context, clientset *kubernetes.Clientset, namespace string, ...) (helmReleaseNameAnnotationSet bool, helmReleaseNamespaceAnnotationSet bool, ...)
- func StringListToStrings(v attr.Value) []string
- func StringMapToStrings(v attr.Value) map[string]string
- func ValueToListType(v attr.Value) types.List
- func ValueToMapType(v attr.Value) types.Map
- type CleanEksProvider
- func (p *CleanEksProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *CleanEksProvider) DataSources(context.Context) []func() datasource.DataSource
- func (p *CleanEksProvider) Functions(context.Context) []func() function.Function
- func (p *CleanEksProvider) GetClientSet(ctx context.Context) (*kubernetes.Clientset, error)
- func (p *CleanEksProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *CleanEksProvider) Resources(context.Context) []func() resource.Resource
- func (p *CleanEksProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type CleanEksProviderModel
- type JobResource
- func (r *JobResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *JobResource) Create(ctx context.Context, req resource.CreateRequest, res *resource.CreateResponse)
- func (r *JobResource) Delete(ctx context.Context, _ resource.DeleteRequest, _ *resource.DeleteResponse)
- func (r *JobResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *JobResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *JobResource) Read(ctx context.Context, req resource.ReadRequest, res *resource.ReadResponse)
- func (r *JobResource) Schema(_ context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *JobResource) Update(ctx context.Context, req resource.UpdateRequest, res *resource.UpdateResponse)
- type JobResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeValueToString ¶ added in v0.1.0
AttributeValueToString will attempt to execute the appropriate AttributeStringerFunc from the ones registered.
func ConfigMapExist ¶ added in v0.1.8
func ConfigMapExistsAndIsAwsOne ¶ added in v0.1.15
func ConfigMapImportedIntoHelm ¶ added in v0.1.0
func DaemonsetExist ¶
func DaemonsetExistsAndIsAwsOne ¶ added in v0.1.15
func DeleteConfigMap ¶ added in v0.1.8
func DeleteDaemonset ¶
func DeleteDeployment ¶
func DeletePodDisruptionBudget ¶ added in v0.1.14
func DeleteService ¶
func DeleteServiceAccount ¶ added in v0.1.14
func DeploymentExist ¶
func DeploymentExistsAndIsAwsOne ¶ added in v0.1.6
func EnvDefaultBool ¶ added in v0.1.0
EnvDefaultBool returns a static string value default handler.
Use EnvDefaultBool if a static default value for a string should be set.
func EnvDefaultString ¶ added in v0.1.0
EnvDefaultString returns a static string value default handler.
Use EnvDefaultString if a static default value for a string should be set.
func ImportConfigMapAccountIntoHelm ¶ added in v0.1.0
func ImportPodDisruptionBudgetIntoHelm ¶ added in v0.1.0
func ImportServiceAccountIntoHelm ¶ added in v0.1.0
func ImportServiceIntoHelm ¶
func NewJobResource ¶
func PodDisruptionBudgetExist ¶ added in v0.1.15
func PodDisruptionBudgetExistsAndIsAwsOne ¶ added in v0.1.15
func PodDisruptionBudgetImportedIntoHelm ¶ added in v0.1.0
func ServiceAccountExist ¶ added in v0.1.15
func ServiceAccountExistsAndIsAwsOne ¶ added in v0.1.15
func ServiceAccountImportedIntoHelm ¶ added in v0.1.0
func ServiceExist ¶
func ServiceExistsAndIsAwsOne ¶ added in v0.1.15
func ServiceImportedIntoHelm ¶
func StringListToStrings ¶ added in v0.1.0
func ValueToListType ¶ added in v0.1.0
ValueToListType ensures we have a types.List literal
Types ¶
type CleanEksProvider ¶ added in v0.0.3
type CleanEksProvider struct { // Version is set to the provider Version on release, "dev" when the // provider is built and ran locally, and "test" when running acceptance // testing. Version string // contains filtered or unexported fields }
func (*CleanEksProvider) Configure ¶ added in v0.0.3
func (p *CleanEksProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*CleanEksProvider) DataSources ¶ added in v0.0.3
func (p *CleanEksProvider) DataSources(context.Context) []func() datasource.DataSource
func (*CleanEksProvider) Functions ¶ added in v0.0.3
func (p *CleanEksProvider) Functions(context.Context) []func() function.Function
func (*CleanEksProvider) GetClientSet ¶ added in v0.1.9
func (p *CleanEksProvider) GetClientSet(ctx context.Context) (*kubernetes.Clientset, error)
func (*CleanEksProvider) Metadata ¶ added in v0.0.3
func (p *CleanEksProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*CleanEksProvider) Resources ¶ added in v0.0.3
func (p *CleanEksProvider) Resources(context.Context) []func() resource.Resource
func (*CleanEksProvider) Schema ¶ added in v0.0.3
func (p *CleanEksProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
type CleanEksProviderModel ¶ added in v0.0.3
type CleanEksProviderModel struct { Host types.String `tfsdk:"host"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` Insecure types.Bool `tfsdk:"insecure"` TLSServerName types.String `tfsdk:"tls_server_name"` ClientCertificate types.String `tfsdk:"client_certificate"` ClientKey types.String `tfsdk:"client_key"` ClusterCACertificate types.String `tfsdk:"cluster_ca_certificate"` ConfigPaths []string `tfsdk:"config_paths"` ConfigPath types.String `tfsdk:"config_path"` ConfigContext types.String `tfsdk:"config_context"` ConfigContextAuthInfo types.String `tfsdk:"config_context_auth_info"` ConfigContextCluster types.String `tfsdk:"config_context_cluster"` Token types.String `tfsdk:"token"` ProxyURL types.String `tfsdk:"proxy_url"` Exec []struct { APIVersion types.String `tfsdk:"api_version"` Command types.String `tfsdk:"command"` Env map[string]string `tfsdk:"env"` Args []string `tfsdk:"args"` } `tfsdk:"exec"` BurstLimit types.Int64 `tfsdk:"burst_limit"` }
type JobResource ¶ added in v0.0.3
type JobResource struct {
// contains filtered or unexported fields
}
func (*JobResource) Configure ¶ added in v0.0.3
func (r *JobResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*JobResource) Create ¶ added in v0.0.3
func (r *JobResource) Create(ctx context.Context, req resource.CreateRequest, res *resource.CreateResponse)
func (*JobResource) Delete ¶ added in v0.0.3
func (r *JobResource) Delete(ctx context.Context, _ resource.DeleteRequest, _ *resource.DeleteResponse)
func (*JobResource) ImportState ¶ added in v0.0.3
func (r *JobResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*JobResource) Metadata ¶ added in v0.0.3
func (r *JobResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*JobResource) Read ¶ added in v0.0.3
func (r *JobResource) Read(ctx context.Context, req resource.ReadRequest, res *resource.ReadResponse)
func (*JobResource) Schema ¶ added in v0.0.3
func (r *JobResource) Schema(_ context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*JobResource) Update ¶ added in v0.0.3
func (r *JobResource) Update(ctx context.Context, req resource.UpdateRequest, res *resource.UpdateResponse)
type JobResourceModel ¶ added in v0.0.3
type JobResourceModel struct { ID types.String `tfsdk:"id"` RemoveAwsCni types.Bool `tfsdk:"remove_aws_cni"` RemoveKubeProxy types.Bool `tfsdk:"remove_kube_proxy"` RemoveCoreDns types.Bool `tfsdk:"remove_core_dns"` ImportCorednsToHelm types.Bool `tfsdk:"import_coredns_to_helm"` AwsCniDaemonsetExists types.Bool `tfsdk:"aws_cni_daemonset_exists"` KubeProxyDaemonsetExists types.Bool `tfsdk:"kube_proxy_daemonset_exists"` KubeProxyConfigMapExists types.Bool `tfsdk:"kube_proxy_config_map_exists"` AwsCoreDnsDeploymentExists types.Bool `tfsdk:"aws_coredns_deployment_exists"` AwsCoreDnsServiceExists types.Bool `tfsdk:"aws_coredns_service_exists"` AwsCoreDnsServiceAccountExists types.Bool `tfsdk:"aws_coredns_service_account_exists"` AwsCoreDnsServiceClusterIps types.List `tfsdk:"aws_coredns_service_cluster_ips"` AwsCoreDnsConfigMapExists types.Bool `tfsdk:"aws_coredns_config_map_exists"` AwsCoreDnsPodDisruptionBudgetExists types.Bool `tfsdk:"aws_coredns_pod_disruption_budget_exists"` CorednsDeploymentLabelHelmReleaseNameSet types.Bool `tfsdk:"coredns_deployment_label_helm_release_name_set"` CorednsDeploymentLabelHelmReleaseNamespaceSet types.Bool `tfsdk:"coredns_deployment_label_helm_release_namespace_set"` CorednsDeploymentLabelManagedBySet types.Bool `tfsdk:"coredns_deployment_label_managed_by_set"` CorednsDeploymentLabelAmazonManagedRemoved types.Bool `tfsdk:"coredns_deployment_label_amazon_managed_removed"` CorednsServiceLabelHelmReleaseNameSet types.Bool `tfsdk:"coredns_service_label_helm_release_name_set"` CorednsServiceLabelHelmReleaseNamespaceSet types.Bool `tfsdk:"coredns_service_label_helm_release_namespace_set"` CorednsServiceLabelManagedBySet types.Bool `tfsdk:"coredns_service_label_managed_by_set"` CorednsServiceLabelAmazonManagedRemoved types.Bool `tfsdk:"coredns_service_label_amazon_managed_removed"` CorednsServiceAccountLabelHelmReleaseNameSet types.Bool `tfsdk:"coredns_service_account_label_helm_release_name_set"` CorednsServiceAccountLabelHelmReleaseNamespaceSet types.Bool `tfsdk:"coredns_service_account_label_helm_release_namespace_set"` CorednsServiceAccountLabelManagedBySet types.Bool `tfsdk:"coredns_service_account_label_managed_by_set"` CorednsServiceAccountLabelAmazonManagedRemoved types.Bool `tfsdk:"coredns_service_account_label_amazon_managed_removed"` CorednsConfigMapLabelHelmReleaseNameSet types.Bool `tfsdk:"coredns_config_map_label_helm_release_name_set"` CorednsConfigMapLabelHelmReleaseNamespaceSet types.Bool `tfsdk:"coredns_config_map_label_helm_release_namespace_set"` CorednsConfigMapLabelManagedBySet types.Bool `tfsdk:"coredns_config_map_label_managed_by_set"` CorednsConfigMapLabelAmazonManagedRemoved types.Bool `tfsdk:"coredns_config_map_label_amazon_managed_removed"` CorednsPodDistruptionBudgetLabelHelmReleaseNameSet types.Bool `tfsdk:"coredns_pod_disruption_budget_label_helm_release_name_set"` CorednsPodDistruptionBudgetLabelHelmReleaseNamespaceSet types.Bool `tfsdk:"coredns_pod_disruption_budget_label_helm_release_namespace_set"` CorednsPodDistruptionBudgetLabelManagedBySet types.Bool `tfsdk:"coredns_pod_disruption_budget_label_managed_by_set"` CorednsPodDistruptionBudgetLabelAmazonManagedRemoved types.Bool `tfsdk:"coredns_pod_disruption_budget_label_amazon_managed_removed"` }
Click to show internal directories.
Click to hide internal directories.