Documentation
¶
Index ¶
Constants ¶
View Source
const (
ManagerConfigName = "fleet-manager"
AgentConfigName = "fleet-agent"
Key = "config"
DefaultNamespace = "fleet-system"
)
Variables ¶
View Source
var (
DefaultManagerImage = "rancher/fleet" + ":" + version.Version
DefaultAgentImage = "rancher/fleet-agent" + ":" + version.Version
)
Functions ¶
func Exists ¶
func Exists(_ context.Context, namespace, name string, configMaps corev1.ConfigMapClient) (bool, error)
func ToConfigMap ¶
func ToConfigMap(namespace, name string, cfg *Config) (*v1.ConfigMap, error)
Types ¶
type Config ¶
type Config struct {
AgentImage string `json:"agentImage,omitempty"`
ManageAgent *bool `json:"manageAgent,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func Lookup ¶
func Lookup(_ context.Context, namespace, name string, configMaps corev1.ConfigMapClient) (*Config, error)
func ReadConfig ¶
func ReadConfig(cm *v1.ConfigMap) (*Config, error)
Click to show internal directories.
Click to hide internal directories.