Documentation ¶
Index ¶
- func CreateFederatedResource(hostConfig *rest.Config, typeConfig typeconfig.Interface, ...) error
- func CreateFederatedResources(hostConfig *rest.Config, typeConfig typeconfig.Interface, ...) error
- func CreateResources(cmdOut io.Writer, hostConfig *rest.Config, artifactsList []*FederateArtifacts, ...) error
- func DecodeUnstructuredFromFile(filename string) ([]*unstructured.Unstructured, error)
- func FederateResources(resources []*unstructured.Unstructured) ([]*unstructured.Unstructured, error)
- func FederatedResourceFromTargetResource(typeConfig typeconfig.Interface, resource *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func NewCmdFederateResource(cmdOut io.Writer, config util.FedConfig) *cobra.Command
- func RemoveUnwantedFields(resource *unstructured.Unstructured) error
- func SetBasicMetaFields(resource *unstructured.Unstructured, apiResource metav1.APIResource, ...)
- func WriteUnstructuredObjsToYaml(unstructuredObjs []*unstructured.Unstructured, w io.Writer) error
- type FederateArtifacts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFederatedResource ¶
func CreateFederatedResource(hostConfig *rest.Config, typeConfig typeconfig.Interface, federatedResource *unstructured.Unstructured, dryRun bool) error
func CreateFederatedResources ¶
func CreateFederatedResources(hostConfig *rest.Config, typeConfig typeconfig.Interface, federatedResources []*unstructured.Unstructured, dryRun bool) error
func CreateResources ¶
func DecodeUnstructuredFromFile ¶ added in v0.3.0
func DecodeUnstructuredFromFile(filename string) ([]*unstructured.Unstructured, error)
decodeUnstructuredFromFile reads a list of yamls into a slice of unstructured objects
func FederateResources ¶ added in v0.3.0
func FederateResources(resources []*unstructured.Unstructured) ([]*unstructured.Unstructured, error)
func FederatedResourceFromTargetResource ¶
func FederatedResourceFromTargetResource(typeConfig typeconfig.Interface, resource *unstructured.Unstructured) (*unstructured.Unstructured, error)
func NewCmdFederateResource ¶
NewCmdFederateResource defines the `federate` command that federates a Kubernetes resource of the given kubernetes type.
func RemoveUnwantedFields ¶
func RemoveUnwantedFields(resource *unstructured.Unstructured) error
func SetBasicMetaFields ¶
func SetBasicMetaFields(resource *unstructured.Unstructured, apiResource metav1.APIResource, name, namespace, generateName string)
func WriteUnstructuredObjsToYaml ¶ added in v0.3.0
func WriteUnstructuredObjsToYaml(unstructuredObjs []*unstructured.Unstructured, w io.Writer) error
Types ¶
type FederateArtifacts ¶
type FederateArtifacts struct {
// contains filtered or unexported fields
}
func GetFederateArtifacts ¶
func GetFederateArtifacts(hostConfig *rest.Config, typeName, kubefedNamespace string, qualifiedName ctlutil.QualifiedName, enableType, outputYAML bool) (*FederateArtifacts, error)
Click to show internal directories.
Click to hide internal directories.