Documentation ¶
Index ¶
- Constants
- func ComputeHash(obj interface{}) string
- func GetAnnotation(meta metav1.Object, key string) (string, bool)
- func GetHealthCheckNodePort(ds appsv1.DaemonSet) (int, error)
- func SetAnnotation(meta metav1.Object, key string, value string) (map[string]string, bool)
- type IngressDaemonSetReconciler
Constants ¶
View Source
const ( ObjectHashAnnotationKey = "object-hash" DeploymentIdentifierField = "deploymentIdentifier" DeploymentOwnerField = "deploymentOwner" DaemonSetOwnerField = "daemonSetOwner" HealthCheckNodePortAnnotation = "ingressdaemonsets.mumoshu.github.io/health-check-node-port" )
Variables ¶
This section is empty.
Functions ¶
func ComputeHash ¶
func ComputeHash(obj interface{}) string
ComputeHash returns a hash value calculated from pod template and a collisionCount to avoid hash collision. The hash will be safe encoded to avoid bad words.
Proudly modified and adopted from k8s.io/kubernetes/pkg/util/hash.DeepHashObject and k8s.io/kubernetes/pkg/controller.ComputeHash.
Types ¶
type IngressDaemonSetReconciler ¶
IngressDaemonSetReconciler reconciles a IngressDaemonSet object
func (*IngressDaemonSetReconciler) SetupWithManager ¶
func (r *IngressDaemonSetReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.