Skip to content

Commit

Permalink
create cluster manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
bmanzari committed Apr 30, 2024
1 parent af0b4b6 commit a19fc30
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,18 @@ grep -v "password\|username\|pullSecret" "${SHARED_DIR}/agent-config.yaml" > "${

### TODO check if we can support the following
### Create manifests
#echo "Creating manifests..."
#oinst agent create cluster-manifests
echo "Creating manifests..."
oinst agent create cluster-manifests

### Inject customized manifests
#echo -e "\nThe following manifests will be included at installation time:"
#find "${SHARED_DIR}" \( -name "manifest_*.yml" -o -name "manifest_*.yaml" \)
#while IFS= read -r -d '' item
#do
# manifest="$(basename "${item}")"
# cp "${item}" "${INSTALL_DIR}/cluster-manifests/${manifest##manifest_}"
#done < <( find "${SHARED_DIR}" \( -name "manifest_*.yml" -o -name "manifest_*.yaml" \) -print0)
echo -e "\nThe following manifests will be included at installation time:"
find "${SHARED_DIR}" \( -name "manifest_*.yml" -o -name "manifest_*.yaml" \)
while IFS= read -r -d '' item
do
manifest="$(basename "${item}")"
cp "${item}" "${INSTALL_DIR}/cluster-manifests/${manifest##manifest_}"
cp "${item}" "${ARTIFACT_DIR}/cluster-manifests/${manifest##manifest_}"
done < <( find "${SHARED_DIR}" \( -name "manifest_*.yml" -o -name "manifest_*.yaml" \) -print0)
gnu_arch=$(echo "$architecture" | sed 's/arm64/aarch64/;s/amd64/x86_64/;')
case "${BOOT_MODE}" in
"iso")
Expand Down

0 comments on commit a19fc30

Please sign in to comment.