forked from kyma-project/lifecycle-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/kyma-project#2042-fix-manual-e2e-wor…
…kflow
- Loading branch information
Showing
23 changed files
with
505 additions
and
315 deletions.
There are no files selected for viewing
316 changes: 74 additions & 242 deletions
316
.github/actions/deploy-template-operator-with-modulereleasemeta/action.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
set -o nounset | ||
set -o errexit | ||
set -E | ||
set -o pipefail | ||
|
||
MODULE_NAME=$1 | ||
shift 1 | ||
CHANNELS=("$@") | ||
cat <<EOF > module-release-meta.yaml | ||
apiVersion: operator.kyma-project.io/v1beta2 | ||
kind: ModuleReleaseMeta | ||
metadata: | ||
name: ${MODULE_NAME} | ||
namespace: kcp-system | ||
spec: | ||
moduleName: ${MODULE_NAME} | ||
channels: | ||
EOF | ||
|
||
for CHANNEL in "${CHANNELS[@]}"; do | ||
IFS=':' read -r CHANNEL_NAME CHANNEL_VERSION <<< "${CHANNEL}" | ||
cat <<EOF >> module-release-meta.yaml | ||
- channel: ${CHANNEL_NAME} | ||
version: ${CHANNEL_VERSION} | ||
EOF | ||
done | ||
kubectl apply -f module-release-meta.yaml | ||
|
||
echo "ModuleReleaseMeta created successfully" | ||
rm -f module-release-meta.yaml | ||
|
||
kubectl get modulereleasemeta "${MODULE_NAME}" -n kcp-system -o yaml | ||
kubectl get moduletemplate -n kcp-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
set -o nounset | ||
set -o errexit | ||
set -E | ||
set -o pipefail | ||
|
||
MODULE_NAME=$1 | ||
RELEASE_VERSION=$2 | ||
INCLUDE_DEFAULT_CR=${3:-true} | ||
|
||
cat <<EOF > module-config-for-e2e.yaml | ||
name: kyma-project.io/module/${MODULE_NAME} | ||
version: ${RELEASE_VERSION} | ||
security: sec-scanners-config.yaml | ||
manifest: https://localhost:8080/template-operator.yaml | ||
repository: https://github.com/kyma-project/template-operator | ||
documentation: https://github.com/kyma-project/template-operator/blob/main/README.md | ||
icons: | ||
- name: module-icon | ||
link: https://github.com/kyma-project/template-operator/blob/main/docs/assets/logo.png | ||
EOF | ||
|
||
if [ "${INCLUDE_DEFAULT_CR}" == "true" ]; then | ||
cat <<EOF >> module-config-for-e2e.yaml | ||
defaultCR: https://localhost:8080/config/samples/default-sample-cr.yaml | ||
EOF | ||
fi | ||
|
||
cat module-config-for-e2e.yaml | ||
modulectl create --config-file ./module-config-for-e2e.yaml --registry http://localhost:5111 --insecure | ||
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml | ||
kubectl apply -f template.yaml | ||
|
||
cat template.yaml | ||
echo "ModuleTemplate created successfully" | ||
|
||
rm -f module-config-for-e2e.yaml | ||
rm -f template-operator.yaml | ||
rm -f template.yaml | ||
rm -f default-sample-cr.yaml | ||
echo "Temporary files removed successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.