Documentation
¶
Index ¶
- func ApplyCRDAndWaitForEstablish(ctx context.Context, crds []string, kubeconfigPath string) error
- func ApplyCRDs(ctx context.Context, cfg *config.Config) error
- func ApplyClusterRoleBindings(ctx context.Context, rbacs []string, kubeconfigPath string) error
- func ApplyClusterRoles(ctx context.Context, rbacs []string, kubeconfigPath string) error
- func ApplyConfigMapWithData(ctx context.Context, cmPath string, data map[string]string, ...) error
- func ApplyConfigMaps(ctx context.Context, cores []string, render RenderFunc, params RenderParams, ...) error
- func ApplyDaemonSets(ctx context.Context, apps []string, render RenderFunc, params RenderParams, ...) error
- func ApplyDeployments(ctx context.Context, dps []string, render RenderFunc, params RenderParams, ...) error
- func ApplyGeneric(ctx context.Context, resources []string, render RenderFuncV2, ...) error
- func ApplyNamespaces(ctx context.Context, cores []string, kubeconfigPath string) error
- func ApplyPriorityClasses(ctx context.Context, pcs []string, kubeconfigPath string) error
- func ApplyRoleBindings(ctx context.Context, rbacs []string, kubeconfigPath string) error
- func ApplyRoles(ctx context.Context, rbacs []string, kubeconfigPath string) error
- func ApplySCCs(ctx context.Context, sccs []string, render RenderFunc, params RenderParams, ...) error
- func ApplySecretWithData(ctx context.Context, secretPath string, data map[string][]byte, ...) error
- func ApplyServiceAccounts(ctx context.Context, cores []string, kubeconfigPath string) error
- func ApplyServices(ctx context.Context, cores []string, render RenderFunc, params RenderParams, ...) error
- func ApplyStorageClasses(ctx context.Context, scs []string, render RenderFunc, params RenderParams, ...) error
- func ApplyValidatingWebhookConfiguration(ctx context.Context, admissionRegistrations []string, kubeconfigPath string) error
- func ApplyVolumeSnapshotClass(ctx context.Context, kubeconfigPath string, vcs []string, render RenderFunc, ...) error
- func DeleteClusterRoleBindings(ctx context.Context, rbacs []string, kubeconfigPath string) error
- func DeleteClusterRoles(ctx context.Context, rbacs []string, kubeconfigPath string) error
- func DeleteGeneric(ctx context.Context, objects []runtime.Object, kubeconfigPath string) error
- func DeleteNamespaces(ctx context.Context, cores []string, kubeconfigPath string) error
- func WaitForCrdsEstablished(ctx context.Context, cfg *config.Config) error
- type ModifyOnExists
- type RenderFunc
- type RenderFuncV2
- type RenderParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyClusterRoles ¶
func ApplyConfigMapWithData ¶
func ApplyConfigMaps ¶
func ApplyConfigMaps(ctx context.Context, cores []string, render RenderFunc, params RenderParams, kubeconfigPath string) error
func ApplyDaemonSets ¶
func ApplyDaemonSets(ctx context.Context, apps []string, render RenderFunc, params RenderParams, kubeconfigPath string) error
func ApplyDeployments ¶
func ApplyDeployments(ctx context.Context, dps []string, render RenderFunc, params RenderParams, kubeconfigPath string) error
func ApplyGeneric ¶
func ApplyGeneric( ctx context.Context, resources []string, render RenderFuncV2, params RenderParams, modify ModifyOnExists, kubeconfigPath string, ) error
func ApplyNamespaces ¶
func ApplyPriorityClasses ¶
func ApplyRoleBindings ¶
func ApplySCCs ¶
func ApplySCCs(ctx context.Context, sccs []string, render RenderFunc, params RenderParams, kubeconfigPath string) error
func ApplySecretWithData ¶
func ApplyServiceAccounts ¶
func ApplyServices ¶
func ApplyServices(ctx context.Context, cores []string, render RenderFunc, params RenderParams, kubeconfigPath string) error
func ApplyStorageClasses ¶
func ApplyStorageClasses(ctx context.Context, scs []string, render RenderFunc, params RenderParams, kubeconfigPath string) error
func ApplyVolumeSnapshotClass ¶
func ApplyVolumeSnapshotClass(ctx context.Context, kubeconfigPath string, vcs []string, render RenderFunc, params RenderParams) error
func DeleteClusterRoles ¶
func DeleteGeneric ¶
func DeleteNamespaces ¶
Types ¶
type ModifyOnExists ¶
type ModifyOnExists func(modified *bool, existing, required *unstructured.Unstructured)
ModifyOnExists is a function that modifies the existing object based on the required object. The first argument is a pointer to a boolean that should be set to true if the object was modified. i.e. `*modified = true` The second argument is a pointer to the existing object on the cluster. The third argument is a pointer to the required object from the template. If Not set, the object will only have its metadata fields updated. If set, the object will be modified based on the function.
type RenderFunc ¶
type RenderFunc func([]byte, RenderParams) ([]byte, error)
DEPRECATED: RenderFunc is deprecated and should not be used. TODO: Remove RenderFunc once all assets are migrated
type RenderFuncV2 ¶
RenderFuncV2 is a better version of RenderFunc, using io.Reader
func ToRenderFuncV2 ¶
func ToRenderFuncV2(f RenderFunc) RenderFuncV2
ToRenderFuncV2 converts RenderFunc to RenderFuncV2 by reading the data from io.Reader This is a bottleneck for stream processing, but it is necessary for the transition.
type RenderParams ¶
type RenderParams map[string]interface{}