Documentation ¶
Index ¶
- func HashConfigMap(configMap *core_v1.ConfigMap, h hash.Hash, filter sets.String) bool
- func HashConfigMapRef(store Store, namespace, name string, filter sets.String, optional *bool, ...) error
- func HashSecret(secret *core_v1.Secret, h hash.Hash, filter sets.String) bool
- func HashSecretRef(store Store, namespace, name string, filter sets.String, optional *bool, ...) error
- type Checker
- type Context
- type ObjectProcessor
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashConfigMap ¶
HashConfigMap hashes the sorted values in the ConfigMap in sorted order with a NUL as a separator character between and within pairs of key + value.
func HashConfigMapRef ¶
func HashSecret ¶
HashSecret hashes the sorted values in the secret in sorted order with a NUL as a separator character between and within pairs of key + value.
Types ¶
type Checker ¶
type Checker struct { Store Store KnownTypes map[schema.GroupKind]ObjectProcessor }
func (*Checker) BeforeCreate ¶
func (c *Checker) BeforeCreate(logger *zap.Logger, spec *unstructured.Unstructured) (*unstructured.Unstructured, error)
BeforeCreate pre-processes object specification and returns an updated version.
func (*Checker) CompareActualVsSpec ¶
func (c *Checker) CompareActualVsSpec(logger *zap.Logger, spec, actual runtime.Object) (*unstructured.Unstructured, bool, string, error)
type ObjectProcessor ¶
type ObjectProcessor interface { // BeforeCreate pre-processes object specification and returns an updated version. BeforeCreate(ctx *Context, spec *unstructured.Unstructured) (runtime.Object, error) ApplySpec(ctx *Context, spec, actual *unstructured.Unstructured) (runtime.Object, error) }
Click to show internal directories.
Click to hide internal directories.