forked from gardener/gardener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check-skaffold-deps.sh
executable file
·43 lines (35 loc) · 1.7 KB
/
check-skaffold-deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
set -e
operation="${1:-check}"
echo "> ${operation^} Skaffold Dependencies"
success=true
repo_root="$(git rev-parse --show-toplevel)"
function run() {
if ! "$repo_root"/hack/check-skaffold-deps-for-binary.sh "$operation" --skaffold-file "$1" --binary "$2" --skaffold-config "$3"; then
success=false
fi
}
# skaffold.yaml
run "skaffold.yaml" "gardener-admission-controller" "controlplane"
run "skaffold.yaml" "gardener-apiserver" "controlplane"
run "skaffold.yaml" "gardener-controller-manager" "controlplane"
run "skaffold.yaml" "gardener-extension-provider-local" "provider-local"
run "skaffold.yaml" "machine-controller-manager-provider-local" "provider-local"
run "skaffold.yaml" "gardener-resource-manager" "gardenlet"
run "skaffold.yaml" "gardener-node-agent" "gardenlet"
run "skaffold.yaml" "gardener-scheduler" "controlplane"
run "skaffold.yaml" "gardenlet" "gardenlet"
# skaffold-operator.yaml
run "skaffold-operator.yaml" "gardener-operator" "gardener-operator"
run "skaffold-operator.yaml" "gardener-resource-manager" "gardener-operator"
run "skaffold-operator.yaml" "gardener-admission-controller" "gardener-operator"
run "skaffold-operator.yaml" "gardener-apiserver" "gardener-operator"
run "skaffold-operator.yaml" "gardener-controller-manager" "gardener-operator"
run "skaffold-operator.yaml" "gardener-scheduler" "gardener-operator"
if ! $success ; then
exit 1
fi