You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investigating the following issue: kubernetes/kubernetes#125526 I found an issue with a command under https://github.com/kubernetes-sigs/security-profiles-operator/blob/main/installation-usage.md#create-an-apparmor-profile
This command: kubectl -n security-profiles-operator patch spod spod --type=merge -p '{"spec":{"enableAppArmor":"true"}}' should produce this output securityprofilesoperatordaemon.security-profiles-operator.x-k8s.io/spod patched. But it produces this output instead The SecurityProfilesOperatorDaemon "spod" is invalid: spec.enableAppArmor: Invalid value: "string": spec.enableAppArmor in body must be of type boolean: "string"
Solution:
replace the command with this command instead: kubectl -n security-profiles-operator patch spod spod --type=merge -p '{"spec":{"enableAppArmor":true}}'
Running this resolves the issue and gives the expected output.
The text was updated successfully, but these errors were encountered:
The docs interpret the bool as string which leads into a wrong command.
Now it's fixed by omitting the `"`.
Fixeskubernetes-sigs#2321
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
What happened:
While investigating the following issue: kubernetes/kubernetes#125526 I found an issue with a command under https://github.com/kubernetes-sigs/security-profiles-operator/blob/main/installation-usage.md#create-an-apparmor-profile
This command:
kubectl -n security-profiles-operator patch spod spod --type=merge -p '{"spec":{"enableAppArmor":"true"}}'
should produce this outputsecurityprofilesoperatordaemon.security-profiles-operator.x-k8s.io/spod patched
. But it produces this output insteadThe SecurityProfilesOperatorDaemon "spod" is invalid: spec.enableAppArmor: Invalid value: "string": spec.enableAppArmor in body must be of type boolean: "string"
Solution:
replace the command with this command instead:
kubectl -n security-profiles-operator patch spod spod --type=merge -p '{"spec":{"enableAppArmor":true}}'
Running this resolves the issue and gives the expected output.
The text was updated successfully, but these errors were encountered: