-
Notifications
You must be signed in to change notification settings - Fork 18
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
Run frontend from go binary #720
Run frontend from go binary #720
Conversation
Skipping CI for Draft Pull Request. |
/test pull-btp-manager-build |
/test pull-btp-manager-build |
1 similar comment
/test pull-btp-manager-build |
/hold |
docs/contributor/ui.md
Outdated
> Use the latest development image to test the UI: europe-docker.pkg.dev/kyma-project/dev/btp-manager:PR-720 | ||
|
||
Follow steps below to run BTP Manager with UI: | ||
1. Connect `kubectl` to your cluster by setting `KUBECONFIG` environment variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Connect `kubectl` to your cluster by setting `KUBECONFIG` environment variable. | |
1. Connect `kubectl` to your cluster by setting the **KUBECONFIG** environment variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
```shell | ||
export KUBECONFIG=<path-to-kubeconfig> | ||
``` | ||
2. Make sure `btp-operator` module is disabled and there are no existing BtpOperator custom resources and deployments of BTP Manager and SAP BTP service operator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Make sure `btp-operator` module is disabled and there are no existing BtpOperator custom resources and deployments of BTP Manager and SAP BTP service operator. | |
2. Make sure the `btp-operator` module is disabled and there are no existing BtpOperator custom resources (CRs) and deployments of BTP Manager and the SAP BTP service operator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
kubectl get deployment -n kyma-system btp-manager-controller-manager | ||
kubectl get deployment -n kyma-system sap-btp-operator-controller-manager | ||
``` | ||
3. Clone `btp-manager` repository and checkout to `sm-integration` branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3. Clone `btp-manager` repository and checkout to `sm-integration` branch. | |
3. Clone the `btp-manager` repository and checkout to the `sm-integration` branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
git clone https://github.com/kyma-project/btp-manager.git | ||
git checkout sm-integration | ||
``` | ||
4. Set `IMG` environment variable to the image of BTP Manager with UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4. Set `IMG` environment variable to the image of BTP Manager with UI. | |
4. Set the **IMG** environment variable to the image of BTP Manager with UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
```shell | ||
kubectl get deployment -n kyma-system btp-manager-controller-manager | ||
``` | ||
In case you encounter the following error during Pod creation due to Warden's admission webhook: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case you encounter the following error during Pod creation due to Warden's admission webhook: | |
If you encounter the following error during Pod creation due to Warden's admission webhook: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
``` | ||
Error creating: admission webhook "validation.webhook.warden.kyma-project.io" denied the request: Pod images europe-docker.pkg.dev/kyma-project/dev/btp-manager:PR-720 validation failed | ||
``` | ||
you need to scale BTP Manager deployment to 0 replicas, delete the webhook and the scale deployment back to 1 replica. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to scale BTP Manager deployment to 0 replicas, delete the webhook and the scale deployment back to 1 replica. | |
you must scale the BTP Manager deployment to 0 replicas, delete the webhook, and scale the deployment back to 1 replica. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io validation.webhook.warden.kyma-project.io | ||
kubectl scale deployment -n kyma-system btp-manager-controller-manager --replicas=1 | ||
``` | ||
7. Apply BtpOperator custom resource to create the secret with credentials to access Service Manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7. Apply BtpOperator custom resource to create the secret with credentials to access Service Manager. | |
7. Apply BtpOperator CR to create the Secret with credentials to access Service Manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
docs/contributor/ui.md
Outdated
```shell | ||
export KUBECONFIG=<path-to-kubeconfig> | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please indent the code blocks and other content under each of the steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied.
Co-authored-by: Iwona Langer <[email protected]>
/unhold |
* Serve frontend from go * Build UI static files * Change metrics server port * Add API config fields in deployment * Fix serving API on 8080 port * Add makefile rule to build ui * Change the order of makefile rules * eslint * eslint * Fix dockerfile copy * Add doc describing how to deploy BTP Manager with UI * Fix docs * Add cleanup info, prerequisites info and fix formatting * Typos * Apply suggestions from doc review Co-authored-by: Iwona Langer <[email protected]> * Rename ui.md to 09-10-ui.md --------- Co-authored-by: Iwona Langer <[email protected]>
* Serve frontend from go * Build UI static files * Change metrics server port * Add API config fields in deployment * Fix serving API on 8080 port * Add makefile rule to build ui * Change the order of makefile rules * eslint * eslint * Fix dockerfile copy * Add doc describing how to deploy BTP Manager with UI * Fix docs * Add cleanup info, prerequisites info and fix formatting * Typos * Apply suggestions from doc review Co-authored-by: Iwona Langer <[email protected]> * Rename ui.md to 09-10-ui.md --------- Co-authored-by: Iwona Langer <[email protected]>
Description
Changes proposed in this pull request:
Bundle frontend static files to go binary.
Related issue(s)
See #442