secret

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL