Help us shape the future of Go! Take the 2026 Go Developer Survey

indexer

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const PodNodeName = "spec.nodeName"

PodNodeName is a constant for the spec.nodeName field selector in pods.

View Source
const ServiceNamespaceSelectors = "metadata.annotations.networking.resources.gardener.cloud/namespace-selectors"

ServiceNamespaceSelectors is a constant for the namespace-selectors annotation field index on Services.

Variables

View Source
var PodNodeNameIndexerFunc = func(obj client.Object) []string {
	pod, ok := obj.(*corev1.Pod)
	if !ok {
		return []string{""}
	}
	return []string{pod.Spec.NodeName}
}

PodNodeNameIndexerFunc extracts the .spec.nodeName field of a Node.

View Source
var ServiceNamespaceSelectorsIndexerFunc = func(obj client.Object) []string {
	service, ok := obj.(*corev1.Service)
	if !ok {
		return nil
	}
	if _, hasAnnotation := service.Annotations[resourcesv1alpha1.NetworkingNamespaceSelectors]; hasAnnotation {
		return []string{"true"}
	}
	return nil
}

ServiceNamespaceSelectorsIndexerFunc returns "true" if the Service has the namespace-selectors annotation.

Functions

func AddBackupBucketSeedName

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

AddBackupBucketSeedName adds an index for core.BackupBucketSeedName to the given indexer.

func AddBackupBucketShootRefName

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

AddBackupBucketShootRefName adds an index for core.BackupBucketShootRefName to the given indexer.

func AddBackupBucketShootRefNamespace

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

AddBackupBucketShootRefNamespace adds an index for core.BackupBucketShootRefNamespace to the given indexer.

func AddBackupEntryBucketName added in v1.60.0

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

AddBackupEntryBucketName adds an index for core.BackupEntryBucketName to the given indexer.

func AddBackupEntrySeedName added in v1.56.0

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

AddBackupEntrySeedName adds an index for core.BackupEntrySeedName to the given indexer.

func AddBackupEntryShootRefName

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

AddBackupEntryShootRefName adds an index for core.BackupEntryShootRefName to the given indexer.

func AddBackupEntryShootRefNamespace

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

AddBackupEntryShootRefNamespace adds an index for core.BackupEntryShootRefNamespace to the given indexer.

func AddBastionShootName

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

AddBastionShootName adds an index for operations.BastionShootName to the given indexer.

func AddControllerInstallationRegistrationRefName added in v1.56.0

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

AddControllerInstallationRegistrationRefName adds an index for core.ControllerInstallationRegistrationRefName to the given indexer.

func AddControllerInstallationSeedRefName

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

AddControllerInstallationSeedRefName adds an index for core.ControllerInstallationSeedRefName to the given indexer.

func AddControllerInstallationShootRefName

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

AddControllerInstallationShootRefName adds an index for core.ControllerInstallationShootRefName to the given indexer.

func AddControllerInstallationShootRefNamespace

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

AddControllerInstallationShootRefNamespace adds an index for core.ControllerInstallationShootRefNamespace to the given indexer.

func AddCredentialsBindingCredentialsRefKind

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

AddCredentialsBindingCredentialsRefKind adds an index for security.CredentialsBindingCredentialsRefKind to the given indexer.

func AddCredentialsBindingCredentialsRefName

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

AddCredentialsBindingCredentialsRefName adds an index for security.CredentialsBindingCredentialsRefName to the given indexer.

func AddCredentialsBindingCredentialsRefNamespace

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

AddCredentialsBindingCredentialsRefNamespace adds an index for security.CredentialsBindingCredentialsRefNamespace to the given indexer.

func AddInternalSecretType added in v1.73.0

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

AddInternalSecretType adds an index for core.InternalSecretType to the given indexer.

func AddManagedSeedShootName

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

AddManagedSeedShootName adds an index for seedmanagement.ManagedSeedShootName to the given indexer.

func AddNamespacedCloudProfileParentRefName added in v1.103.0

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

AddNamespacedCloudProfileParentRefName adds an index for core.NamespacedCloudProfileParentRefName to the given indexer.

func AddPodNodeName added in v1.65.0

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

AddPodNodeName adds an index for PodNodeName to the given indexer.

func AddProjectNamespace

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

AddProjectNamespace adds an index for core.ProjectNamespace to the given indexer.

func AddSecretBindingSecretRefName

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

AddSecretBindingSecretRefName adds an index for core.SecretBindingSecretRefName to the given indexer.

func AddSecretBindingSecretRefNamespace

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

AddSecretBindingSecretRefNamespace adds an index for core.SecretBindingSecretRefNamespace to the given indexer.

func AddServiceNamespaceSelectors

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

AddServiceNamespaceSelectors adds an index for ServiceNamespaceSelectors to the given indexer.

func AddShootAdmissionPluginKubeconfigSecretName

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

AddShootAdmissionPluginKubeconfigSecretName adds an index for core.ShootAdmissionPluginKubeconfigSecretName to the given indexer.

func AddShootAuditPolicyConfigMapName

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

AddShootAuditPolicyConfigMapName adds an index for core.ShootAuditPolicyConfigMapName to the given indexer.

func AddShootAuthenticationConfigMapName

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

AddShootAuthenticationConfigMapName adds an index for core.ShootAuthenticationConfigMapName to the given indexer.

func AddShootAuthorizationConfigMapName

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

AddShootAuthorizationConfigMapName adds an index for core.ShootAuthorizationConfigMapName to the given indexer.

func AddShootSeedName

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

AddShootSeedName adds an index for core.ShootSeedName to the given indexer.

func AddShootStatusSeedName added in v1.56.0

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

AddShootStatusSeedName adds an index for core.ShootStatusSeedName to the given indexer.

func AddShootStructuredAuthorizationKubeconfigSecretName

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

AddShootStructuredAuthorizationKubeconfigSecretName adds an index for core.ShootStructuredAuthorizationKubeconfigSecretName to the given indexer.

func BackupBucketSeedNameIndexerFunc added in v1.64.0

func BackupBucketSeedNameIndexerFunc(obj client.Object) []string

BackupBucketSeedNameIndexerFunc extracts the .spec.seedName field of a BackupBucket.

func BackupBucketShootRefNameIndexerFunc

func BackupBucketShootRefNameIndexerFunc(obj client.Object) []string

BackupBucketShootRefNameIndexerFunc extracts the .spec.shootRef.Name field of a BackupBucket.

func BackupBucketShootRefNamespaceIndexerFunc

func BackupBucketShootRefNamespaceIndexerFunc(obj client.Object) []string

BackupBucketShootRefNamespaceIndexerFunc extracts the .spec.shootRef.Namespace field of a BackupBucket.

func BackupEntryBucketNameIndexerFunc added in v1.75.0

func BackupEntryBucketNameIndexerFunc(obj client.Object) []string

BackupEntryBucketNameIndexerFunc extracts the .spec.bucketName field of a BackupEntry.

func BackupEntryShootRefNameIndexerFunc

func BackupEntryShootRefNameIndexerFunc(obj client.Object) []string

BackupEntryShootRefNameIndexerFunc extracts the .spec.shootRef.Name field of a BackupEntry.

func BackupEntryShootRefNamespaceIndexerFunc

func BackupEntryShootRefNamespaceIndexerFunc(obj client.Object) []string

BackupEntryShootRefNamespaceIndexerFunc extracts the .spec.shootRef.Namespace field of a BackupEntry.

func BastionShootNameIndexerFunc added in v1.64.0

func BastionShootNameIndexerFunc(obj client.Object) []string

BastionShootNameIndexerFunc extracts the .spec.shootRef.name field of a Bastion.

func ControllerInstallationRegistrationRefNameIndexerFunc added in v1.78.0

func ControllerInstallationRegistrationRefNameIndexerFunc(obj client.Object) []string

ControllerInstallationRegistrationRefNameIndexerFunc extracts the .spec.registrationRef.name field of a ControllerInstallation.

func ControllerInstallationSeedRefNameIndexerFunc added in v1.64.0

func ControllerInstallationSeedRefNameIndexerFunc(obj client.Object) []string

ControllerInstallationSeedRefNameIndexerFunc extracts the .spec.seedRef.name field of a ControllerInstallation.

func ControllerInstallationShootRefNameIndexerFunc

func ControllerInstallationShootRefNameIndexerFunc(obj client.Object) []string

ControllerInstallationShootRefNameIndexerFunc extracts the .spec.shootRef.name field of a ControllerInstallation.

func ControllerInstallationShootRefNamespaceIndexerFunc

func ControllerInstallationShootRefNamespaceIndexerFunc(obj client.Object) []string

ControllerInstallationShootRefNamespaceIndexerFunc extracts the .spec.shootRef.namespace field of a ControllerInstallation.

func CredentialsBindingCredentialsRefKindIndexerFunc

func CredentialsBindingCredentialsRefKindIndexerFunc(obj client.Object) []string

CredentialsBindingCredentialsRefKindIndexerFunc extracts the .spec.credentialsRef.kind field of a CredentialsBinding.

func CredentialsBindingCredentialsRefNameIndexerFunc

func CredentialsBindingCredentialsRefNameIndexerFunc(obj client.Object) []string

CredentialsBindingCredentialsRefNameIndexerFunc extracts the .spec.credentialsRef.name field of a CredentialsBinding.

func CredentialsBindingCredentialsRefNamespaceIndexerFunc

func CredentialsBindingCredentialsRefNamespaceIndexerFunc(obj client.Object) []string

CredentialsBindingCredentialsRefNamespaceIndexerFunc extracts the .spec.credentialsRef.namespace field of a CredentialsBinding.

func InternalSecretTypeIndexerFunc added in v1.73.0

func InternalSecretTypeIndexerFunc(obj client.Object) []string

InternalSecretTypeIndexerFunc extracts the .type field of an InternalSecret.

func ManagedSeedShootNameIndexerFunc added in v1.64.0

func ManagedSeedShootNameIndexerFunc(obj client.Object) []string

ManagedSeedShootNameIndexerFunc extracts the .spec.shoot.name field of a ManagedSeed.

func NamespacedCloudProfileParentRefNameIndexerFunc added in v1.103.0

func NamespacedCloudProfileParentRefNameIndexerFunc(obj client.Object) []string

NamespacedCloudProfileParentRefNameIndexerFunc extracts the .spec.parent.name field of a NamespacedCloudProfile.

func ProjectNamespaceIndexerFunc added in v1.64.0

func ProjectNamespaceIndexerFunc(obj client.Object) []string

ProjectNamespaceIndexerFunc extracts the .spec.namespace field of a Project.

func SecretBindingSecretRefNameIndexerFunc

func SecretBindingSecretRefNameIndexerFunc(obj client.Object) []string

SecretBindingSecretRefNameIndexerFunc extracts the .spec.secretRef.name field of a SecretBinding.

func SecretBindingSecretRefNamespaceIndexerFunc

func SecretBindingSecretRefNamespaceIndexerFunc(obj client.Object) []string

SecretBindingSecretRefNamespaceIndexerFunc extracts the .spec.secretRef.namespace field of a SecretBinding.

func ShootAdmissionPluginKubeconfigSecretNameIndexerFunc

func ShootAdmissionPluginKubeconfigSecretNameIndexerFunc(obj client.Object) []string

ShootAdmissionPluginKubeconfigSecretNameIndexerFunc extracts the kubeconfig Secret names referenced by the admission plugins of a Shoot.

func ShootAuditPolicyConfigMapNameIndexerFunc

func ShootAuditPolicyConfigMapNameIndexerFunc(obj client.Object) []string

ShootAuditPolicyConfigMapNameIndexerFunc extracts the audit policy ConfigMap name from a Shoot.

func ShootAuthenticationConfigMapNameIndexerFunc

func ShootAuthenticationConfigMapNameIndexerFunc(obj client.Object) []string

ShootAuthenticationConfigMapNameIndexerFunc extracts the authentication configuration ConfigMap name from a Shoot.

func ShootAuthorizationConfigMapNameIndexerFunc

func ShootAuthorizationConfigMapNameIndexerFunc(obj client.Object) []string

ShootAuthorizationConfigMapNameIndexerFunc extracts the authorization configuration ConfigMap name from a Shoot.

func ShootStructuredAuthorizationKubeconfigSecretNameIndexerFunc

func ShootStructuredAuthorizationKubeconfigSecretNameIndexerFunc(obj client.Object) []string

ShootStructuredAuthorizationKubeconfigSecretNameIndexerFunc extracts the kubeconfig Secret names referenced by the structured authorization configuration of a Shoot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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