-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move feature annotations under the api repository (#13)
- Loading branch information
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package calico | ||
|
||
const ( | ||
AnnotationAPIServerEnabled = "k8sd/v1alpha1/calico/apiserver-enabled" | ||
AnnotationEncapsulationV4 = "k8sd/v1alpha1/calico/encapsulation-v4" | ||
AnnotationEncapsulationV6 = "k8sd/v1alpha1/calico/encapsulation-v6" | ||
AnnotationAutodetectionV4FirstFound = "k8sd/v1alpha1/calico/autodetection-v4/firstFound" | ||
AnnotationAutodetectionV4Kubernetes = "k8sd/v1alpha1/calico/autodetection-v4/kubernetes" | ||
AnnotationAutodetectionV4Interface = "k8sd/v1alpha1/calico/autodetection-v4/interface" | ||
AnnotationAutodetectionV4SkipInterface = "k8sd/v1alpha1/calico/autodetection-v4/skipInterface" | ||
AnnotationAutodetectionV4CanReach = "k8sd/v1alpha1/calico/autodetection-v4/canReach" | ||
AnnotationAutodetectionV4CIDRs = "k8sd/v1alpha1/calico/autodetection-v4/cidrs" | ||
AnnotationAutodetectionV6FirstFound = "k8sd/v1alpha1/calico/autodetection-v6/firstFound" | ||
AnnotationAutodetectionV6Kubernetes = "k8sd/v1alpha1/calico/autodetection-v6/kubernetes" | ||
AnnotationAutodetectionV6Interface = "k8sd/v1alpha1/calico/autodetection-v6/interface" | ||
AnnotationAutodetectionV6SkipInterface = "k8sd/v1alpha1/calico/autodetection-v6/skipInterface" | ||
AnnotationAutodetectionV6CanReach = "k8sd/v1alpha1/calico/autodetection-v6/canReach" | ||
AnnotationAutodetectionV6CIDRs = "k8sd/v1alpha1/calico/autodetection-v6/cidrs" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package cilium | ||
|
||
const ( | ||
// List of devices facing cluster/external network (used for BPF NodePort, BPF masquerading and host firewall); supports '+' as wildcard in device name, e.g. 'eth+' | ||
// e.g. k8sd/v1alpha1/cilium/devices="eth+ lxdbr+" | ||
AnnotationDevices = "k8sd/v1alpha1/cilium/devices" | ||
|
||
// Device name used to connect nodes in direct routing mode (used by BPF NodePort, BPF host routing; if empty, automatically set to a device with k8s InternalIP/ExternalIP or with a default route | ||
// bridge type devices are ingored in automatic selection | ||
AnnotationDirectRoutingDevice = "k8sd/v1alpha1/cilium/direct-routing-device" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package annotations | ||
|
||
const ( | ||
// AnnotationSkipCleanupKubernetesNodeOnRemove if set, only the microcluster & file cleanup is done. | ||
// This is useful, if an external controller (e.g. CAPI) is responsible for the Kubernetes node life cycle. | ||
// By default, the Kubernetes node is removed by k8sd if a node is removed from the cluster. | ||
AnnotationSkipCleanupKubernetesNodeOnRemove = "k8sd/v1alpha/lifecycle/skip-cleanup-kubernetes-node-on-remove" | ||
|
||
// AnnotationSkipStopServicesOnRemove if set, the k8s services will not be stopped on the leaving node when removing the node. | ||
// This is useful, if an external controller (e.g. CAPI) is responsible for the Kubernetes node life cycle. | ||
// By default, all services are stopped on leaving nodes. | ||
AnnotationSkipStopServicesOnRemove = "k8sd/v1alpha/lifecycle/skip-stop-services-on-remove" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package metrics_server | ||
|
||
const ( | ||
AnnotationImageRepo = "k8sd/v1alpha1/metrics-server/image-repo" | ||
AnnotationImageTag = "k8sd/v1alpha1/metrics-server/image-tag" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters