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 @@ -131,7 +131,7 @@ main() {
131
131
(( TOTAL_RESOURCES++ ))
132
132
133
133
# Validate each resource with kubectl dry-run
134
- if kubectl apply -f " ${FILE} " --dry-run=client & > /tmp/kbak_test_result; then
134
+ if kubectl apply -f " ${FILE} " --dry-run=server & > /tmp/kbak_test_result; then
135
135
print_success " Resource validated: ${RESOURCE_TYPE} /${RESOURCE_NAME} "
136
136
(( SUCCESSFUL_RESOURCES++ ))
137
137
else
@@ -160,7 +160,7 @@ main() {
160
160
fi
161
161
162
162
# Validate entire resource type directory
163
- if kubectl apply -f " ${DIR} " --dry-run=client & > /tmp/kbak_test_result; then
163
+ if kubectl apply -f " ${DIR} " --dry-run=server & > /tmp/kbak_test_result; then
164
164
print_success " Resource type validated: ${RESOURCE_TYPE} "
165
165
else
166
166
print_error " Resource type validation failed: ${RESOURCE_TYPE} "
You can’t perform that action at this time.
0 commit comments