fluxcd

package
v0.9.0 Latest Latest
Warning

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

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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentFluxGitSSHSecretReconciler

type DeploymentFluxGitSSHSecretReconciler struct {
	Client client.Client
	Log    logr.Logger
}

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

Delete removes deployment's Flux deploy-key Secret, if it exists.

func (*DeploymentFluxGitSSHSecretReconciler) PublicKey

PublicKey returns the authorized_keys format public key from an existing secret. Used by ensureDeployKey to register the key on GitHub.

func (*DeploymentFluxGitSSHSecretReconciler) Reconcile

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.

Jump to

Keyboard shortcuts

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