Fix kubelet-plugin-registration to add missing dir

include v1

This is far too manual for my tastes, which will be fixed subsequently.
This commit is contained in:
Tim Hockin
2023-01-04 14:36:40 -08:00
parent 4e48506245
commit 01e1da77e2
2 changed files with 333 additions and 192 deletions

View File

@@ -23,13 +23,17 @@ set -o nounset
set -o pipefail
KUBE_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../" && pwd -P)"
KUBELET_PLUGIN_REGISTRATION_V1ALPHA="${KUBE_ROOT}/staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1alpha1/"
KUBELET_PLUGIN_REGISTRATION_V1BETA="${KUBE_ROOT}/staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1beta1/"
KUBELET_EXAMPLE_PLUGIN_V1BETA1="${KUBE_ROOT}/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1/"
KUBELET_EXAMPLE_PLUGIN_V1BETA2="${KUBE_ROOT}/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2/"
dirs=(
"staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1alpha1/"
"staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1beta1/"
"staging/src/k8s.io/kubelet/pkg/apis/pluginregistration/v1/"
"pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1/"
"pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2/"
)
source "${KUBE_ROOT}/hack/lib/protoc.sh"
kube::protoc::generate_proto "${KUBELET_PLUGIN_REGISTRATION_V1ALPHA}"
kube::protoc::generate_proto "${KUBELET_PLUGIN_REGISTRATION_V1BETA}"
kube::protoc::generate_proto "${KUBELET_EXAMPLE_PLUGIN_V1BETA1}"
kube::protoc::generate_proto "${KUBELET_EXAMPLE_PLUGIN_V1BETA2}"
for d in "${dirs[@]}"; do
kube::protoc::generate_proto "${KUBE_ROOT}/${d}"
done