Skip to content
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

✨ Add additional field to GKE: releaseChannel #5111

Merged
merged 8 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from 6 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
2 changes: 2 additions & 0 deletions providers/gcp/resources/gcp.lr
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,8 @@ private gcp.project.gkeService.cluster @defaults("name description zone status c
identityServiceConfig dict
// Configuration options for the NetworkPolicy feature
networkPolicyConfig dict
// Configuration for Release Channel feature
releaseChannel dict
}

// Google Kubernetes Engine (GKE) cluster addons config
Expand Down
12 changes: 12 additions & 0 deletions providers/gcp/resources/gcp.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions providers/gcp/resources/gcp.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,7 @@ resources:
nodePools: {}
privateClusterConfig: {}
projectId: {}
releaseChannel: {}
resourceLabels: {}
shieldedNodesConfig: {}
status: {}
Expand Down
8 changes: 8 additions & 0 deletions providers/gcp/resources/gke.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,13 @@ func (g *mqlGcpProjectGkeService) clusters() ([]interface{}, error) {
}
}

var releaseChannel map[string]interface{}
if c.ReleaseChannel != nil {
releaseChannel = map[string]interface{}{
"channel": c.ReleaseChannel.Channel.String(),
}
}

var costManagementConfig map[string]interface{}
if c.CostManagementConfig != nil {
costManagementConfig = map[string]interface{}{
Expand Down Expand Up @@ -567,6 +574,7 @@ func (g *mqlGcpProjectGkeService) clusters() ([]interface{}, error) {
"confidentialNodesConfig": llx.DictData(confidentialNodesConfig),
"identityServiceConfig": llx.DictData(identityServiceConfig),
"networkPolicyConfig": llx.DictData(networkPolicyConfig),
"releaseChannel": llx.DictData(releaseChannel),
})
if err != nil {
return nil, err
Expand Down
Loading