From 8d8e29e3a14369562c2916c69791ab96b5553bc3 Mon Sep 17 00:00:00 2001 From: Omer Aplatony Date: Wed, 12 Feb 2025 15:07:12 +0000 Subject: [PATCH] removed unused script Signed-off-by: Omer Aplatony --- .../hack/create-flags-doc-vpa.sh | 57 ------------------- 1 file changed, 57 deletions(-) delete mode 100755 vertical-pod-autoscaler/hack/create-flags-doc-vpa.sh diff --git a/vertical-pod-autoscaler/hack/create-flags-doc-vpa.sh b/vertical-pod-autoscaler/hack/create-flags-doc-vpa.sh deleted file mode 100755 index 478b7b224b8a..000000000000 --- a/vertical-pod-autoscaler/hack/create-flags-doc-vpa.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Copyright 2024 The Kubernetes Authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -o errexit -set -o nounset -set -o pipefail - -# Get the absolute path to the script's directory -SCRIPT_DIR=$(realpath $(dirname ${BASH_SOURCE})) -# Get the repository root (parent of hack directory) -REPOSITORY_ROOT=$(realpath ${SCRIPT_DIR}/..) - -function generate_vpa_docs_components { - components="recommender updater admission-controller" - for component in $components; do - echo "generate docs for $component" - # Use absolute paths based on REPOSITORY_ROOT - ( - cd "${REPOSITORY_ROOT}/pkg/${component}" - make document-flags - ) - done -} - -function move_and_merge_docs { - files="vpa-admission-flags.md vpa-recommender-flags.md vpa-updater-flags.md" - # Use absolute path for docs directory - ( - cd "${REPOSITORY_ROOT}/docs" - rm -f flags.md - touch flags.md - for file in $files; do - echo "merge $file" - cat "$file" >> flags.md - echo "" >> flags.md - # Remove the temporary file after merging - rm -f "$file" - done - ) - echo "updated docs/flags.md" -} - -generate_vpa_docs_components -move_and_merge_docs