Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 68 additions & 4 deletions internal/controller/annotations/annotations.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,80 @@
// Package annotations provides keys for Kubernetes annotations used to configure
// and modify the behavior of the operator and its managed resources.
//
// # Annotation: rhtas.redhat.com/pause-reconciliation
//
// [PausedReconciliation] pauses the reconciliation of any managed Kubernetes resource.
//
// Note: Use with caution, as paused resources will not receive updates from the operator.
//
// Options:
// - "true": Disables reconciliation by the operator.
// - "false": Enables reconciliation by the operator.
//
// Example usage:
//
// apiVersion: app/v1
// kind: Deployment
// metadata:
// name: example
// annotations:
// rhtas.redhat.com/pause-reconciliation: "true"
//
// # Annotation: rhtas.redhat.com/metrics
//
// [Metrics] controls whether analytic metrics are collected for installed services.
// This annotation applies only to the Securesign resource.
//
// Options:
// - "true": Enables metrics collection (default).
// - "false": Disables metrics collection.
//
// Example usage:
//
// apiVersion: rhtas.redhat.com/v1alpha1
// kind: Securesign
// metadata:
// name: example
// annotations:
// rhtas.redhat.com/metrics: "false"
//
// # Annotation: rhtas.redhat.com/trusted-ca
//
// [TrustedCA] specifies the name of a ConfigMap containing a custom CA bundle.
//
// If set on the Securesign resource, this annotation is automatically propagated
// to child resources. ([github.com/securesign/operator/api/v1alpha1.Securesign])
//
// Example usage:
//
// ---
// apiVersion: v1
// kind: ConfigMap
// metadata:
// name: custom-ca-bundle
// data:
// ca-bundle.crt: ...
// ---
// apiVersion: rhtas.redhat.com/v1alpha1
// kind: Securesign
// metadata:
// name: example
// annotations:
// rhtas.redhat.com/trusted-ca: "custom-ca-bundle"
// ---
package annotations

const (
// PausedReconciliation Annotation used to pause resource reconciliation
// PausedReconciliation defines the annotation key used to pause reconciliation for a resource.
PausedReconciliation = "rhtas.redhat.com/pause-reconciliation"

// Metrics Annotation is used to control the sending of analytic metrics of the installed services managed by the operator.
// Metrics defines the annotation key used to enable or disable metric collection by the operator.
Metrics = "rhtas.redhat.com/metrics"

// TrustedCA Annotation to specify name of ConfigMap with additional bundle of trusted CA
// TrustedCA defines the annotation key for specifying a custom CA bundle ConfigMap.
TrustedCA = "rhtas.redhat.com/trusted-ca"

// TreeId Annotation inform that resource is associated with specific Merkle Tree
// TreeId define the annotation key to document association of resource with specific Merkle Tree
TreeId = "rhtas.redhat.com/treeId"

TLS = "service.beta.openshift.io/serving-cert-secret-name"
Expand Down
Loading