Documentation
¶
Overview ¶
Package agent builds manifests for creating a managed fleet-agent. (fleetcontroller)
Index ¶
Constants ¶
View Source
const (
DefaultName = "fleet-agent"
)
Variables ¶
View Source
var (
DebugLevel = 0
)
Functions ¶
func AgentWithConfig ¶ added in v0.5.0
func AgentWithConfig(ctx context.Context, agentNamespace, controllerNamespace, agentScope string, cg *client.Getter, tokenName string, opts *Options) ([]runtime.Object, error)
AgentWithConfig writes the agent manifest to the given writer. It includes an updated agent token secret from the cluster. It finds or creates the agent config inside a configmap.
This is used when importing a cluster.
Types ¶
type ConfigOptions ¶ added in v0.5.0
type ManifestOptions ¶ added in v0.5.0
type ManifestOptions struct {
AgentEnvVars []corev1.EnvVar
AgentImage string // DefaultAgentImage = "rancher/fleet-agent" + ":" + version.Version
AgentImagePullPolicy string
AgentTolerations []corev1.Toleration
CheckinInterval string
Generation string
PrivateRepoURL string // PrivateRepoURL = registry.yourdomain.com:5000
SystemDefaultRegistry string
AgentAffinity *corev1.Affinity
AgentResources *corev1.ResourceRequirements
}
type Options ¶ added in v0.5.0
type Options struct {
ManifestOptions
ConfigOptions
CA []byte
Host string
NoCA bool // unused
}
Click to show internal directories.
Click to hide internal directories.