package
0.0.7
Repository: https://github.com/djzager/operator-sdk.git
Documentation: pkg.go.dev

# Functions

AddToSDKScheme allows CRDs to register their types with the sdk scheme.
GetNameAndNamespace extracts the name and namespace from the given runtime.Object and returns a error if any of those is missing.
GetOperatorName return the operator name.
GetWatchNamespace returns the namespace the operator should be watching for changes.
InitOperatorService return the static service which expose operator metrics.
No description provided by the author
RuntimeObjectFromUnstructured converts an unstructured to a runtime object.
RuntimeObjectIntoRuntimeObject unmarshalls an runtime.Object into a given runtime object.
SetDecoderFunc sets a non default decoder function This is used as a work around to add support for unstructured objects.
UnstructuredFromRuntimeObject converts a runtime object to an unstructured.
UnstructuredIntoRuntimeObject unmarshalls an unstructured into a given runtime object TODO: https://github.com/operator-framework/operator-sdk/issues/127.

# Constants

KubeConfigEnvVar defines the env variable KUBERNETES_CONFIG which contains the kubeconfig file path.
OperatorNameEnvVar is the constant for env variable OPERATOR_NAME wich is the name of the current operator.
PrometheusMetricsPort defines the port which expose prometheus metrics.
PrometheusMetricsPortName define the port name used in kubernetes deployment and service.
WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE which is the namespace that the pod is currently running in.

# Type aliases

UtilDecoderFunc retrieve the correct decoder from a GroupVersion and the schemes codec factory.