OT-CONTAINER-KIT / redis-operator

A golang based redis operator that will make/oversee Redis standalone/cluster/replication/sentinel mode setup on top of the Kubernetes.
https://ot-redis-operator.netlify.app/
Apache License 2.0
742 stars 207 forks source link

Installation error - unknown field "spec.podSecurityContext" #667

Open amitoj opened 9 months ago

amitoj commented 9 months ago

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
mindthecap commented 9 months ago

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

shubham-cmyk commented 9 months ago

THe apiVersion should be v1beta2

shubham-cmyk commented 9 months ago

@amitoj Which version of helm chart you are using ?

declum commented 8 months ago

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.

minhdtb-tanaakk commented 8 months ago

yes, I've got the same issue