Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[redis-replication] On create podSecurityContext is removed from RedisReplication object (then in Statelfulset) #1185

Open
sogos opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sogos
Copy link

sogos commented Dec 23, 2024

redis-operator chart: 0.18.5
redis-operator version: 0.18.1

Does this issue reproduce with the latest release?

apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: RedisReplication
metadata:
  name: redis-replication
  labels:
    app.kubernetes.io/component: redis
    app.kubernetes.io/name: redis-replication
spec:
  priorityClassName: opencti-core-components
  clusterSize: 2
  redisConfig:
    additionalRedisConfig: redis-external-config
  podSecurityContext:
    runAsUser: 1000
    fsGroup: 1000
[...]

What operating system and processor architecture are you using (kubectl version)?

kubectl version Output
$ kubectl version
Client Version: v1.31.3
Kustomize Version: v5.4.2
Server Version: v1.29.11
WARNING: version difference between client (1.31) and server (1.29) exceeds the supported minor version skew of +/-1

What did you do?

kubectl apply -f my-redis-replication.yml

What did you expect to see?

The podSecurityContext is persisted, the statefulset contain also the portion of configuration

What did you see instead?

The podSecurityContext is erased and i have to patch the RedisReplication object to have the param

kubectl patch redisreplication redis-replication -n XXX --type=merge -p '{"spec":{"podSecurityContext":{"runAsUser":1000,"fsGroup":1000}}}'

@sogos sogos added the bug Something isn't working label Dec 23, 2024
@sogos sogos changed the title [redis-replication] podSecurityContext in yaml is removed from RedisReplication object (then in Statelfulset) [redis-replication] On create podSecurityContext is removed from RedisReplication object (then in Statelfulset) Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant