Documentation ¶
Index ¶
- func CreateResource(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference, ...) (*unstructured.Unstructured, error)
- func DeleteSourceClaim(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference) error
- func GetResource(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference) (*unstructured.Unstructured, bool, error)
- func MappingFor(rmapper meta.RESTMapper, resourceOrKindArg string) (*meta.RESTMapping, error)
- func NewDynamicClient(config *rest.Config) (dynamic.Interface, error)
- func NewRestMapper(kubeconfig *rest.Config) (meta.RESTMapper, error)
- func ResourceExists(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference) (bool, error)
- func UpdateCompositeWithNewClaim(ctx context.Context, client dynamic.Interface, xrRef *v1.ObjectReference, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResource ¶
func CreateResource(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference, u *unstructured.Unstructured) (*unstructured.Unstructured, error)
CreateResource creates a K8s resource using a dynamic Client, allowing us to create CRD types
func DeleteSourceClaim ¶
func DeleteSourceClaim(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference) error
DeleteSourceClaim removes references to the Composite before deleting
func GetResource ¶
func GetResource(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference) (*unstructured.Unstructured, bool, error)
Get Resource gets a resource. Returns false
func MappingFor ¶
func MappingFor(rmapper meta.RESTMapper, resourceOrKindArg string) (*meta.RESTMapping, error)
MappingFor returns the RESTMapping for the given resource or kind argument. Copied over from cli-runtime pkg/resource Builder, https://github.com/kubernetes/cli-runtime/blob/9a91d944dd43186c52e0162e12b151b0e460354a/pkg/resource/builder.go#L768
func NewRestMapper ¶
func NewRestMapper(kubeconfig *rest.Config) (meta.RESTMapper, error)
func ResourceExists ¶
func ResourceExists(ctx context.Context, client dynamic.Interface, ref *v1.ObjectReference) (bool, error)
Check if Resource Exists
func UpdateCompositeWithNewClaim ¶
func UpdateCompositeWithNewClaim(ctx context.Context, client dynamic.Interface, xrRef *v1.ObjectReference, xrcu *claim.Unstructured) error
UpdateCompositeWithNewClaim updates the Composite to refer to the new Claim
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.