Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigLabels ¶
func AddConfigLabels(c *api.Config, labels labels.Set) errs.ValidationErrorList
AddConfigLabels adds new label(s) to all resources defined in the given Config.
func AddObjectLabels ¶
func AddObjectLabels(obj runtime.Object, labels labels.Set) error
AddObjectLabels adds new label(s) to a single runtime.Object
func DecodeDataToObject ¶
func DecodeDataToObject(data []byte) (obj runtime.Object, mapping *meta.RESTMapping, err error)
DecodeDataToObject decodes the JSON/YAML content into the runtime Object using the RESTMapper interface. The RESTMapper mappings are returned for the future encoding.
Types ¶
type ApplyResult ¶
type ApplyResult struct {
Errors errs.ValidationErrorList
Message string
}
ApplyResult holds the response from the REST server and potential errors
func Apply ¶
func Apply(namespace string, data []byte, clientFunc func(*kmeta.RESTMapping) (*resource.Helper, error)) ([]ApplyResult, error)
Apply creates and manages resources defined in the Config. The create process won't stop on error, but it will finish the job and then return error and for each item in the config an error and status message string.
Example ¶
Output:
Click to show internal directories.
Click to hide internal directories.