Skip to content

RegistryCache ​

The registrycaches.core.kyma-project.io CustomResourceDefinition (CRD) is a detailed description of the kind of data and the format used to track the installation state of the Registry Cache module on a Kyma runtime cluster. To get the up-to-date CRD and show the output in the yaml format, run this command:

bash
kubectl get crd registrycaches.core.kyma-project.io -o yaml

Overview ​

Kyma Lifecycle Manager (KLM) creates this resource automatically when you install the Registry Cache module on a Kyma runtime cluster. You do not create or delete this resource directly — the module lifecycle infrastructure manages it.

The RegistryCache custom resource (CR) tracks whether the Registry Cache admission webhook is healthy and the module is fully operational. The controller reconciles this resource and transitions it through a set of well-defined states.

Sample Custom Resource ​

This is a sample RegistryCache resource in the Ready state:

yaml
apiVersion: core.kyma-project.io/v1beta1
kind: RegistryCache
metadata:
  name: registry-cache
  namespace: kyma-system
  finalizers:
    - registry-cache.kyma-project.io/finalizer
status:
  state: Ready
  conditions:
    - type: Starting
      status: "True"
      reason: Ready
      message: Starting module
      observedGeneration: 1

Custom Resource Parameters ​

This table lists all the parameters of a RegistryCache resource together with their descriptions:

ParameterRequiredDescription
metadata.nameYesSpecifies the name of the CR.
metadata.namespaceYesThe namespace in which the CR is created.
specNoEmpty — the RegistryCache CR has no configurable spec fields. All configuration is done through RegistryCacheConfig resources.

Status Fields ​

FieldDescription
status.stateThe current state of the Registry Cache module. See State Lifecycle.
status.conditionsA list of Kubernetes standard conditions. The condition type Starting reports the health of the admission webhook server.

State Lifecycle ​

The controller transitions the RegistryCache CR through the following states:

StateDescription
(empty)Initial state — the resource has just been created and has not yet been processed.
ProcessingThe controller is checking whether the admission webhook is ready.
ReadyThe admission webhook is healthy and the module is fully operational.
ErrorThe admission webhook is unhealthy. The controller re-checks at the health interval (every 30 seconds).
DeletingA deletion timestamp was set on the resource; the controller is removing the finalizer.

The normal lifecycle is: (empty) → Processing → Ready.

If the webhook becomes unhealthy while in Ready, the state transitions to Error. The controller retries every 30 seconds and returns to Ready once the webhook is healthy again.

These are the resources related to this CR:

Custom resourceDescription
RegistryCacheConfigThe user-facing resource for configuring a caching layer for a specific upstream registry. See Registry Cache Module.

These components use this CR:

ComponentDescription
Registry Cache controllerReconciles RegistryCache CRs and drives status transitions.
Kyma Lifecycle Manager (KLM)KCP component that creates and deletes the RegistryCache CR as part of module installation and removal.