-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: Adding output types to metadata.yaml for gke-standard-cluster #2492
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -974,44 +974,151 @@ spec: | |
| outputs: | ||
| - name: addons_config | ||
| description: The configuration for addons supported by GKE Autopilot. | ||
| type: | ||
| - object | ||
| - cloudrun_config: | ||
| - list | ||
| - - object | ||
| - disabled: bool | ||
| load_balancer_type: string | ||
| config_connector_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| dns_cache_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| gce_persistent_disk_csi_driver_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| gcp_filestore_csi_driver_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| gcs_fuse_csi_driver_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| gke_backup_agent_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| horizontal_pod_autoscaling: | ||
| - list | ||
| - - object | ||
| - disabled: bool | ||
| http_load_balancing: | ||
| - list | ||
| - - object | ||
| - disabled: bool | ||
| istio_config: | ||
| - list | ||
| - - object | ||
| - auth: string | ||
| disabled: bool | ||
| kalm_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| lustre_csi_driver_config: | ||
| - list | ||
| - - object | ||
| - enable_legacy_lustre_port: bool | ||
| enabled: bool | ||
| network_policy_config: | ||
| - list | ||
| - - object | ||
| - disabled: bool | ||
| parallelstore_csi_driver_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| ray_operator_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| ray_cluster_logging_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| ray_cluster_monitoring_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| stateful_ha_config: | ||
| - list | ||
| - - object | ||
| - enabled: bool | ||
| - name: ca_certificate | ||
| description: Cluster ca certificate (base64 encoded) | ||
| type: string | ||
| - name: cluster_id | ||
| description: Cluster ID | ||
| type: string | ||
| - name: cluster_name | ||
| description: Cluster name | ||
| type: string | ||
| - name: endpoint | ||
| description: Cluster endpoint | ||
| type: string | ||
| - name: endpoint_dns | ||
| description: Cluster endpoint DNS | ||
| type: string | ||
| - name: horizontal_pod_autoscaling_enabled | ||
| description: Whether horizontal pod autoscaling enabled | ||
| type: bool | ||
| - name: http_load_balancing_enabled | ||
| description: Whether http load balancing enabled | ||
| type: bool | ||
| - name: identity_service_enabled | ||
| description: Whether Identity Service is enabled | ||
| type: bool | ||
| - name: intranode_visibility_enabled | ||
| description: Whether intra-node visibility is enabled | ||
| type: bool | ||
| - name: location | ||
| description: Cluster location (region if regional cluster, zone if zonal cluster) | ||
| type: string | ||
| - name: logging_service | ||
| description: Logging service used | ||
| type: string | ||
| - name: master_authorized_networks_config | ||
| description: Networks from which access to master is permitted | ||
| type: | ||
| - list | ||
| - - object | ||
| - cidr_blocks: | ||
| - list | ||
| - - object | ||
| - cidr_block: string | ||
| display_name: string | ||
| gcp_public_cidrs_access_enabled: bool | ||
| private_endpoint_enforcement_enabled: bool | ||
|
Comment on lines
+1089
to
+1098
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The type definition for
I've provided a suggestion to fix both the syntax and the incorrect field. type:
- list
- - object
-
cidr_blocks:
- list
- - object
- cidr_block: string
display_name: string
gcp_public_cidrs_access_enabled: bool |
||
| - name: master_version | ||
| description: Current master kubernetes version | ||
| type: string | ||
| - name: min_master_version | ||
| description: Minimum master kubernetes version | ||
apeabody marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| type: string | ||
| - name: monitoring_service | ||
| description: Monitoring service used | ||
| type: string | ||
| - name: network_policy_enabled | ||
| description: Whether network policy enabled | ||
| type: bool | ||
| - name: node_locations | ||
| description: The list of zones in which the cluster's nodes are located. | ||
| type: | ||
| - list | ||
| - string | ||
| - name: secret_manager_addon_enabled | ||
| description: Whether Secret Manager add-on is enabled | ||
| type: bool | ||
| - name: vertical_pod_autoscaling_enabled | ||
| description: Whether vertical pod autoscaling enabled | ||
| type: bool | ||
| requirements: | ||
| roles: | ||
| - level: Project | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type definition for
addons_confighas two significant issues:Incorrect Type: The Terraform output for
addons_configis a list containing a single object (list(object)), but the type is defined here as a directobject. To match the actual output schema, it should be defined as a list of objects.Invalid YAML Structure: The properties of the object (e.g.,
cloudrun_config,config_connector_config) are not structured as a valid YAML mapping. The use of a hyphen-on the first property (cloudrun_config) combined with the indentation of subsequent properties creates an invalid structure. All properties should be keys within a single mapping that defines the object.These issues make the type definition both inaccurate and syntactically incorrect.