OT-CONTAINER-KIT / helm-charts

A repository which that will contain helm charts with best and security practices.
https://ot-container-kit.github.io/helm-charts
49 stars 84 forks source link

I get unknown field "selector" when uncommenting the storageSpec #3

Closed kivi closed 3 years ago

kivi commented 3 years ago

Hi,

I am getting following error

Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Redis.spec.storage.volumeClaimTemplate): 
unknown field "selector" in in.opstreelabs.redis.redis.v1beta1.Redis.spec.storage.volumeClaimTemplate

When do helm upgrade --install redis ot-helm/redis-setup \ --dry-run --namespace redis-operator -f ./values.yaml

slightly modiefied values.yaml, I am just trying to enable storageSpec

---
name: redis-cluster

setupMode: standalone

cluster: {}

global:
  image: quay.io/opstree/redis
  tag: v2.0
  imagePullPolicy: IfNotPresent
  password: "Opstree@1234"
  resources:
    {}
    # requests:
    #   cpu: 100m
    #   memory: 128Mi
    # limits:
    #   cpu: 100m
    #   memory: 128Mi

exporter:
  enabled: true
  image: quay.io/opstree/redis-exporter
  tag: "2.0"
  imagePullPolicy: IfNotPresent
  resources:
    {}
    # requests:
    #   cpu: 100m
    #   memory: 128Mi
    # limits:
    #   cpu: 100m
    #   memory: 128Mi

# priorityClassName: "-"

nodeSelector:
  {}
  # memory: medium

storageSpec:
  volumeClaimTemplate:
    spec:
      storageClassName: standard
      accessModes: ["ReadWriteOnce"]
      resources:
        requests:
          storage: 1Gi
    selector: {}

securityContext:
  {}
  # runAsUser: 1000

affinity:
  {}
  # nodeAffinity:
  #   requiredDuringSchedulingIgnoredDuringExecution:
  #     nodeSelectorTerms:
  #     - matchExpressions:
  #       - key: disktype
  #         operator: In
  #         values:
  #         - ssd

Thank your charts!

iamabhishek-dubey commented 3 years ago

This is fixed now