Skip to content

Commit

Permalink
Use generated ModuleConfig in the E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
nesmabadr committed Nov 5, 2024
1 parent 94f1479 commit ce0cd72
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,15 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind Deployment
popd
make build-manifests
modulectl create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
echo "name: kyma-project.io/module/template-operator
channel: regular
version: 1.0.1
security: sec-scanners-config.yaml
defaultCR: ./config/samples/default-sample-cr.yaml
manifest: template-operator.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> warning-module-config.yaml
modulectl create --module-config-file ./warning-module-config.yaml --registry http://localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
sed -i 's/template-operator-regular/template-operator-1.0.1/g' ./template.yaml
kubectl get crds
Expand All @@ -136,7 +144,15 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
modulectl create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
echo "name: kyma-project.io/module/template-operator
channel: regular
version: 1.0.1
security: sec-scanners-config.yaml
defaultCR: ./config/samples/default-sample-cr.yaml
manifest: template-operator.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> warning-module-config.yaml
modulectl create --module-config-file ./warning-module-config.yaml --registry http://localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
sed -i 's/template-operator-regular/template-operator-1.0.1/g' ./template.yaml
kubectl get crds
Expand Down
20 changes: 18 additions & 2 deletions .github/actions/deploy-template-operator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,15 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind Deployment
popd
make build-manifests
modulectl create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
echo "name: kyma-project.io/module/template-operator
channel: regular
version: 1.0.1
security: sec-scanners-config.yaml
defaultCR: ./config/samples/default-sample-cr.yaml
manifest: template-operator.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> warning-module-config.yaml
modulectl create --module-config-file ./warning-module-config.yaml --registry http://localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl get crds
kubectl apply -f template.yaml
Expand All @@ -93,7 +101,15 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
modulectl create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
echo "name: kyma-project.io/module/template-operator
channel: regular
version: 1.0.1
security: sec-scanners-config.yaml
defaultCR: ./config/samples/default-sample-cr.yaml
manifest: template-operator.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> warning-module-config.yaml
modulectl create --module-config-file ./warning-module-config.yaml --registry http://localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl get crds
kubectl apply -f template.yaml
Expand Down

0 comments on commit ce0cd72

Please sign in to comment.