StatefulSet Notes

1 min read

StatefulSet notes read rollout revision state and the PVC inventory embedded by enrich: [pvcs].


Reference

NoteDescription
statefulSetCurrentRevisionReturns `status.
statefulSetUpdateRevisionReturns `status.
statefulSetPVCCountReturns the number of PVCs embedded in _pvcs.

Examples

# statefulSetCurrentRevision
- path: currentRevision
  value: "{{ statefulSetCurrentRevision .children.statefulset }}"
# → "my-sts-6d8f4b9c5"

# statefulSetUpdateRevision
- path: updateRevision
  value: "{{ statefulSetUpdateRevision .children.statefulset }}"
# → "my-sts-7a2c1d4f8"

# statefulSetPVCCount
- path: pvcCount
  value: "{{ statefulSetPVCCount .children.statefulset }}"
# → 3