Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Docs:CRW-1174 #44

Merged
merged 2 commits into from
Sep 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sync-chectl-to-crwctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ pushd "${TARGETDIR}" >/dev/null

perl -0777 -p -i -e 's|(\ +installer: string\({.*?}\),)| ${1} =~ /.+minishift.+/?"INSERT-CONTENT-HERE":${1}|gse' "${TARGETDIR}/${d}"
sed -r -e "s#INSERT-CONTENT-HERE#${installerString}#" -i "${TARGETDIR}/${d}"
# Remove --domain flag
sed -i '/domain: string({/,/}),/d' "${TARGETDIR}/${d}"
# Change multi-user flag description. Code Ready Workspaces support multi-user by default. https://issues.redhat.com/browse/CRW-1174
sed -i "s|'Starts CodeReady Workspaces in multi-user mode'|\`Starts CodeReady Workspaces in multi-user mode.\n\ \
Note, this option is turned on by default.\`|g" "${TARGETDIR}/${d}"
done
popd >/dev/null

Expand All @@ -120,7 +125,8 @@ pushd "${TARGETDIR}" >/dev/null
mkdir -p "${TARGETDIR}/${d%/*}"
sed -r \
`# replace line after specified one with new default` \
-e "/description: 'Kubernetes namespace/{n;s/.+/ default: 'workspaces',/}" \
-e "s|Kubernetes namespace|Openshift Project|g" \
-e "/description: 'Openshift Project/{n;s/.+/ default: 'workspaces',/}" \
-e "/description: .+ deployment name.+/{n;s/.+/ default: 'codeready',/}" \
-i "${TARGETDIR}/${d}"
popd >/dev/null
Expand Down