Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexHostsConfigMap ¶
func IndexLables(mgr ctrl.Manager) error { if err := mgr.GetFieldIndexer().IndexField( context.Background(), &batchv1.Kubehosts{}, ".spec.lables", func(rawObj client.Object) []string { // Extract the ConfigMap name from the ConfigDeployment Spec, if one is provided kubeHosts := rawObj.(*batchv1.Kubehosts) if kubeHosts.Spec.Lables == nil { return nil } lablesString, err := json.Marshal(kubeHosts.Spec.Lables) if err != nil { return nil } return []string{string(lablesString)} }); err != nil { return err } return nil }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.