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 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)
- func SetBasicMetaFields(resource *unstructured.Unstructured, apiResource metav1.APIResource, ...)
- 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 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)
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 GetFederateArtifacts ¶
func GetFederateArtifacts(hostConfig *rest.Config, typeName, federationNamespace string, qualifiedName ctlutil.QualifiedName, enableType, outputYAML bool) (*FederateArtifacts, error)
Click to show internal directories.
Click to hide internal directories.