Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aslafy-z authored Feb 29, 2024
1 parent 00dd27b commit 007065e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions internal/services/containers/kubernetes_cluster_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/hashicorp/go-azure-helpers/resourcemanager/identity"
"github.com/hashicorp/go-azure-helpers/resourcemanager/location"
"github.com/hashicorp/go-azure-helpers/resourcemanager/tags"
"github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/agentpools"
"github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/maintenanceconfigurations"
"github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-06-02-preview/managedclusters"
"github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools"

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / document-lint

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / detect

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / tflint

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / tflint

could not import github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools (invalid package name: "")

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor

Check failure on line 23 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / compatibility-32bit-test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/agentpools: import lookup disabled by -mod=vendor
"github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations"

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / document-lint

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / detect

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / tflint

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / tflint

could not import github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations (invalid package name: "")

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor

Check failure on line 24 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / compatibility-32bit-test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/maintenanceconfigurations: import lookup disabled by -mod=vendor
"github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters"

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / document-lint

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / detect

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / tflint

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / tflint

could not import github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters (invalid package name: "")

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor

Check failure on line 25 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / compatibility-32bit-test

cannot find module providing package github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-10-02-preview/managedclusters: import lookup disabled by -mod=vendor
dnsValidate "github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones"
"github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces"
"github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones"
Expand Down Expand Up @@ -978,7 +978,14 @@ func resourceKubernetesCluster() *pluginsdk.Resource {
}, false),
},

"node_provisioning_mode": "",
"node_provisioning_mode": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
string(managedclusters.NodeProvisioningModeManual),
string(managedclusters.NodeProvisioningModeAuto),
}, false),
},

"key_management_service": {
Type: pluginsdk.TypeList,
Expand Down Expand Up @@ -2164,6 +2171,13 @@ func resourceKubernetesClusterUpdate(d *pluginsdk.ResourceData, meta interface{}
existing.Model.Properties.NetworkProfile.OutboundType = pointer.To(managedclusters.OutboundType(d.Get(key).(string)))
}
}

Check failure on line 2173 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / golint

cannot infer T (vendor/github.com/hashicorp/go-azure-helpers/lang/pointer/generic.go:17:1) (typecheck)

if key := "node_provisioning_mode"; d.HasChange(key) {
updateCluster = true
nodeProvisioningMode := d.Get(key).(string)

Check failure on line 2177 in internal/services/containers/kubernetes_cluster_resource.go

View workflow job for this annotation

GitHub Actions / golint

cannot infer T (vendor/github.com/hashicorp/go-azure-helpers/lang/pointer/generic.go:17:1) (typecheck)
existing.Model.Properties.NodeProvisioningProfile.Mode = pointer.To(managedclusters.NodeProvisioningProfileMode(nodeProvisioningMode))
}

if d.HasChange("service_mesh_profile") {
updateCluster = true
if serviceMeshProfile := expandKubernetesClusterServiceMeshProfile(d.Get("service_mesh_profile").([]interface{}), existing.Model.Properties.ServiceMeshProfile); serviceMeshProfile != nil {
Expand Down

0 comments on commit 007065e

Please sign in to comment.