Documentation ¶
Index ¶
- func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
- type ChangeSet
- type ClientMaker
- type ClientMakerBase
- type NamespacedClientMaker
- type ResourceManager
- func (m *ResourceManager) ApplyLists(ctx context.Context, waitOptions *WaitOptions, objects ...runtime.Object) (*ChangeSet, error)
- func (m *ResourceManager) ApplyManifest(ctx context.Context, waitOptions *WaitOptions, r io.Reader) (*ChangeSet, error)
- func (m *ResourceManager) ToNormalizedList(objects ...runtime.Object) ([]*unstructured.Unstructured, error)
- type WaitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToUnstructured ¶
func ToUnstructured(obj runtime.Object) (*unstructured.Unstructured, error)
Types ¶
type ClientMaker ¶
type ClientMaker struct { *ClientMakerBase ResourceMetadataTemplate v1.ObjectMeta // contains filtered or unexported fields }
func NewClientMaker ¶
func NewClientMaker(config *rest.Config, logger klog.Logger) *ClientMaker
func (*ClientMaker) Cleanup ¶
func (m *ClientMaker) Cleanup(ctx context.Context)
func (*ClientMaker) NewNamespacedClientMaker ¶
func (m *ClientMaker) NewNamespacedClientMaker(ctx context.Context, meta *v1.ObjectMeta) (*NamespacedClientMaker, error)
type ClientMakerBase ¶
func (*ClientMakerBase) NewClientSet ¶
func (m *ClientMakerBase) NewClientSet() (clientgo.Interface, error)
func (*ClientMakerBase) NewControllerRuntimeClient ¶
func (m *ClientMakerBase) NewControllerRuntimeClient() (ctrlClient.Client, error)
func (*ClientMakerBase) NewResourceManager ¶
func (m *ClientMakerBase) NewResourceManager() (*ResourceManager, error)
type NamespacedClientMaker ¶
type NamespacedClientMaker struct { *ClientMakerBase Namespace string DefaultControllerRuntimeListOptions *ctrlClient.ListOptions ResourceMetadataTemplate v1.ObjectMeta Cleanup func(context.Context) }
type ResourceManager ¶
type ResourceManager struct { *ssa.ResourceManager // contains filtered or unexported fields }
func (*ResourceManager) ApplyLists ¶
func (m *ResourceManager) ApplyLists(ctx context.Context, waitOptions *WaitOptions, objects ...runtime.Object) (*ChangeSet, error)
func (*ResourceManager) ApplyManifest ¶
func (m *ResourceManager) ApplyManifest(ctx context.Context, waitOptions *WaitOptions, r io.Reader) (*ChangeSet, error)
func (*ResourceManager) ToNormalizedList ¶
func (m *ResourceManager) ToNormalizedList(objects ...runtime.Object) ([]*unstructured.Unstructured, error)
type WaitOptions ¶
type WaitOptions = ssa.WaitOptions
Click to show internal directories.
Click to hide internal directories.