Skip to content

Commit

Permalink
internal:hypershift: add consts
Browse files Browse the repository at this point in the history
add a package of hypershift consts which lists useful
constants that can be used across the payload and test code.

each const that is added to the package shall be documented
so its purpose and usage will be clear.

Signed-off-by: Talor Itzhak <[email protected]>
  • Loading branch information
Tal-or committed Jan 27, 2025
1 parent 597d9df commit 9a89835
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions internal/hypershift/consts/consts.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package consts

const (
// NodePoolNameLabel uses to label ConfigMap objects which are associated with the NodePool
NodePoolNameLabel = "hypershift.openshift.io/nodePool"

// KubeletConfigConfigMapLabel uses
// to label a ConfigMap that holds a KubeletConfig object
KubeletConfigConfigMapLabel = "hypershift.openshift.io/kubeletconfig-config"

// ConfigKey is the key under ConfigMap.Data on which encoded
// machine-config, kubelet-config objects are stored.
ConfigKey = "config"
)

0 comments on commit 9a89835

Please sign in to comment.