File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ install_operator() {
101
101
k_wait pod -l name=spod
102
102
103
103
wait_for spod spod
104
- INITIAL_SPOD_DS_VERSION=$( k get daemonset spod -o=jsonpath=' {.status.currentNumberScheduled }' 2> /dev/null)
104
+ INITIAL_SPOD_DS_VERSION=$( k get controllerrevision -l name= spod --sort-by=.revision - o=jsonpath=' {.items[-1].revision }' 2> /dev/null)
105
105
106
106
if [[ -z " $INITIAL_SPOD_DS_VERSION " ]]; then
107
107
echo " Error: DaemonSet 'spod' not found or could not get its status."
@@ -111,7 +111,7 @@ install_operator() {
111
111
# Wait for security profiles operator to modify the spod daemonset
112
112
sleep 5
113
113
k rollout status ds spod --timeout 360s
114
- PATCHED_SPOD_DS_VERSION=$( k get daemonset spod -o=jsonpath=' {.status.currentNumberScheduled }' 2> /dev/null)
114
+ PATCHED_SPOD_DS_VERSION=$( k get controllerrevision -l name= spod --sort-by=.revision - o=jsonpath=' {.items[-1].revision }' 2> /dev/null)
115
115
116
116
if [ " $PATCHED_SPOD_DS_VERSION " -gt " $INITIAL_SPOD_DS_VERSION " ]; then
117
117
echo " Success! The DaemonSet version has been updated from $INITIAL_SPOD_DS_VERSION to $PATCHED_SPOD_DS_VERSION ."
You can’t perform that action at this time.
0 commit comments