Documentation ¶
Index ¶
- Constants
- Variables
- func EnsureTargetNamespaceExist(cli client.Client, targetNamespace string) (bool, error)
- func FulfillTargetNamespaceSpec(clusterInstance *hwameistoriov1alpha1.Cluster) *hwameistoriov1alpha1.Cluster
- func GetFileBytes(filepath string) ([]byte, error)
- func Install(cli client.Client, resourceBytes []byte, targetNamespace string) error
- func InstallCRDs(cli client.Client, targetNamespace string) error
- func RawExtensionToUnstructured(rawObj runtime.RawExtension) (*unstructured.Unstructured, error)
- func ReadResourcesFromDir(dir string) ([][]byte, error)
Constants ¶
View Source
const DefaultHwameistorVersion = "v0.14.5"
Variables ¶
View Source
var HostPathDirectory = corev1.HostPathDirectory
View Source
var HostPathDirectoryOrCreate = corev1.HostPathDirectoryOrCreate
View Source
var HostPathFileOrCreate = corev1.HostPathFileOrCreate
View Source
var HostPathTypeUnset = corev1.HostPathUnset
View Source
var MountPropagationBidirectional = corev1.MountPropagationBidirectional
View Source
var SecurityContextPrivilegedTrue = true
View Source
var TerminationGracePeriodSeconds30s = int64(30)
Functions ¶
func FulfillTargetNamespaceSpec ¶
func FulfillTargetNamespaceSpec(clusterInstance *hwameistoriov1alpha1.Cluster) *hwameistoriov1alpha1.Cluster
func GetFileBytes ¶
func RawExtensionToUnstructured ¶
func RawExtensionToUnstructured(rawObj runtime.RawExtension) (*unstructured.Unstructured, error)
func ReadResourcesFromDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.