federate

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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 CreateResources(cmdOut io.Writer, hostConfig *rest.Config, artifactsList []*FederateArtifacts, namespace string, enableType, dryRun bool) error

func FederatedResourceFromTargetResource

func FederatedResourceFromTargetResource(typeConfig typeconfig.Interface, resource *unstructured.Unstructured) (*unstructured.Unstructured, error)

func NewCmdFederateResource

func NewCmdFederateResource(cmdOut io.Writer, config util.FedConfig) *cobra.Command

NewCmdFederateResource defines the `federate` command that federates a Kubernetes resource of the given kubernetes type.

func RemoveUnwantedFields

func RemoveUnwantedFields(resource *unstructured.Unstructured)

func SetBasicMetaFields

func SetBasicMetaFields(resource *unstructured.Unstructured, apiResource metav1.APIResource, name, namespace, generateName string)

Types

type FederateArtifacts

type FederateArtifacts struct {
	// contains filtered or unexported fields
}

func GetContainedArtifactsList

func GetContainedArtifactsList(hostConfig *rest.Config, containerNamespace, federationNamespace, skipAPIResourceNames string, enableType, outputYAML bool) ([]*FederateArtifacts, error)

func GetFederateArtifacts

func GetFederateArtifacts(hostConfig *rest.Config, typeName, federationNamespace string, qualifiedName ctlutil.QualifiedName, enableType, outputYAML bool) (*FederateArtifacts, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL