Documentation ¶
Index ¶
- Constants
- func CacheKeyUIDFromMeta(metadata *metav1.ObjectMeta) types.UID
- func EnsureFissionCRDs(ctx context.Context, logger *zap.Logger, ...) error
- func WaitForFunctionCRDs(ctx context.Context, logger *zap.Logger, fissionClient versioned.Interface) error
- type CacheKeyUR
- type CacheKeyURG
- type ClientGenerator
- func (cg *ClientGenerator) GetApiExtensionsClient() (apiextensionsclient.Interface, error)
- func (cg *ClientGenerator) GetDynamicClient() (dynamic.Interface, error)
- func (cg *ClientGenerator) GetFissionClient() (versioned.Interface, error)
- func (cg *ClientGenerator) GetKubernetesClient() (kubernetes.Interface, error)
- func (cg *ClientGenerator) GetMetricsClient() (metricsclient.Interface, error)
- func (cg *ClientGenerator) GetRestConfig() (*rest.Config, error)
- type ClientGeneratorInterface
Constants ¶
const ( EnvKubeClientQps = "KUBE_CLIENT_QPS" EnvKubeClientBurst = "KUBE_CLIENT_BURST" )
Variables ¶
This section is empty.
Functions ¶
func CacheKeyUIDFromMeta ¶ added in v1.20.0
func CacheKeyUIDFromMeta(metadata *metav1.ObjectMeta) types.UID
CacheKeyUIDFromMeta create a key that uniquely identifies the of the object. Since resourceVersion changes on every update and UIDs are unique, we don't use resource version here
func EnsureFissionCRDs ¶
func EnsureFissionCRDs(ctx context.Context, logger *zap.Logger, clientset apiextensionsclient.Interface) error
EnsureFissionCRDs checks if all Fission CRDs are present
Types ¶
type CacheKeyUR ¶ added in v1.20.0
func CacheKeyURFromMeta ¶ added in v1.20.0
func CacheKeyURFromMeta(metadata *metav1.ObjectMeta) CacheKeyUR
CacheKeyURFromMeta : Given metadata, create a key that uniquely identifies the contents of the object. Since resourceVersion changes on every update and UIDs are unique, uid+resourceVersion identifies the content. (ResourceVersion may also update on status updates, so this will result in some unnecessary cache misses. That should be ok.)
func CacheKeyURFromObject ¶ added in v1.20.0
func CacheKeyURFromObject(obj metav1.Object) CacheKeyUR
func (CacheKeyUR) String ¶ added in v1.20.0
func (ck CacheKeyUR) String() string
type CacheKeyURG ¶ added in v1.20.0
func CacheKeyURGFromMeta ¶ added in v1.20.0
func CacheKeyURGFromMeta(metadata *metav1.ObjectMeta) CacheKeyURG
CacheKeyURGFromMeta : Given metadata, create a key that uniquely identifies the contents of the object. Since resourceVersion changes on every update and UIDs are unique, uid+resourceVersion identifies the content. Generation is also included to identify latest generation of the object.
func (CacheKeyURG) String ¶ added in v1.20.0
func (ck CacheKeyURG) String() string
type ClientGenerator ¶ added in v1.18.0
type ClientGenerator struct {
// contains filtered or unexported fields
}
func NewClientGenerator ¶ added in v1.18.0
func NewClientGenerator() *ClientGenerator
func NewClientGeneratorWithRestConfig ¶ added in v1.18.0
func NewClientGeneratorWithRestConfig(restConfig *rest.Config) *ClientGenerator
func (*ClientGenerator) GetApiExtensionsClient ¶ added in v1.18.0
func (cg *ClientGenerator) GetApiExtensionsClient() (apiextensionsclient.Interface, error)
func (*ClientGenerator) GetDynamicClient ¶ added in v1.18.0
func (cg *ClientGenerator) GetDynamicClient() (dynamic.Interface, error)
func (*ClientGenerator) GetFissionClient ¶ added in v1.18.0
func (cg *ClientGenerator) GetFissionClient() (versioned.Interface, error)
func (*ClientGenerator) GetKubernetesClient ¶ added in v1.18.0
func (cg *ClientGenerator) GetKubernetesClient() (kubernetes.Interface, error)
func (*ClientGenerator) GetMetricsClient ¶ added in v1.18.0
func (cg *ClientGenerator) GetMetricsClient() (metricsclient.Interface, error)
func (*ClientGenerator) GetRestConfig ¶ added in v1.20.0
func (cg *ClientGenerator) GetRestConfig() (*rest.Config, error)
type ClientGeneratorInterface ¶ added in v1.20.0
type ClientGeneratorInterface interface { GetRestConfig() (*rest.Config, error) GetFissionClient() (versioned.Interface, error) GetKubernetesClient() (kubernetes.Interface, error) GetApiExtensionsClient() (apiextensionsclient.Interface, error) GetMetricsClient() (metricsclient.Interface, error) GetDynamicClient() (dynamic.Interface, error) }