diff --git a/apis/container/v1beta1/zz_generated_terraformed.go b/apis/container/v1beta1/zz_generated_terraformed.go index 29131cd1b..42138470e 100755 --- a/apis/container/v1beta1/zz_generated_terraformed.go +++ b/apis/container/v1beta1/zz_generated_terraformed.go @@ -89,9 +89,20 @@ func (tr *Cluster) LateInitialize(attrs []byte) (bool, error) { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + opts = append(opts, resource.WithNameFilter("AddonsConfig.DNSCacheConfig")) + opts = append(opts, resource.WithNameFilter("AddonsConfig.GCPFilestoreCsiDriverConfig")) + opts = append(opts, resource.WithNameFilter("AddonsConfig.NetworkPolicyConfig")) + opts = append(opts, resource.WithNameFilter("ClusterAutoscaling.Enabled")) + opts = append(opts, resource.WithNameFilter("ClusterAutoscaling.ResourceLimits")) opts = append(opts, resource.WithNameFilter("ClusterIPv4Cidr")) + opts = append(opts, resource.WithNameFilter("DefaultMaxPodsPerNode")) + opts = append(opts, resource.WithNameFilter("EnableAutopilot")) + opts = append(opts, resource.WithNameFilter("EnableIntranodeVisibility")) + opts = append(opts, resource.WithNameFilter("EnableShieldedNodes")) opts = append(opts, resource.WithNameFilter("IPAllocationPolicy")) + opts = append(opts, resource.WithNameFilter("NetworkPolicy")) opts = append(opts, resource.WithNameFilter("NodeVersion")) + opts = append(opts, resource.WithNameFilter("WorkloadIdentityConfig")) li := resource.NewGenericLateInitializer(opts...) return li.LateInitialize(&tr.Spec.ForProvider, params) diff --git a/config/container/config.go b/config/container/config.go index ddc3a9d65..d483a1e17 100644 --- a/config/container/config.go +++ b/config/container/config.go @@ -22,6 +22,17 @@ func Configure(p *config.Provider) { //nolint:gocyclo "cluster_ipv4_cidr", "ip_allocation_policy", "node_version", + "enable_autopilot", + "workload_identity_config", + "addons_config.network_policy_config", + "addons_config.gcp_filestore_csi_driver_config", + "addons_config.dns_cache_config", + "default_max_pods_per_node", + "cluster_autoscaling.enabled", + "cluster_autoscaling.resource_limits", + "enable_intranode_visibility", + "network_policy", + "enable_shielded_nodes", }, } config.MoveToStatus(r.TerraformResource, "node_pool") diff --git a/examples/container/cluster.yaml b/examples/container/cluster.yaml index 1abdadd81..2c3a8169f 100644 --- a/examples/container/cluster.yaml +++ b/examples/container/cluster.yaml @@ -8,6 +8,7 @@ metadata: name: cluster spec: forProvider: - initialNodeCount: 1 - location: us-central1-a - removeDefaultNodePool: false + location: europe-north1 + ipAllocationPolicy: + - {} + enableAutopilot: true \ No newline at end of file