Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllTrueNoLabelIfFalse ¶
type AllTrueNoLabelIfFalse struct{}
type AnyTrueNoLabelIfFalse ¶
type AnyTrueNoLabelIfFalse struct{}
type LabelPolicy ¶
type LabelPolicy interface {
Process(physicalNodes *corev1.NodeList, key string) (value string, insertLabel bool)
}
func GetInstance ¶
func GetInstance(policyType LabelPolicyType) LabelPolicy
type LabelPolicyType ¶
type LabelPolicyType string
const ( // add val=true label if at least one node has a val=true or val="" label. LabelPolicyAnyTrue LabelPolicyType = "LabelPolicyAnuTrue" // add val=true label if each node has a val=true or val="" label. LabelPolicyAllTrue LabelPolicyType = "LabelPolicyAllTrue" // add val="" label if at least one node has a val=true or val="" label. LabelPolicyAnyTrueNoLabelIfFalse LabelPolicyType = "LabelPolicyAnyTrueNoLabelIfFalse" // add val="" label if each node has a val=true or val="" label. LabelPolicyAllTrueNoLabelIfFalse LabelPolicyType = "LabelPolicyAllTrueNoLabelIfFalse" )
NOTE: add these values to the accepted values in apis/config/v1alpha1/clusterconfig_types.go > LabelPolicy > Policy.
Click to show internal directories.
Click to hide internal directories.