Documentation ¶
Index ¶
- func BuildCustomizedManifests(filePath, fsPath string, resourceFS embed.FS, scheme *runtime.Scheme, ...) ([][]byte, error)
- func BuildCustomizedObjects(filePath, fsPath string, resourceFS embed.FS, scheme *runtime.Scheme, ...) ([]client.Object, error)
- func ConvertRawResourcesToObjects(scheme *runtime.Scheme, rawResources [][]byte) ([]client.Object, error)
- func ConvertYamlToObjects(scheme *runtime.Scheme, objYamls []byte) ([]client.Object, error)
- func ConvertYamlToObjectsWithOverride(scheme *runtime.Scheme, originalFiles [][]byte, overrideYamls []byte) ([][]byte, []client.Object, error)
- func EnsureNamespace(ctx context.Context, kubeClient client.Client, name string) error
- func EnsureObject(ctx context.Context, kubeClient client.Client, obj client.Object, ...) error
- func GetObjectIdentifier(n *kyaml.RNode) string
- func GetScheme() *runtime.Scheme
- type ConversionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCustomizedObjects ¶
func ConvertYamlToObjects ¶
func ConvertYamlToObjectsWithOverride ¶
func ConvertYamlToObjectsWithOverride(scheme *runtime.Scheme, originalFiles [][]byte, overrideYamls []byte) ([][]byte, []client.Object, error)
replace k8s objects in given YAML doc with override objects. returns built yaml file and objects
func EnsureNamespace ¶
func EnsureObject ¶
func GetObjectIdentifier ¶
Types ¶
type ConversionError ¶
type ConversionError struct {
// contains filtered or unexported fields
}
func (*ConversionError) Error ¶
func (e *ConversionError) Error() string
Click to show internal directories.
Click to hide internal directories.