redis-operator icon indicating copy to clipboard operation
redis-operator copied to clipboard

Installation error - unknown field "spec.podSecurityContext"

Open amitoj opened this issue 1 year ago • 5 comments

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

amitoj avatar Oct 10 '23 14:10 amitoj

I have the same problem. Got the helm chart working with release 0.15.3 (someting breaks with 0.15.7).

mindthecap avatar Oct 11 '23 09:10 mindthecap

THe apiVersion should be v1beta2

shubham-cmyk avatar Oct 11 '23 19:10 shubham-cmyk

@amitoj Which version of helm chart you are using ?

shubham-cmyk avatar Oct 11 '23 19:10 shubham-cmyk

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.

declum avatar Oct 15 '23 17:10 declum

yes, I've got the same issue

minhdtb-tanaakk avatar Nov 03 '23 08:11 minhdtb-tanaakk