redis-operator
redis-operator copied to clipboard
Installation error - unknown field "spec.podSecurityContext"
What version of redis operator are you using?
Using latest release
Does this issue reproduce with the latest release? Yes, I have been using this setup for months without any issues, but recently encountered this error.
What operating system and processor architecture are you using (kubectl version
)?
kubectl version
Output
$ kubectl version Client Version: v1.28.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.28.1
What did you do?
helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/
helm repo update
helm upgrade redis-operator ot-helm/redis-operator --install --namespace redis
helm test redis-operator --namespace redis
helm upgrade redis ot-helm/redis -f custom-values.yaml --install --namespace redis
What did you expect to see? I expected the commands to execute successfully without any errors, as they have in the past.
What did you see instead? I encountered the following error:
W1010 15:44:05.777051 4182932 warnings.go:70] unknown field "spec.podSecurityContext"
Error: conversion webhook for redis.redis.opstreelabs.in/v1beta1, Kind=Redis failed: Post "https://webhook-service.redis-operator.svc:443/convert?timeout=30s": service "webhook-service" not found
I have the same problem. Got the helm chart working with release 0.15.3 (someting breaks with 0.15.7).
THe apiVersion should be v1beta2
@amitoj Which version of helm chart you are using ?
The issue is seen after the upgrade from 0.15.3 to 0.15.9. It's trying to connect to the webhook in redis-operator namespace instead of the one where it's installed. In my case, the webhook and operator is installed at ot-container-kit namespace.
yes, I've got the same issue