Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for config_data #2195

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions kubernetes/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@
Description: "Path to the kube config file. Can be set with KUBE_CONFIG_PATH.",
ConflictsWith: []string{"config_paths"},
},
"config_data": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
DefaultFunc: schema.EnvDefaultFunc("KUBE_CONFIG_DATA", nil),
Description: "Raw Kubernetes config data. Can be set with KUBE_CONFIG_DATA. Takes precidence over all over configutaion. No overrides allowed.",
ConflictsWith: []string{"config_path", "config_paths"},
},
"config_context": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -456,8 +464,8 @@
func providerConfigure(ctx context.Context, d *schema.ResourceData, terraformVersion string) (interface{}, diag.Diagnostics) {
// Config initialization
cfg, diags := initializeConfiguration(d)
if diags.HasError() {

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

diags.HasError undefined (type error has no field or method HasError)

Check failure on line 467 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

diags.HasError undefined (type error has no field or method HasError)
return nil, diags

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

cannot use diags (variable of type error) as "github.com/hashicorp/terraform-plugin-sdk/v2/diag".Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

cannot use diags (variable of type error) as diag.Diagnostics value in return statement

Check failure on line 468 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

cannot use diags (variable of type error) as diag.Diagnostics value in return statement
}
if cfg == nil {
// This is a TEMPORARY measure to work around https://github.com/hashicorp/terraform/issues/24055
Expand Down Expand Up @@ -496,8 +504,23 @@
return m, diag.Diagnostics{}
}

func initializeConfiguration(d *schema.ResourceData) (*restclient.Config, diag.Diagnostics) {
diags := make(diag.Diagnostics, 0)
func initializeConfiguration(d *schema.ResourceData) (*restclient.Config, error) {

configData, configDataOk := d.GetOk("config_data")
if configDataOk {
cc, err := clientcmd.NewClientConfigFromBytes([]byte(configData.(string)))
if err != nil {
log.Printf("[ERROR] Invalid config_data was provided. Provider operations likely to fail: %v", err)
return nil, nil
}
cfg, err := cc.ClientConfig()
if err != nil {
log.Printf("[ERROR] Invalid config_data was provided. Provider operations likely to fail: %v", err)
return nil, nil
}
return cfg, nil
}

overrides := &clientcmd.ConfigOverrides{}
loader := &clientcmd.ClientConfigLoadingRules{}

Expand All @@ -520,7 +543,7 @@
for _, p := range configPaths {
path, err := homedir.Expand(p)
if err != nil {
return nil, append(diags, diag.FromErr(err)...)

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

undefined: diags

Check failure on line 546 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

undefined: diags
}

log.Printf("[DEBUG] Using kubeconfig: %s", path)
Expand Down Expand Up @@ -588,7 +611,7 @@
Detail: err.Error(),
AttributePath: cty.Path{}.IndexString("host"),
}
return nil, append(diags, nd)

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

undefined: diags

Check failure on line 614 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

undefined: diags
}
overrides.ClusterInfo.Server = host.String()
}
Expand Down Expand Up @@ -621,7 +644,7 @@
Summary: "Failed to parse 'exec' provider configuration",
AttributePath: cty.Path{}.IndexString("exec"),
}
return nil, append(diags, nd)

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

undefined: diags

Check failure on line 647 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

undefined: diags
}
overrides.AuthInfo.Exec = exec
}
Expand All @@ -639,10 +662,10 @@
Detail: err.Error(),
}
log.Printf("[WARN] Provider was supplied an invalid configuration. Further operations likely to fail: %v", err)
return nil, append(diags, nd)

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

undefined: diags

Check failure on line 665 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

undefined: diags
}

return cfg, diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.7.0)

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.6.0)

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / checkers-and-linters

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.8.0)

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.2.9)

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / golang_linter

undefined: diags) (typecheck)

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.4.0)

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / check (1.3.9)

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / unit_test

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d46...

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b3...

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952...

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c...

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e32...

undefined: diags

Check failure on line 668 in kubernetes/provider.go

View workflow job for this annotation

GitHub Actions / acceptance_tests_kind (v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e45040...

undefined: diags
}

var useadmissionregistrationv1beta1 *bool
Expand Down
11 changes: 11 additions & 0 deletions manifest/provider/provider_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ func GetProviderConfigSchema() *tfprotov5.Schema {
DescriptionKind: 0,
Deprecated: false,
},
{
Name: "config_data",
Type: tftypes.String,
Description: "Raw Kubernetes config data. Can be set with KUBE_CONFIG_DATA. Takes precidence over all over configutaion. No overrides allowed.",
Required: false,
Optional: true,
Computed: false,
Sensitive: true,
DescriptionKind: 0,
Deprecated: false,
},
{
Name: "config_context",
Type: tftypes.String,
Expand Down
Loading