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 BuildCustomizedManifests ¶ added in v0.4.0
func BuildCustomizedObjects ¶ added in v0.4.0
func ConvertYamlToObjects ¶
func ConvertYamlToObjectsWithOverride ¶ added in v0.4.0
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 ¶ added in v0.6.0
func EnsureObject ¶
func GetObjectIdentifier ¶ added in v0.4.0
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.