common_instancetypes

package
v0.18.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 FetchBundleResource[C clusterType](path string) ([]C, error)

func WatchClusterTypes

func WatchClusterTypes() []operands.WatchType

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) 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) AbsorbAll

func (m *MockResMap) AbsorbAll(resmap.ResMap) error

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) Append

func (m *MockResMap) Append(*resource.Resource) error

func (*MockResMap) AppendAll

func (m *MockResMap) AppendAll(resmap.ResMap) error

func (*MockResMap) ApplyFilter

func (m *MockResMap) ApplyFilter(f kio.Filter) error

func (*MockResMap) ApplySmPatch

func (m *MockResMap) ApplySmPatch(selectedSet *resource.IdSet, patch *resource.Resource) error

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 (m *MockResMap) GetByCurrentId(resid.ResId) (*resource.Resource, error)

func (*MockResMap) GetById

func (m *MockResMap) GetById(resid.ResId) (*resource.Resource, error)

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) Remove

func (m *MockResMap) Remove(resid.ResId) error

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) Replace

func (m *MockResMap) Replace(*resource.Resource) (int, error)

func (*MockResMap) Resources

func (m *MockResMap) Resources() []*resource.Resource

func (*MockResMap) Select

func (m *MockResMap) Select(types.Selector) ([]*resource.Resource, error)

func (*MockResMap) ShallowCopy

func (m *MockResMap) ShallowCopy() resmap.ResMap

func (*MockResMap) Size

func (m *MockResMap) Size() int

func (*MockResMap) SubsetThatCouldBeReferencedByResource

func (m *MockResMap) SubsetThatCouldBeReferencedByResource(*resource.Resource) (resmap.ResMap, error)

func (*MockResMap) ToRNodeSlice

func (m *MockResMap) ToRNodeSlice() []*yaml.RNode

Jump to

Keyboard shortcuts

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