Documentation
¶
Overview ¶
Package fluxcd reconciles the Flux git-ssh deploy keypair — a self-generated Secret (no ExternalSecret involved, since the key has no external source of truth) whose public half is registered as a deploy key on the Deployment's manifests repository. The keypair is stable for the lifetime of the Deployment CR and is never rotated automatically.
Index ¶
- type DeploymentFluxGitSSHSecretReconciler
- func (r *DeploymentFluxGitSSHSecretReconciler) Delete(ctx context.Context, deployment *deploymentResolution.ResolvedDeployment) error
- func (r *DeploymentFluxGitSSHSecretReconciler) PublicKey(ctx context.Context, deployment *deploymentResolution.ResolvedDeployment) (string, error)
- func (r *DeploymentFluxGitSSHSecretReconciler) Reconcile(ctx context.Context, deployment *deploymentResolution.ResolvedDeployment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentFluxGitSSHSecretReconciler ¶
DeploymentFluxGitSSHSecretReconciler self-generates and persists the Flux git-ssh deploy keypair for a Deployment's manifests repository. The keypair is stable for the CR's lifetime and never rotated automatically.
func NewDeploymentFluxGitSSHSecretReconciler ¶
func NewDeploymentFluxGitSSHSecretReconciler( c client.Client, log logr.Logger, ) *DeploymentFluxGitSSHSecretReconciler
NewDeploymentFluxGitSSHSecretReconciler constructs a DeploymentFluxGitSSHSecretReconciler.
func (*DeploymentFluxGitSSHSecretReconciler) Delete ¶
func (r *DeploymentFluxGitSSHSecretReconciler) Delete(ctx context.Context, deployment *deploymentResolution.ResolvedDeployment) error
Delete removes deployment's Flux deploy-key Secret, if it exists.
func (*DeploymentFluxGitSSHSecretReconciler) PublicKey ¶
func (r *DeploymentFluxGitSSHSecretReconciler) PublicKey(ctx context.Context, deployment *deploymentResolution.ResolvedDeployment) (string, error)
PublicKey returns the authorized_keys format public key from an existing secret. Used by ensureDeployKey to register the key on GitHub.
func (*DeploymentFluxGitSSHSecretReconciler) Reconcile ¶
func (r *DeploymentFluxGitSSHSecretReconciler) Reconcile(ctx context.Context, deployment *deploymentResolution.ResolvedDeployment) error
Reconcile ensures deployment's Flux deploy-key Secret exists, generating a new ed25519 keypair only if none is already present — existing keys are never rotated.