Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions helm/bundles/cortex-nova/templates/pipelines_kvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
description: |
This step prefix-matches the domain name for external customer domains and
filters out hosts that are not intended for external customers. It considers
the `CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED` trait on hosts as well as the
the `CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE` trait on hosts as well as the
`domain_name` scheduler hint from the nova request spec.
params:
- {key: domainNamePrefixes, stringListValue: ["iaas-"]}
Expand Down Expand Up @@ -190,7 +190,7 @@ spec:
description: |
This step prefix-matches the domain name for external customer domains and
filters out hosts that are not intended for external customers. It considers
the `CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED` trait on hosts as well as the
the `CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE` trait on hosts as well as the
`domain_name` scheduler hint from the nova request spec.
params:
- {key: domainNamePrefixes, stringListValue: ["iaas-"]}
Expand Down Expand Up @@ -463,7 +463,7 @@ spec:
description: |
This step prefix-matches the domain name for external customer domains and
filters out hosts that are not intended for external customers. It considers
the `CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED` trait on hosts as well as the
the `CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE` trait on hosts as well as the
`domain_name` scheduler hint from the nova request spec.
params:
- {key: domainNamePrefixes, stringListValue: ["iaas-"]}
Expand Down Expand Up @@ -534,7 +534,7 @@ spec:
description: |
This step prefix-matches the domain name for external customer domains and
filters out hosts that are not intended for external customers. It considers
the `CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED` trait on hosts as well as the
the `CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE` trait on hosts as well as the
`domain_name` scheduler hint from the nova request spec.
params:
- {key: domainNamePrefixes, stringListValue: ["iaas-"]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SELECT
ELSE false
END AS decommissioned,
CASE
WHEN ht.traits LIKE '%CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED%' THEN true
WHEN ht.traits LIKE '%CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE%' THEN true
ELSE false
END AS external_customer,
CASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestHostDetailsExtractor_Extract(t *testing.T) {
// VMware host traits
&placement.Trait{ResourceProviderUUID: "uuid1", Name: "CUSTOM_HW_SAPPHIRE_RAPIDS"},
&placement.Trait{ResourceProviderUUID: "uuid1", Name: "CUSTOM_HANA_EXCLUSIVE_HOST"},
&placement.Trait{ResourceProviderUUID: "uuid1", Name: "CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED"},
&placement.Trait{ResourceProviderUUID: "uuid1", Name: "CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE"},
// KVM host traits
&placement.Trait{ResourceProviderUUID: "uuid2", Name: "CUSTOM_NUMASIZE_C48_M729"},
// Ironic host traits
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func hostLabelsFromHypervisor(hypervisor hv1.Hypervisor) kvmHostLabels {
workloadType = "hana"
case "CUSTOM_DECOMMISSIONING":
decommissioned = true
case "CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED":
case "CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE":
externalCustomer = true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func TestKVMResourceCapacityKPI_Collect(t *testing.T) {
},
Traits: []string{
"CUSTOM_DECOMMISSIONING",
"CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED",
"CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (s *FilterExternalCustomerStep) Run(traceLog *slog.Logger, request api.Exte
for _, hv := range hvs.Items {
traits := hv.Status.Traits
traits = append(traits, hv.Spec.CustomTraits...)
if !slices.Contains(traits, "CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED") {
if !slices.Contains(traits, "CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE") {
continue
}
hvsWithTrait[hv.Name] = struct{}{}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ func TestFilterExternalCustomerStep_Run(t *testing.T) {
Name: "host1",
},
Status: hv1.HypervisorStatus{
Traits: []string{"CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED"},
Traits: []string{"CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE"},
},
},
&hv1.Hypervisor{
ObjectMeta: v1.ObjectMeta{
Name: "host2",
},
Status: hv1.HypervisorStatus{
Traits: []string{"CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED", "SOME_OTHER_TRAIT"},
Traits: []string{"CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE", "SOME_OTHER_TRAIT"},
},
},
&hv1.Hypervisor{
Expand All @@ -58,7 +58,7 @@ func TestFilterExternalCustomerStep_Run(t *testing.T) {
Name: "host5",
},
Status: hv1.HypervisorStatus{
Traits: []string{"CUSTOM_EXTERNAL_CUSTOMER_SUPPORTED"},
Traits: []string{"CUSTOM_EXTERNAL_CUSTOMER_EXCLUSIVE"},
},
},
}
Expand Down
Loading