We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f749f commit e82ebabCopy full SHA for e82ebab
internal/namespaces/instance/v1/helpers_types.go
@@ -121,10 +121,9 @@ func getEndOfServiceDate(
121
}
122
123
for _, product := range products.Products {
124
- if strings.HasPrefix(product.Product, commercialType) {
125
- if product.Locality.Zone != nil && *product.Locality.Zone == zone {
126
- return product.EndOfLifeAt.Format(time.DateOnly), nil
127
- }
+ if product.Properties != nil && product.Properties.Instance != nil &&
+ product.Properties.Instance.OfferID == commercialType {
+ return product.EndOfLifeAt.Format(time.DateOnly), nil
128
129
130
0 commit comments