# cdi

KubeVirt Containerized Data Importer: the cdi-operator and a CDI resource; CDI imports disk images into PVCs

This page is generated from [`kix/packages/experimental/cdi`](https://github.com/kix-run/kix/tree/main/kix/packages/experimental/cdi).

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.cdi` |
| Default software version | `1.66.1` |
| Default aliases | `cdi` |

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `priorityClass` | Optional |

## Options

### `extraSpec`

Fields deep-merged into the CDI resource's spec, such as `config.featureGates`, `cloneStrategyOverride`, `workload`, or `infra.nodeSelector`. The package refuses `infra.apiServerReplicas`, `infra.deploymentReplicas`, and `infra.uploadProxyReplicas`, which follow the instance's availability, `imagePullPolicy`, which is image.pullPolicy, and, when the instance has a `priorityClass` dependency, `priorityClass`.

- **Type:** `attribute set of anything`
- **Default:** `{ }`

### `image`

Image of cdi-operator. Its major.minor must match the vendored CRD and roles. Each operand image defaults to this repository's registry and path with its own name (quay.io/kubevirt/\<name>) and to this tag, and every operand uses this image's pullPolicy.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:470b2997b87c152b2573cdb4a3feb2a7925f60602e16c052de94e8d765b97357";
    pullPolicy = "IfNotPresent";
    repository = "quay.io/kubevirt/cdi-operator";
    tag = "v1.66.1";
  }
  ```

### `image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-operator"`

### `image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v1.66.1"`

### `operandImages.cdi-apiserver`

Image cdi-operator runs as cdi-apiserver (APISERVER_IMAGE). Listed in out.extraImages. Its repository follows image.repository and its tag image.tag; the CDI resource's imagePullPolicy applies, so pullPolicy must stay null.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:98b71040e0e8de9397b57b4998641d4d3ea248fc300253b23085838990c4d241";
    pullPolicy = null;
    repository = "quay.io/kubevirt/cdi-apiserver";
    tag = config.image.tag;
  }
  ```

### `operandImages.cdi-apiserver.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `operandImages.cdi-apiserver.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-apiserver.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-apiserver.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-apiserver.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-apiserver"`

### `operandImages.cdi-apiserver.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-apiserver.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-apiserver.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.cdi-cloner`

Image cdi-operator runs as cdi-cloner (CLONER_IMAGE). Listed in out.extraImages. Its repository follows image.repository and its tag image.tag; the CDI resource's imagePullPolicy applies, so pullPolicy must stay null.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:febbe8b265bb6fcf7ab743b780069fbae4a0531119933026de59545ad1bfc7a3";
    pullPolicy = null;
    repository = "quay.io/kubevirt/cdi-cloner";
    tag = config.image.tag;
  }
  ```

### `operandImages.cdi-cloner.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `operandImages.cdi-cloner.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-cloner.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-cloner.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-cloner.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-cloner"`

### `operandImages.cdi-cloner.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-cloner.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-cloner.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.cdi-controller`

Image cdi-operator runs as cdi-controller (CONTROLLER_IMAGE). Listed in out.extraImages. Its repository follows image.repository and its tag image.tag; the CDI resource's imagePullPolicy applies, so pullPolicy must stay null.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:0cbf467d04febc5d63b7682524e87be7d775b488cb8b5963706d2ebc3465a72f";
    pullPolicy = null;
    repository = "quay.io/kubevirt/cdi-controller";
    tag = config.image.tag;
  }
  ```

### `operandImages.cdi-controller.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `operandImages.cdi-controller.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-controller.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-controller.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-controller.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-controller"`

### `operandImages.cdi-controller.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-controller.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-controller.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.cdi-importer`

Image cdi-operator runs as cdi-importer (IMPORTER_IMAGE, OVIRT_POPULATOR_IMAGE). Listed in out.extraImages. Its repository follows image.repository and its tag image.tag; the CDI resource's imagePullPolicy applies, so pullPolicy must stay null.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:e22b63872cd04da43c62ad8ebb73cac46958b6e759fcc347752ec2ace1df75f4";
    pullPolicy = null;
    repository = "quay.io/kubevirt/cdi-importer";
    tag = config.image.tag;
  }
  ```

### `operandImages.cdi-importer.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `operandImages.cdi-importer.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-importer.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-importer.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-importer.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-importer"`

### `operandImages.cdi-importer.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-importer.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-importer.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.cdi-uploadproxy`

Image cdi-operator runs as cdi-uploadproxy (UPLOAD_PROXY_IMAGE). Listed in out.extraImages. Its repository follows image.repository and its tag image.tag; the CDI resource's imagePullPolicy applies, so pullPolicy must stay null.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:f2493c0b33140167135110561ff415b8344f33dd53e20b9c8fbdb288e43326c9";
    pullPolicy = null;
    repository = "quay.io/kubevirt/cdi-uploadproxy";
    tag = config.image.tag;
  }
  ```

### `operandImages.cdi-uploadproxy.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `operandImages.cdi-uploadproxy.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadproxy.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadproxy.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadproxy.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-uploadproxy"`

### `operandImages.cdi-uploadproxy.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadproxy.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadproxy.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `operandImages.cdi-uploadserver`

Image cdi-operator runs as cdi-uploadserver (UPLOAD_SERVER_IMAGE). Listed in out.extraImages. Its repository follows image.repository and its tag image.tag; the CDI resource's imagePullPolicy applies, so pullPolicy must stay null.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:d3a6b735efcc914a0c9679fa8f64ab3dda764f7997d53bcafa6e2944f123420a";
    pullPolicy = null;
    repository = "quay.io/kubevirt/cdi-uploadserver";
    tag = config.image.tag;
  }
  ```

### `operandImages.cdi-uploadserver.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `operandImages.cdi-uploadserver.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadserver.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadserver.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadserver.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"quay.io/kubevirt/cdi-uploadserver"`

### `operandImages.cdi-uploadserver.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadserver.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `operandImages.cdi-uploadserver.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `config.image.tag`

### `resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "500m";
      memory = "512Mi";
    };
    requests = {
      cpu = "100m";
      memory = "150Mi";
    };
  }
  ```

### `resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"500m"`

### `resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"512Mi"`

### `resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"100m"`

### `resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"150Mi"`