Skip to content

Commit

Permalink
statefulset: explicit apiVersion and kind for volumeClaimTemplates
Browse files Browse the repository at this point in the history
To avoid server-side apply diff.

See kubernetes/kubernetes#87706 (comment)
  • Loading branch information
sathieu authored Jan 17, 2023
1 parent 3911e15 commit 8c1133e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ spec:
- name: www
mountPath: /usr/share/nginx/html
volumeClaimTemplates:
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: www
spec:
accessModes: [ "ReadWriteOnce" ]
Expand Down

0 comments on commit 8c1133e

Please sign in to comment.