Skip to content

Commit

Permalink
fix ACL error (#91)
Browse files Browse the repository at this point in the history
Co-authored-by: Dean Oren <deangili.oren@mail.schwarz>
  • Loading branch information
do87 and Dean Oren authored Jan 19, 2023
1 parent 673df19 commit e25c8be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

const run_this_test = true
const run_this_test = false

func TestAcc_MongoDBFlexInstance(t *testing.T) {
if !common.ShouldAccTestRun(run_this_test) {
Expand Down
11 changes: 1 addition & 10 deletions stackit/internal/resources/kubernetes/cluster/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,16 +422,7 @@ func (c *Cluster) transformExtensions(cl cluster.Cluster) {
if c.Extensions == nil || cl.Extensions == nil {
return
}
c.Extensions = &Extensions{
Argus: &ArgusExtension{
Enabled: types.BoolValue(false),
ArgusInstanceID: types.StringNull(),
},
ACL: &ACL{
Enabled: types.BoolValue(false),
AllowedCIDRs: types.ListNull(types.StringType),
},
}

if cl.Extensions.Argus != nil {
c.Extensions.Argus = &ArgusExtension{
Enabled: types.BoolValue(cl.Extensions.Argus.Enabled),
Expand Down
2 changes: 0 additions & 2 deletions stackit/internal/resources/kubernetes/cluster/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp
"argus": schema.SingleNestedAttribute{
Description: "A single argus block as defined below",
Optional: true,
Computed: true,
Attributes: map[string]schema.Attribute{
"enabled": schema.BoolAttribute{
Description: "Flag to enable/disable argus extensions. Defaults to `false`",
Expand All @@ -355,7 +354,6 @@ func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp
"acl": schema.SingleNestedAttribute{
Description: "Cluster access control configuration",
Optional: true,
Computed: true,
Attributes: map[string]schema.Attribute{
"enabled": schema.BoolAttribute{
Description: "Is ACL enabled? Defaults to `false`",
Expand Down

0 comments on commit e25c8be

Please sign in to comment.