Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Name is the identifier of the resource.
Name = "clusterconfigmap"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { // Dependencies. GetClusterConfigFunc func(obj interface{}) (v1alpha1.ClusterGuestConfig, error) GetClusterObjectMetaFunc func(obj interface{}) (metav1.ObjectMeta, error) GetWorkerCountFunc func(obj interface{}) (int, error) GetWorkerMaxCPUCoresFunc func(obj interface{}) (maxCPUCores int, known bool, err error) GetWorkerMaxMemorySizeGBFunc func(obj interface{}) (maxMemorySizeGB float64, known bool, err error) K8sClient kubernetes.Interface Logger micrologger.Logger // Settings. CalicoAddress string CalicoPrefixLength string ClusterIPRange string Provider string }
Config represents the configuration used to create a new clusterConfigMap resource.
type StateGetter ¶
type StateGetter struct {
// contains filtered or unexported fields
}
Resource implements the clusterConfigMap resource.
func New ¶
func New(config Config) (*StateGetter, error)
New creates a new configured clusterConfigMap resource.
func (*StateGetter) GetCurrentState ¶
func (*StateGetter) GetDesiredState ¶
func (*StateGetter) Name ¶
func (r *StateGetter) Name() string
Click to show internal directories.
Click to hide internal directories.