Skip to content

Commit

Permalink
Merge pull request #20 from projectsyn/fix_bugs
Browse files Browse the repository at this point in the history
Fix bugs
  • Loading branch information
TheBigLee authored Jun 23, 2021
2 parents 3ca077a + 1f6bd73 commit ee9eaf9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dump-objects
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ extract_versioned_apis() {
}

validate_kinds() {
local -a mapfile -t expected < /usr/local/share/k8s-object-dumper/must-exist
local -a expected
mapfile -t expected < /usr/local/share/k8s-object-dumper/must-exist
local missing=()
for j in "${expected[@]}"; do
local found=
Expand Down Expand Up @@ -195,7 +196,7 @@ object_kinds() {
# Get all object types for each group
for url in "${groups[@]}"; do
local san_name
san_name = $(sanitize_name <<< "${url##/}")
san_name=$(sanitize_name <<< "${url##/}")
local name="api-${san_name}.json"
local fname="${output_dir}/${name}"

Expand All @@ -214,7 +215,8 @@ object_kinds() {
#
#
retrievable_kind() {
local -a mapfile -t known_to_fail < /usr/local/share/k8s-object-dumper/known-to-fail
local -a know_to_fail
mapfile -t known_to_fail < /usr/local/share/k8s-object-dumper/known-to-fail

for kind in "${known_to_fail[@]}"
do
Expand Down Expand Up @@ -426,7 +428,7 @@ for i in "${kinds[@]}"; do
(( ++errors )) || true
fi

echo >&2
log >&2
done

if ! split_objects ${object_files+"${object_files[@]}"}; then
Expand Down

0 comments on commit ee9eaf9

Please sign in to comment.