Version-Release number of selected component (if applicable): 3.11 4.1 Steps to Reproduce: 1. Create SS with emptyDir.sizeLimit ss.yaml: apiVersion: v1 kind: Service metadata: name: nginx labels: app: nginx spec: ports: - port: 80 name: web clusterIP: None selector: app: nginx --- apiVersion: apps/v1 kind: StatefulSet metadata: name: web spec: serviceName: "nginx" replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: k8s.gcr.io/nginx-slim:0.8 ports: - containerPort: 80 name: web volumeMounts: - name: www mountPath: /usr/share/nginx/html volumes: - emptyDir: medium: Memory sizeLimit: 1Mi 2. oc apply -f ss.yaml 3. oc get statefulset/web -o yaml --export | grep sizeLimit sizeLimit is not persisted 4. when I edit from GUI I get "No changes were applied to stateful set web.Make sure any new fields you may have added are supported API fields."
sizeLimit is mentioned in doc I can see sizeLimit mentioned in doc https://docs.openshift.com/container-platform/3.11/rest_api/apis-apps/v1beta1.StatefulSet.html#object-schema
This option only works if the LocalStorageCapacityIsolation feature is turned on.
See: https://github.com/openshift/api/blob/8033e226059b9ef589a39782e067aab940519cae/config/v1/types_feature.go#L108 Moving to Seth.
We can re-enable this feature. I have opened a pull request to do that with this BZ.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0062