Documentation
¶
Overview ¶
Package secret gets or creates service account secrets for cluster registration, and gets image pull secrets for agent deployments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAgentPullSecrets ¶ added in v0.16.0
func GetAgentPullSecrets(config *config.Config, cluster *fleet.Cluster) ([]corev1.LocalObjectReference, bool)
GetAgentPullSecrets determines where image pull secrets should be sourced from for agent deployments. It returns a set of references to those secrets, along with a boolean evaluating to `true` if those secrets must be propagated by Fleet to downstream clusters.
func GetServiceAccountTokenSecret ¶
func GetServiceAccountTokenSecret(sa *corev1.ServiceAccount, secretsController corecontrollers.SecretController) (*corev1.Secret, error)
GetServiceAccountTokenSecret gets or creates a secret for the service account. It waits 2 seconds for the data to be populated with a token.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.