Documentation ¶
Index ¶
- func Validation() *apiextv1beta1.CustomResourceValidation
- type Handler
- func (h *Handler) CrdKeyPrefix() (prefix string, underKsrPrefix bool)
- func (h *Handler) CrdName() string
- func (h *Handler) CrdObjectToKVData(obj interface{}) (data []kvdbreflector.KVData, err error)
- func (h *Handler) IsCrdKeySuffix(keySuffix string) bool
- func (h *Handler) IsExclusiveKVDB() bool
- func (h *Handler) PublishCrdStatus(obj interface{}, opRetval error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validation ¶
func Validation() *apiextv1beta1.CustomResourceValidation
Validation generates OpenAPIV3 validator for CustomConfiguration CRD
Types ¶
type Handler ¶
type Handler struct { Log logging.Logger CrdClient *crdClientSet.Clientset }
Handler implements the Handler interface for CRD<->KVDB Reflector.
func (*Handler) CrdKeyPrefix ¶
CrdKeyPrefix returns the longest-common prefix under which the instances of the given CRD are reflected into KVDB.
func (*Handler) CrdObjectToKVData ¶
func (h *Handler) CrdObjectToKVData(obj interface{}) (data []kvdbreflector.KVData, err error)
CrdObjectToKVData converts the K8s representation of CustomConfiguration into the corresponding configuration for vpp-agent(s) running in the destination microservice(s).
func (*Handler) IsCrdKeySuffix ¶
IsCrdKeySuffix excludes the KSR-reflected data.
func (*Handler) IsExclusiveKVDB ¶
IsExclusiveKVDB returns false - there can be multiple writers of the agent configuration in the database.
func (*Handler) PublishCrdStatus ¶
PublishCrdStatus updates the resource Status information.
Click to show internal directories.
Click to hide internal directories.