insert at beginning of section #821
-
Hello, I'm trying to modify some files that are later used by templates. I want to know if there is a possibility to insert values at the beginning instead of the end of the section: Original file spec:
containers:
- name: c Command:
Output spec:
containers:
- name: c
volumeMounts:
name: data Desired output spec:
volumeMounts:
name: data
containers:
- name: c I need it to be inserted at the beginning, so that if the template modifies it, I want it to ignore my entry. Is there any way to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I don't understand why it would matter where the position is - regardless, it can be done by creating your map first (which places the property at the top) and then merging in the file:
|
Beta Was this translation helpful? Give feedback.
I don't understand why it would matter where the position is - regardless, it can be done by creating your map first (which places the property at the top) and then merging in the file: