File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 50
50
- |
51
51
bash <<'EOF'
52
52
set -ex
53
+
54
+ # The `post-install hook job` may be applied before all karmada components are ready that rely on `static-resource job` and `hook-job secret`.
55
+ # So, we have to postpone the deletion of the `static-resource job` and `hook-job secret` until all karmada components are up and running.
56
+ while [[ $(kubectl get pods -n {{ $namespace }} --field-selector=status.phase!=Running,status.phase!=Succeeded -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' | wc -l) > 0 ]]; do
57
+ echo "waiting for all pods of karmada control plane ready..."; sleep 1;
58
+ done
59
+
53
60
kubectl delete job {{ $name }}-static-resource -n {{ $namespace }}
54
61
kubectl delete secret {{ $name }}-hook-job -n {{ $namespace }}
55
62
EOF
Original file line number Diff line number Diff line change @@ -511,10 +511,7 @@ metricsAdapter:
511
511
registry : docker.io
512
512
repository : karmada/karmada-metrics-adapter
513
513
tag : *karmadaImageVersion
514
- # # Specify a imagePullPolicy
515
- # # Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
516
- # #
517
- pullPolicy : Always
514
+ pullPolicy : *karmadaImagePullPolicy
518
515
# # Optionally specify an array of imagePullSecrets.
519
516
# # Secrets must be manually created in the namespace.
520
517
# # Example:
You can’t perform that action at this time.
0 commit comments