Documentation
¶
Index ¶
- Variables
- func GenerateYamlFromFilePath(path string) ([]byte, error)
- func GenerateYamlFromUrl(url string) ([]byte, error)
- func ParseAndProcessK8sObjects(ctx vdocontext.VDOContext, c client.Client, data []byte, namespace string, ...) (appliedSpec bool, err error)
- func ParseMatrixYaml(config string) (models.CompatMatrix, error)
- type Action
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ApplyYamlFunc = applyYamlSpec
)
Functions ¶
func GenerateYamlFromUrl ¶
func ParseAndProcessK8sObjects ¶
func ParseAndProcessK8sObjects(ctx vdocontext.VDOContext, c client.Client, data []byte, namespace string, action Action) (appliedSpec bool, err error)
ParseAndProcessK8sObjects executes ApplyYamlFunc for each object in the provided YAML. If an error is returned then no further objects are processed. The data may be a single YAML document or multidoc YAML. When a non-empty namespace is provided then all objects are assigned the the namespace prior to any other actions being performed with or to the object.
func ParseMatrixYaml ¶
func ParseMatrixYaml(config string) (models.CompatMatrix, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.