airshipctl/pkg/document/constants.go
Kostiantyn Kalynovskyi ad1e160c1a Add selector to filter docs to be deplyed to k8s
By default every document is to be deployed to kubernetes however
some documents may need to be skipped, because they serve only
informational purposes and have no consumers in kubernetes cluster

Change-Id: If2ea5659acb319c15cf3f55e9f3d9e86dc647e9f
Relates-To: #130
Closes: #130
2020-03-26 12:17:00 -05:00

21 lines
730 B
Go

package document
const (
// Label Selectors
BaseAirshipSelector = "airshipit.org"
EphemeralHostSelector = BaseAirshipSelector + "/ephemeral-node in (True, true)"
EphemeralUserDataSelector = BaseAirshipSelector + "/ephemeral-user-data in (True, true)"
InitInfraSelector = BaseAirshipSelector + "/phase = initinfra"
// Annotation Selectors
// Please note that by default every document in the manifest is to be deployed to kubernetes cluster.
// so this selector simply checks that deploy-k8s label is not equal to true or True (string)
DeployToK8sSelector = "config.kubernetes.io/local-config notin (True, true)"
)
// Kinds
const (
SecretKind = "Secret"
BareMetalHostKind = "BareMetalHost"
)