index

package
v0.9.63 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package index registers the field indexes the operator controllers list Certificates by, so that a ClusterIssuer or a Service change maps to the Certificates it affects. Register once per manager, before the controllers start; the tests register the same indexes on the fake client with WithIndex.

if err := index.Register(ctx, mgr.GetFieldIndexer()); err != nil {
	return err
}
var certs v1alpha1.CertificateList
err := c.List(ctx, &certs, client.MatchingFields{index.CertificateIssuer: issuer.Name})

Index

Constants

View Source
const (
	// CertificateIssuer indexes Certificates by spec.issuerRef.name.
	CertificateIssuer = "spec.issuerRef.name"
	// CertificateServices indexes Certificates by every entry of
	// spec.kubernetesNames.services.
	CertificateServices = "spec.kubernetesNames.services"
)

Variables

This section is empty.

Functions

func CertificateIssuerValue

func CertificateIssuerValue(obj client.Object) []string

CertificateIssuerValue is the indexer of CertificateIssuer.

func CertificateServicesValue

func CertificateServicesValue(obj client.Object) []string

CertificateServicesValue is the indexer of CertificateServices.

func Register

func Register(ctx context.Context, indexer client.FieldIndexer) error

Register adds the indexes to the manager's cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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