Documentation ¶
Index ¶
- Constants
- func Apply(ctx context.Context, obj Object, changedBy, changeReason string, ...) (runtime.Object, error)
- func AttachSharedInformer[TObj Object](ctx context.Context, indexers cache.Indexers) (informers.GenericInformer, error)
- func Client(ctx context.Context, gvk schema.GroupVersionKind, namespace string) (dynamic.ResourceInterface, bool, error)
- func ClientForObject(ctx context.Context, obj runtime.Object, namespace string) (dynamic.ResourceInterface, schema.GroupVersionKind, bool, error)
- func Delete(ctx context.Context, gvk schema.GroupVersionKind, namespace string, ...) error
- func DeleteObject(ctx context.Context, obj Object) error
- func DspLabel(name string) string
- func EnableSharedInformer(ctx context.Context, resyncDuration time.Duration, namespace string) context.Context
- func Get(ctx context.Context, gvk schema.GroupVersionKind, namespace string, ...) (runtime.Object, error)
- func GetObject(ctx context.Context, obj Object) error
- func GroupVersionKindForObject(obj runtime.Object) (schema.GroupVersionKind, error)
- func IsDspLabel(label string) bool
- func IsPvcResizingError(err error) bool
- func Watch(ctx context.Context, gvk schema.GroupVersionKind, namespace string, ...) (watch.Interface, error)
- type Object
- type PodReference
Constants ¶
View Source
const DspKubernetesLabelDomain = "tiki-dsp.io"
View Source
const DspKubernetesLabelPrefix = DspKubernetesLabelDomain + "/"
View Source
const DspNamespaceEnv = "DSP_NAMESPACE"
View Source
const DspPodEnv = "DSP_POD"
Variables ¶
This section is empty.
Functions ¶
func AttachSharedInformer ¶ added in v2.9.0
func AttachSharedInformer[TObj Object](ctx context.Context, indexers cache.Indexers) (informers.GenericInformer, error)
AttachSharedInformer creates a new informer instance located in the given context Shared informers do support custom indexing whilst attaching the first time. Calling AttachSharedInformer multiple times for the same resource using different cache.Indexers will use the indexers provided with the first call; all others will be ignored
func Client ¶
func Client(ctx context.Context, gvk schema.GroupVersionKind, namespace string) (dynamic.ResourceInterface, bool, error)
func ClientForObject ¶
func EnableSharedInformer ¶ added in v2.9.0
func EnableSharedInformer(ctx context.Context, resyncDuration time.Duration, namespace string) context.Context
EnableSharedInformer connects a shared informer factory to the given context
func GroupVersionKindForObject ¶
func GroupVersionKindForObject(obj runtime.Object) (schema.GroupVersionKind, error)
func IsDspLabel ¶ added in v2.7.0
func IsPvcResizingError ¶ added in v2.0.17
Types ¶
type PodReference ¶
func GetCurrentPodReference ¶
func GetCurrentPodReference() (*PodReference, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.