Skip to content

Commit

Permalink
Use topology.kubernetes.io/subzone Node label for Coherence rack if t…
Browse files Browse the repository at this point in the history
…he label is present on the node.
  • Loading branch information
thegridman committed Sep 23, 2024
1 parent d1ef449 commit 198efac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const (

// LabelOciNodeFaultDomain is the OCI Node label for the fault domain.
LabelOciNodeFaultDomain = "oci.oraclecloud.com/fault-domain"
// LabelTopologySubZone is the k8s topology label for sub-zone.
LabelTopologySubZone = "topology.kubernetes.io/subzone"

// LabelHostName is the Node label for the Node's hostname.
LabelHostName = "kubernetes.io/hostname"
Expand All @@ -104,7 +106,7 @@ var currentViper *viper.Viper
var (
operatorVersion = "999.0.0"
DefaultSiteLabels = []string{corev1.LabelTopologyZone, corev1.LabelFailureDomainBetaZone}
DefaultRackLabels = []string{LabelOciNodeFaultDomain, corev1.LabelTopologyZone, corev1.LabelFailureDomainBetaZone}
DefaultRackLabels = []string{LabelTopologySubZone, LabelOciNodeFaultDomain, corev1.LabelTopologyZone, corev1.LabelFailureDomainBetaZone}
)

func SetupOperatorManagerFlags(cmd *cobra.Command, v *viper.Viper) {
Expand Down

0 comments on commit 198efac

Please sign in to comment.