Documentation ¶
Index ¶
- Constants
- func FetchBundleResource[C clusterType](path string) ([]C, error)
- func WatchClusterTypes() []operands.WatchType
- type CommonInstancetypes
- func (c *CommonInstancetypes) Cleanup(request *common.Request) ([]common.CleanupResult, error)
- func (c *CommonInstancetypes) FetchResourcesFromURL(URL string) ([]instancetypev1alpha2.VirtualMachineClusterInstancetype, ...)
- func (c *CommonInstancetypes) Name() string
- func (c *CommonInstancetypes) Reconcile(request *common.Request) ([]common.ReconcileResult, error)
- func (c *CommonInstancetypes) WatchClusterTypes() []operands.WatchType
- func (c *CommonInstancetypes) WatchTypes() []operands.WatchType
- type MockResMap
- func (m *MockResMap) AbsorbAll(resmap.ResMap) error
- func (m *MockResMap) AddOriginAnnotation(origin *resource.Origin) error
- func (m *MockResMap) AddTransformerAnnotation(origin *resource.Origin) error
- func (m *MockResMap) AllIds() []resid.ResId
- func (m *MockResMap) AnnotateAll(key string, value string) error
- func (m *MockResMap) Append(*resource.Resource) error
- func (m *MockResMap) AppendAll(resmap.ResMap) error
- func (m *MockResMap) ApplyFilter(f kio.Filter) error
- func (m *MockResMap) ApplySmPatch(selectedSet *resource.IdSet, patch *resource.Resource) error
- func (m *MockResMap) AsYaml() ([]byte, error)
- func (m *MockResMap) Clear()
- func (m *MockResMap) ClusterScoped() []*resource.Resource
- func (m *MockResMap) DeAnchor() error
- func (m *MockResMap) Debug(title string)
- func (m *MockResMap) DeepCopy() resmap.ResMap
- func (m *MockResMap) DropEmpties()
- func (m *MockResMap) ErrorIfNotEqualLists(resmap.ResMap) error
- func (m *MockResMap) ErrorIfNotEqualSets(resmap.ResMap) error
- func (m *MockResMap) GetByCurrentId(resid.ResId) (*resource.Resource, error)
- func (m *MockResMap) GetById(resid.ResId) (*resource.Resource, error)
- func (m *MockResMap) GetByIndex(int) *resource.Resource
- func (m *MockResMap) GetIndexOfCurrentId(id resid.ResId) (int, error)
- func (m *MockResMap) GetMatchingResourcesByAnyId(matches resmap.IdMatcher) []*resource.Resource
- func (m *MockResMap) GetMatchingResourcesByCurrentId(matches resmap.IdMatcher) []*resource.Resource
- func (m *MockResMap) GroupedByCurrentNamespace() map[string][]*resource.Resource
- func (m *MockResMap) GroupedByOriginalNamespace() map[string][]*resource.Resource
- func (m *MockResMap) Remove(resid.ResId) error
- func (m *MockResMap) RemoveBuildAnnotations()
- func (m *MockResMap) RemoveOriginAnnotations() error
- func (m *MockResMap) RemoveTransformerAnnotations() error
- func (m *MockResMap) Replace(*resource.Resource) (int, error)
- func (m *MockResMap) Resources() []*resource.Resource
- func (m *MockResMap) Select(types.Selector) ([]*resource.Resource, error)
- func (m *MockResMap) ShallowCopy() resmap.ResMap
- func (m *MockResMap) Size() int
- func (m *MockResMap) SubsetThatCouldBeReferencedByResource(*resource.Resource) (resmap.ResMap, error)
- func (m *MockResMap) ToRNodeSlice() []*yaml.RNode
Constants ¶
View Source
const ( BundleDir = "data/common-instancetypes-bundle/" ClusterInstancetypesBundle = "common-clusterinstancetypes-bundle.yaml" ClusterPreferencesBundle = "common-clusterpreferences-bundle.yaml" )
Variables ¶
This section is empty.
Functions ¶
func FetchBundleResource ¶
func WatchClusterTypes ¶
Types ¶
type CommonInstancetypes ¶
type CommonInstancetypes struct { KustomizeRunFunc func(filesys.FileSystem, string) (resmap.ResMap, error) // contains filtered or unexported fields }
func New ¶
func New(virtualMachineClusterInstancetypeBundlePath, virtualMachineClusterPreferenceBundlePath string) *CommonInstancetypes
func (*CommonInstancetypes) Cleanup ¶
func (c *CommonInstancetypes) Cleanup(request *common.Request) ([]common.CleanupResult, error)
func (*CommonInstancetypes) FetchResourcesFromURL ¶
func (c *CommonInstancetypes) FetchResourcesFromURL(URL string) ([]instancetypev1alpha2.VirtualMachineClusterInstancetype, []instancetypev1alpha2.VirtualMachineClusterPreference, error)
func (*CommonInstancetypes) Name ¶
func (c *CommonInstancetypes) Name() string
func (*CommonInstancetypes) Reconcile ¶
func (c *CommonInstancetypes) Reconcile(request *common.Request) ([]common.ReconcileResult, error)
func (*CommonInstancetypes) WatchClusterTypes ¶
func (c *CommonInstancetypes) WatchClusterTypes() []operands.WatchType
func (*CommonInstancetypes) WatchTypes ¶
func (c *CommonInstancetypes) WatchTypes() []operands.WatchType
type MockResMap ¶
type MockResMap struct {
// contains filtered or unexported fields
}
func (*MockResMap) AddOriginAnnotation ¶
func (m *MockResMap) AddOriginAnnotation(origin *resource.Origin) error
func (*MockResMap) AddTransformerAnnotation ¶
func (m *MockResMap) AddTransformerAnnotation(origin *resource.Origin) error
func (*MockResMap) AllIds ¶
func (m *MockResMap) AllIds() []resid.ResId
func (*MockResMap) AnnotateAll ¶
func (m *MockResMap) AnnotateAll(key string, value string) error
func (*MockResMap) ApplyFilter ¶
func (m *MockResMap) ApplyFilter(f kio.Filter) error
func (*MockResMap) ApplySmPatch ¶
func (*MockResMap) AsYaml ¶
func (m *MockResMap) AsYaml() ([]byte, error)
func (*MockResMap) Clear ¶
func (m *MockResMap) Clear()
func (*MockResMap) ClusterScoped ¶
func (m *MockResMap) ClusterScoped() []*resource.Resource
func (*MockResMap) DeAnchor ¶
func (m *MockResMap) DeAnchor() error
func (*MockResMap) Debug ¶
func (m *MockResMap) Debug(title string)
func (*MockResMap) DeepCopy ¶
func (m *MockResMap) DeepCopy() resmap.ResMap
func (*MockResMap) DropEmpties ¶
func (m *MockResMap) DropEmpties()
func (*MockResMap) ErrorIfNotEqualLists ¶
func (m *MockResMap) ErrorIfNotEqualLists(resmap.ResMap) error
func (*MockResMap) ErrorIfNotEqualSets ¶
func (m *MockResMap) ErrorIfNotEqualSets(resmap.ResMap) error
func (*MockResMap) GetByCurrentId ¶
func (*MockResMap) GetByIndex ¶
func (m *MockResMap) GetByIndex(int) *resource.Resource
func (*MockResMap) GetIndexOfCurrentId ¶
func (m *MockResMap) GetIndexOfCurrentId(id resid.ResId) (int, error)
func (*MockResMap) GetMatchingResourcesByAnyId ¶
func (m *MockResMap) GetMatchingResourcesByAnyId(matches resmap.IdMatcher) []*resource.Resource
func (*MockResMap) GetMatchingResourcesByCurrentId ¶
func (m *MockResMap) GetMatchingResourcesByCurrentId(matches resmap.IdMatcher) []*resource.Resource
func (*MockResMap) GroupedByCurrentNamespace ¶
func (m *MockResMap) GroupedByCurrentNamespace() map[string][]*resource.Resource
func (*MockResMap) GroupedByOriginalNamespace ¶
func (m *MockResMap) GroupedByOriginalNamespace() map[string][]*resource.Resource
func (*MockResMap) RemoveBuildAnnotations ¶
func (m *MockResMap) RemoveBuildAnnotations()
func (*MockResMap) RemoveOriginAnnotations ¶
func (m *MockResMap) RemoveOriginAnnotations() error
func (*MockResMap) RemoveTransformerAnnotations ¶
func (m *MockResMap) RemoveTransformerAnnotations() error
func (*MockResMap) Resources ¶
func (m *MockResMap) Resources() []*resource.Resource
func (*MockResMap) ShallowCopy ¶
func (m *MockResMap) ShallowCopy() resmap.ResMap
func (*MockResMap) Size ¶
func (m *MockResMap) Size() int
func (*MockResMap) SubsetThatCouldBeReferencedByResource ¶
func (*MockResMap) ToRNodeSlice ¶
func (m *MockResMap) ToRNodeSlice() []*yaml.RNode
Click to show internal directories.
Click to hide internal directories.