Skip to content

Commit

Permalink
print correct list of active gsk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nvthongswansea committed Jan 7, 2025
1 parent fca6fd4 commit 9d3866d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gridscale/resource_gridscale_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ func deriveK8sTemplateFromGSKVersion(client *gsclient.Client, version string) (*

for _, paasTemplate := range paasTemplates {
if paasTemplate.Properties.Flavour == k8sTemplateFlavourName {
versions = append(versions, template.Properties.Version)
if paasTemplate.Properties.Active {
versions = append(versions, template.Properties.Version)
}

if paasTemplate.Properties.Version == version {
isActive = paasTemplate.Properties.Active
Expand Down

0 comments on commit 9d3866d

Please sign in to comment.