Skip to content

Commit

Permalink
only consider active gsk templates when setting gsk release
Browse files Browse the repository at this point in the history
  • Loading branch information
nvthongswansea committed Jan 7, 2025
1 parent ebf7f6b commit fca6fd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gridscale/resource_gridscale_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func deriveK8sTemplateFromRelease(client *gsclient.Client, release, currenTempla
var template gsclient.PaaSTemplate

for _, paasTemplate := range paasTemplates {
if paasTemplate.Properties.Flavour == k8sTemplateFlavourName {
if paasTemplate.Properties.Flavour == k8sTemplateFlavourName && paasTemplate.Properties.Active {
releases = append(releases, paasTemplate.Properties.Release)

if paasTemplate.Properties.Release == release {
Expand Down

0 comments on commit fca6fd4

Please sign in to comment.