Documentation ¶
Index ¶
- Constants
- Variables
- func Exists(_ context.Context, namespace, name string, configMaps corev1.ConfigMapClient) (bool, error)
- func OnChange(ctx context.Context, f func(*Config) error)
- func Set(cfg *Config) error
- func ToConfigMap(namespace, name string, cfg *Config) (*v1.ConfigMap, error)
- type Bootstrap
- type Config
Constants ¶
View Source
const ( ManagerConfigName = "fleet-controller" AgentConfigName = "fleet-agent" AgentBootstrapConfigName = "fleet-agent-bootstrap" Key = "config" DefaultNamespace = "cattle-fleet-system" )
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { AgentImage string `json:"agentImage,omitempty"` AgentImagePullPolicy string `json:"agentImagePullPolicy,omitempty"` AgentCheckinInternal metav1.Duration `json:"agentCheckinInternal,omitempty"` ManageAgent *bool `json:"manageAgent,omitempty"` Labels map[string]string `json:"labels,omitempty"` ClientID string `json:"clientID,omitempty"` APIServerURL string `json:"apiServerURL,omitempty"` APIServerCA []byte `json:"apiServerCA,omitempty"` Bootstrap Bootstrap `json:"bootstrap,omitempty"` IgnoreClusterRegistrationLabels bool `json:"ignoreClusterRegistrationLabels,omitempty"` }
func DefaultConfig ¶
func DefaultConfig() *Config
Click to show internal directories.
Click to hide internal directories.