Skip to content

Commit 1a41402

Browse files
qat init: make conf optional
1 parent e56e0e6 commit 1a41402

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

cmd/qat_plugin/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,11 @@ In addition to the default configuration, you can add device-specific configurat
136136
|:-------|:-----------------------|:-----------------|:--------|:------|
137137
| 4xxx, 401xx,402xx | [cfg_services](https://github.com/torvalds/linux/blob/42e66b1cc3a070671001f8a1e933a80818a192bf/Documentation/ABI/testing/sysfs-driver-qat) reports the configured services (crypto services or compression services) of the QAT device. | `ServicesEnabled=<value>` | compress:`dc`, crypto:`sym;asym` | Linux 6.0+ kernel is required. |
138138

139-
To create a provisioning config after customizing, run as follows:
139+
To create a provisioning `configMap`, run the following command before deploying initcontainer:
140140

141141
```bash
142142
$ kubectl create configmap --namespace=inteldeviceplugins-system qat-config --from-file=deployments/qat_plugin/overlays/qat_initcontainer/qat.conf
143143
```
144-
> **Note**: When deploying the overlay qat_initcontainer, such a manual creation is not necessary since ConfigMap is generated automatically. Just set the values in the config file and deploy the overlay.
145144

146145
When using the operator for deploying the plugin with provisioning config, use `provisioningConfig` field for the name of the ConfigMap, then the config is passed to initcontainer through the volume mount.
147146

deployments/qat_plugin/overlays/qat_initcontainer/kustomization.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ bases:
22
- ../../base
33
patchesStrategicMerge:
44
- qat_initcontainer.yaml
5-
configMapGenerator:
6-
- name: qat-config
7-
files:
8-
- qat.conf

deployments/qat_plugin/overlays/qat_initcontainer/qat.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

deployments/qat_plugin/overlays/qat_initcontainer/qat_initcontainer.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ spec:
2828
- name: qat-config
2929
configMap:
3030
name: qat-config
31+
optional: true
3132
defaultMode: 0440

0 commit comments

Comments
 (0)