Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
fix downstream collection name kubernetes.base -> kubernetes.core (#213)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Miller <admiller@redhat.com>
  • Loading branch information
maxamillion authored Aug 31, 2020
1 parent 23f9588 commit 60c762b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/downstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ f_prep()

# Temp build dir
_tmp_dir=$(mktemp -d)
_build_dir="${_tmp_dir}/ansible_collections/kubernetes/base"
_build_dir="${_tmp_dir}/ansible_collections/kubernetes/core"
mkdir -p "${_build_dir}"
}

Expand All @@ -64,14 +64,14 @@ f_show_help()
f_text_sub()
{
# Switch FQCN and dependent components
sed -i "s/community-kubernetes/kubernetes-base/" "${_build_dir}/Makefile"
sed -i "s/community\/kubernetes/kubernetes\/base/" "${_build_dir}/Makefile"
sed -i "s/community-kubernetes/kubernetes-core/" "${_build_dir}/Makefile"
sed -i "s/community\/kubernetes/kubernetes\/core/" "${_build_dir}/Makefile"
sed -i "s/^VERSION\:/VERSION: ${DOWNSTREAM_VERSION}/" "${_build_dir}/Makefile"
sed -i "s/community.kubernetes/kubernetes.base/" "${_build_dir}/galaxy.yml"
sed -i "s/name\:.*$/name: base/" "${_build_dir}/galaxy.yml"
sed -i "s/community.kubernetes/kubernetes.core/" "${_build_dir}/galaxy.yml"
sed -i "s/name\:.*$/name: core/" "${_build_dir}/galaxy.yml"
sed -i "s/namespace\:.*$/namespace: kubernetes/" "${_build_dir}/galaxy.yml"
sed -i "s/^version\:.*$/version: ${DOWNSTREAM_VERSION}/" "${_build_dir}/galaxy.yml"
find "${_build_dir}" -type f -exec sed -i "s/community\.kubernetes/kubernetes\.base/g" {} \;
find "${_build_dir}" -type f -exec sed -i "s/community\.kubernetes/kubernetes\.core/g" {} \;
}

f_cleanup()
Expand Down

0 comments on commit 60c762b

Please sign in to comment.