Skip to content
Merged
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
70 changes: 70 additions & 0 deletions mmv1/products/container/NodePool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Copyright 2026 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
name: 'NodePool'
include_in_tgc_next: true
exclude_resource: true
description: 'NodePool'
properties:
- name: 'name'
type: 'String'
description: 'The name of the node pool.'
- name: 'nodeCount'
type: 'Integer'
description: 'The initial node count for the pool.'
ignore_read: true
- name: 'NamePrefix'
type: 'String'
description: 'The prefix of the node pool name.'
ignore_read: true
- name: 'nodeConfig'
type: 'NestedObject'
description: 'Configuration for the nodes in the pool.'
properties:
- name: 'guest_accelerator'
type: 'Array'
api_name: 'accelerators'
description: 'A list of hardware accelerators to be attached to each node.'
ignore_read: true
item_type:
type: 'NestedObject'
properties:
- name: 'count'
type: 'Integer'
description: 'The number of the accelerator cards exposed to an instance.'
ignore_read: true
- name: 'type'
type: 'String'
description: 'The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.'
ignore_read: true
- name: 'gpuPartitionSize'
type: 'String'
description: 'Size of partitions to create on the GPU. Supported values are described in the NVIDIA mig user guide.'
ignore_read: true
- name: 'gpuDriverInstallationConfig'
type: 'NestedObject'
description: 'Configuration for GPU driver installation.'
ignore_read: true
properties:
- name: 'gpuDriverVersion'
type: 'String'
description: 'Mode for how the GPU driver is installed.'
- name: 'networkConfig'
type: 'NestedObject'
description: 'Networking configuration for this NodePool.'
properties:
- name: 'createPodRange'
type: 'Boolean'
description: 'Whether to create a new range for pod IPs in this node pool.'
ignore_read: true
Original file line number Diff line number Diff line change
Expand Up @@ -2659,8 +2659,13 @@ func flattenGvnic(v interface{}) []map[string]interface{} {
return nil
}

enabled, ok := c["enabled"].(bool)
if !ok {
enabled = false
}

transformed := map[string]interface{}{
"enabled": c["enabled"],
"enabled": enabled,
}

return []map[string]interface{}{transformed}
Expand Down
Loading