Documentation ¶
Index ¶
- func ApplyAsset(h resource.Helper, assetPath string, hLog log.FieldLogger) error
- func ApplyAssetWithGC(h resource.Helper, assetPath string, hc *hivev1.HiveConfig, ...) error
- func ApplyAssetWithNSOverrideAndGC(h resource.Helper, assetPath, namespaceOverride string, ...) error
- func ApplyClusterRoleBindingAssetWithSubjectNSOverrideAndGC(h resource.Helper, roleBindingAssetPath, namespaceOverride string, ...) error
- func ApplyRuntimeObjectWithGC(h resource.Helper, runtimeObj runtime.Object, hc *hivev1.HiveConfig) (resource.ApplyResult, error)
- func ReadAPIServiceV1Beta1OrDie(objBytes []byte, scheme *runtime.Scheme) *apiregistrationv1.APIService
- func ReadMutatingWebhookConfigurationV1Beta1OrDie(objBytes []byte, scheme *runtime.Scheme) *admregv1.MutatingWebhookConfiguration
- func ReadValidatingWebhookConfigurationV1Beta1OrDie(objBytes []byte, scheme *runtime.Scheme) *admregv1.ValidatingWebhookConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyAsset ¶
ApplyAsset loads a path from our bindata assets and applies it to the cluster. This function does not apply a HiveConfig owner reference for garbage collection, and should only be used for resources we explicitly want to leave orphaned when Hive is uninstalled. See ApplyAssetWithGC for the more common use case.
func ApplyAssetWithGC ¶ added in v1.0.4
func ApplyAssetWithGC(h resource.Helper, assetPath string, hc *hivev1.HiveConfig, hLog log.FieldLogger) error
ApplyAssetWithGC loads a path from our bindata assets, adds an OwnerReference to the HiveConfig for garbage collection (used when uninstalling Hive), and applies it to the cluster.
func ApplyAssetWithNSOverrideAndGC ¶ added in v1.0.4
func ApplyAssetWithNSOverrideAndGC(h resource.Helper, assetPath, namespaceOverride string, hiveConfig *hivev1.HiveConfig) error
ApplyAssetWithNSOverrideAndGC loads the given asset, overrides the namespace, adds an owner reference to HiveConfig for uninstall, and applies it to the cluster.
func ApplyClusterRoleBindingAssetWithSubjectNSOverrideAndGC ¶ added in v1.0.4
func ApplyClusterRoleBindingAssetWithSubjectNSOverrideAndGC(h resource.Helper, roleBindingAssetPath, namespaceOverride string, hiveConfig *hivev1.HiveConfig) error
ApplyClusterRoleBindingAssetWithSubjectNSOverrideAndGC loads the given asset, overrides the namespace on the subject, adds an owner reference to HiveConfig for uninstall, and applies it to the cluster.
func ApplyRuntimeObjectWithGC ¶ added in v1.0.4
func ApplyRuntimeObjectWithGC(h resource.Helper, runtimeObj runtime.Object, hc *hivev1.HiveConfig) (resource.ApplyResult, error)
ApplyRuntimeObjectWithGC adds an OwnerReference to the HiveConfig on the runtime object, and applies it to the cluster.
func ReadAPIServiceV1Beta1OrDie ¶
func ReadAPIServiceV1Beta1OrDie(objBytes []byte, scheme *runtime.Scheme) *apiregistrationv1.APIService
ReadAPIServiceV1Beta1OrDie reads an APIService, as this is not yet added to library-go.
func ReadMutatingWebhookConfigurationV1Beta1OrDie ¶
func ReadMutatingWebhookConfigurationV1Beta1OrDie(objBytes []byte, scheme *runtime.Scheme) *admregv1.MutatingWebhookConfiguration
ReadMutatingWebhookConfigurationV1Beta1OrDie reads a MutatingWebhookConfiguration, as this is not yet added to library-go.
func ReadValidatingWebhookConfigurationV1Beta1OrDie ¶
func ReadValidatingWebhookConfigurationV1Beta1OrDie(objBytes []byte, scheme *runtime.Scheme) *admregv1.ValidatingWebhookConfiguration
ReadValidatingWebhookConfigurationV1Beta1OrDie reads a ValidatingWebhookConfiguration, as this is not yet added to library-go.
Types ¶
This section is empty.