Documentation ¶
Index ¶
- func KubernetesProvider_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, ...) cdktf.ImportableResource
- func KubernetesProvider_IsConstruct(x interface{}) *bool
- func KubernetesProvider_IsTerraformElement(x interface{}) *bool
- func KubernetesProvider_IsTerraformProvider(x interface{}) *bool
- func KubernetesProvider_TfResourceType() *string
- func NewKubernetesProvider_Override(k KubernetesProvider, scope constructs.Construct, id *string, ...)
- type KubernetesProvider
- type KubernetesProviderConfig
- type KubernetesProviderExec
- type KubernetesProviderExperiments
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubernetesProvider_GenerateConfigForImport ¶
func KubernetesProvider_GenerateConfigForImport(scope constructs.Construct, importToId *string, importFromId *string, provider cdktf.TerraformProvider) cdktf.ImportableResource
Generates CDKTF code for importing a KubernetesProvider resource upon running "cdktf plan <stack-name>".
func KubernetesProvider_IsConstruct ¶
func KubernetesProvider_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func KubernetesProvider_IsTerraformElement ¶
func KubernetesProvider_IsTerraformElement(x interface{}) *bool
Experimental.
func KubernetesProvider_IsTerraformProvider ¶
func KubernetesProvider_IsTerraformProvider(x interface{}) *bool
Experimental.
func KubernetesProvider_TfResourceType ¶
func KubernetesProvider_TfResourceType() *string
func NewKubernetesProvider_Override ¶
func NewKubernetesProvider_Override(k KubernetesProvider, scope constructs.Construct, id *string, config *KubernetesProviderConfig)
Create a new {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs kubernetes} Resource.
Types ¶
type KubernetesProvider ¶
type KubernetesProvider interface { cdktf.TerraformProvider Alias() *string SetAlias(val *string) AliasInput() *string // Experimental. CdktfStack() cdktf.TerraformStack ClientCertificate() *string SetClientCertificate(val *string) ClientCertificateInput() *string ClientKey() *string SetClientKey(val *string) ClientKeyInput() *string ClusterCaCertificate() *string SetClusterCaCertificate(val *string) ClusterCaCertificateInput() *string ConfigContext() *string SetConfigContext(val *string) ConfigContextAuthInfo() *string SetConfigContextAuthInfo(val *string) ConfigContextAuthInfoInput() *string ConfigContextCluster() *string SetConfigContextCluster(val *string) ConfigContextClusterInput() *string ConfigContextInput() *string ConfigPath() *string SetConfigPath(val *string) ConfigPathInput() *string ConfigPaths() *[]*string SetConfigPaths(val *[]*string) ConfigPathsInput() *[]*string // Experimental. ConstructNodeMetadata() *map[string]interface{} Exec() interface{} SetExec(val interface{}) ExecInput() interface{} Experiments() interface{} SetExperiments(val interface{}) ExperimentsInput() interface{} // Experimental. Fqn() *string // Experimental. FriendlyUniqueId() *string Host() *string SetHost(val *string) HostInput() *string IgnoreAnnotations() *[]*string SetIgnoreAnnotations(val *[]*string) IgnoreAnnotationsInput() *[]*string IgnoreLabels() *[]*string SetIgnoreLabels(val *[]*string) IgnoreLabelsInput() *[]*string Insecure() interface{} SetInsecure(val interface{}) InsecureInput() interface{} // Experimental. MetaAttributes() *map[string]interface{} // The tree node. Node() constructs.Node Password() *string SetPassword(val *string) PasswordInput() *string ProxyUrl() *string SetProxyUrl(val *string) ProxyUrlInput() *string // Experimental. RawOverrides() interface{} // Experimental. TerraformGeneratorMetadata() *cdktf.TerraformProviderGeneratorMetadata // Experimental. TerraformProviderSource() *string // Experimental. TerraformResourceType() *string TlsServerName() *string SetTlsServerName(val *string) TlsServerNameInput() *string Token() *string SetToken(val *string) TokenInput() *string Username() *string SetUsername(val *string) UsernameInput() *string // Experimental. AddOverride(path *string, value interface{}) // Overrides the auto-generated logical ID with a specific ID. // Experimental. OverrideLogicalId(newLogicalId *string) ResetAlias() ResetClientCertificate() ResetClientKey() ResetClusterCaCertificate() ResetConfigContext() ResetConfigContextAuthInfo() ResetConfigContextCluster() ResetConfigPath() ResetConfigPaths() ResetExec() ResetExperiments() ResetHost() ResetIgnoreAnnotations() ResetIgnoreLabels() ResetInsecure() // Resets a previously passed logical Id to use the auto-generated logical id again. // Experimental. ResetOverrideLogicalId() ResetPassword() ResetProxyUrl() ResetTlsServerName() ResetToken() ResetUsername() SynthesizeAttributes() *map[string]interface{} SynthesizeHclAttributes() *map[string]interface{} // Experimental. ToHclTerraform() interface{} // Experimental. ToMetadata() interface{} // Returns a string representation of this construct. ToString() *string // Adds this resource to the terraform JSON output. // Experimental. ToTerraform() interface{} }
Represents a {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs kubernetes}.
func NewKubernetesProvider ¶
func NewKubernetesProvider(scope constructs.Construct, id *string, config *KubernetesProviderConfig) KubernetesProvider
Create a new {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs kubernetes} Resource.
type KubernetesProviderConfig ¶
type KubernetesProviderConfig struct { // Alias name. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#alias KubernetesProvider#alias} Alias *string `field:"optional" json:"alias" yaml:"alias"` // PEM-encoded client certificate for TLS authentication. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#client_certificate KubernetesProvider#client_certificate} ClientCertificate *string `field:"optional" json:"clientCertificate" yaml:"clientCertificate"` // PEM-encoded client certificate key for TLS authentication. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#client_key KubernetesProvider#client_key} ClientKey *string `field:"optional" json:"clientKey" yaml:"clientKey"` // PEM-encoded root certificates bundle for TLS authentication. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#cluster_ca_certificate KubernetesProvider#cluster_ca_certificate} ClusterCaCertificate *string `field:"optional" json:"clusterCaCertificate" yaml:"clusterCaCertificate"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#config_context KubernetesProvider#config_context}. ConfigContext *string `field:"optional" json:"configContext" yaml:"configContext"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#config_context_auth_info KubernetesProvider#config_context_auth_info}. ConfigContextAuthInfo *string `field:"optional" json:"configContextAuthInfo" yaml:"configContextAuthInfo"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#config_context_cluster KubernetesProvider#config_context_cluster}. ConfigContextCluster *string `field:"optional" json:"configContextCluster" yaml:"configContextCluster"` // Path to the kube config file. Can be set with KUBE_CONFIG_PATH. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#config_path KubernetesProvider#config_path} ConfigPath *string `field:"optional" json:"configPath" yaml:"configPath"` // A list of paths to kube config files. Can be set with KUBE_CONFIG_PATHS environment variable. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#config_paths KubernetesProvider#config_paths} ConfigPaths *[]*string `field:"optional" json:"configPaths" yaml:"configPaths"` // exec block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#exec KubernetesProvider#exec} Exec interface{} `field:"optional" json:"exec" yaml:"exec"` // experiments block. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#experiments KubernetesProvider#experiments} Experiments interface{} `field:"optional" json:"experiments" yaml:"experiments"` // The hostname (in form of URI) of Kubernetes master. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#host KubernetesProvider#host} Host *string `field:"optional" json:"host" yaml:"host"` // List of Kubernetes metadata annotations to ignore across all resources handled by this provider for situations where external systems are managing certain resource annotations. // // Each item is a regular expression. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#ignore_annotations KubernetesProvider#ignore_annotations} IgnoreAnnotations *[]*string `field:"optional" json:"ignoreAnnotations" yaml:"ignoreAnnotations"` // List of Kubernetes metadata labels to ignore across all resources handled by this provider for situations where external systems are managing certain resource labels. // // Each item is a regular expression. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#ignore_labels KubernetesProvider#ignore_labels} IgnoreLabels *[]*string `field:"optional" json:"ignoreLabels" yaml:"ignoreLabels"` // Whether server should be accessed without verifying the TLS certificate. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#insecure KubernetesProvider#insecure} Insecure interface{} `field:"optional" json:"insecure" yaml:"insecure"` // The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#password KubernetesProvider#password} Password *string `field:"optional" json:"password" yaml:"password"` // URL to the proxy to be used for all API requests. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#proxy_url KubernetesProvider#proxy_url} ProxyUrl *string `field:"optional" json:"proxyUrl" yaml:"proxyUrl"` // Server name passed to the server for SNI and is used in the client to check server certificates against. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#tls_server_name KubernetesProvider#tls_server_name} TlsServerName *string `field:"optional" json:"tlsServerName" yaml:"tlsServerName"` // Token to authenticate an service account. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#token KubernetesProvider#token} Token *string `field:"optional" json:"token" yaml:"token"` // The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#username KubernetesProvider#username} Username *string `field:"optional" json:"username" yaml:"username"` }
type KubernetesProviderExec ¶
type KubernetesProviderExec struct { // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#api_version KubernetesProvider#api_version}. ApiVersion *string `field:"required" json:"apiVersion" yaml:"apiVersion"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#command KubernetesProvider#command}. Command *string `field:"required" json:"command" yaml:"command"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#args KubernetesProvider#args}. Args *[]*string `field:"optional" json:"args" yaml:"args"` // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#env KubernetesProvider#env}. Env *map[string]*string `field:"optional" json:"env" yaml:"env"` }
type KubernetesProviderExperiments ¶
type KubernetesProviderExperiments struct { // Enable the `kubernetes_manifest` resource. // // Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/kubernetes/2.33.0/docs#manifest_resource KubernetesProvider#manifest_resource} ManifestResource interface{} `field:"optional" json:"manifestResource" yaml:"manifestResource"` }