Skip to content

Commit

Permalink
chore: Rename modulectl usage in e2e (kyma-project#1998)
Browse files Browse the repository at this point in the history
* chore: Rename moduletl usage in e2e

* rename more
  • Loading branch information
lindnerby authored Oct 30, 2024
1 parent 33bd2db commit 97ff9c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
shell: bash
run: |
make build-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./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 Expand Up @@ -112,7 +112,7 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind Deployment
popd
make build-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./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 @@ -135,7 +135,7 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./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 Expand Up @@ -184,7 +184,7 @@ runs:
kustomize edit add patch --path image_patch.yaml --kind Deployment
popd
make build-manifests
module create --module-config-file ./misconfigured-module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./misconfigured-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-misconfigured-regular/template-operator-misconfigured-1.1.1/g' ./template.yaml
kubectl get crds
Expand All @@ -203,7 +203,7 @@ runs:
kustomize edit add patch --path image_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
module create --module-config-file ./misconfigured-module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./misconfigured-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-misconfigured-regular/template-operator-misconfigured-1.1.1/g' ./template.yaml
kubectl get crds
Expand All @@ -222,7 +222,7 @@ runs:
security: sec-scanners-config.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> module-config-no-cr.yaml
module create --module-config-file ./module-config-no-cr.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./module-config-no-cr.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.0/g' ./template.yaml
kubectl get crds
Expand Down Expand Up @@ -270,12 +270,7 @@ runs:
shell: bash
run: |
make build-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
sed -i 's/localhost:5111/k3d-kcp-registry.localhost:5000/g' ./template.yaml
kubectl apply -f template.yaml
kubectl apply -f module-release-meta.yaml

12 changes: 6 additions & 6 deletions .github/actions/deploy-template-operator/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
shell: bash
run: |
make build-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./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 Expand Up @@ -72,7 +72,7 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind Deployment
popd
make build-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./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 +93,7 @@ runs:
kustomize edit add patch --path warning_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
module create --module-config-file ./module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./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 Expand Up @@ -125,7 +125,7 @@ runs:
kustomize edit add patch --path image_patch.yaml --kind Deployment
popd
make build-manifests
module create --module-config-file ./misconfigured-module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./misconfigured-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 @@ -143,7 +143,7 @@ runs:
kustomize edit add patch --path image_patch.yaml --kind StatefulSet
popd
make build-statefulset-manifests
module create --module-config-file ./misconfigured-module-config.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./misconfigured-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 @@ -160,7 +160,7 @@ runs:
security: sec-scanners-config.yaml
annotations:
operator.kyma-project.io/doc-url: https://kyma-project.io" >> module-config-no-cr.yaml
module create --module-config-file ./module-config-no-cr.yaml --registry http://localhost:5111 --insecure
modulectl create --module-config-file ./module-config-no-cr.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
1 change: 0 additions & 1 deletion .github/actions/install-modulectl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ runs:
chmod +x modulectl-linux
mv modulectl-linux /usr/local/bin/modulectl
echo "PATH=/usr/local/bin/modulectl" >> $GITHUB_OUTPUT
ln -s /usr/local/bin/modulectl /usr/local/bin/module

0 comments on commit 97ff9c4

Please sign in to comment.