Fix bytebase Dockerfile to support outside binary. #3116
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π€ Generated by Copilot at ce7aba4
Summary
π³ππ οΈ
This pull request updates the Bytebase controller to use a new image name, a multi-stage Dockerfile, and a
Kubefile
for deployment with thesealos
tool. It also simplifies the API, improves the credential management, and reformats the YAML files. These changes enhance the functionality, usability, and security of the controller.Walkthrough
bin/
directory from the.dockerignore
file to allow copying the binary from thebin/
directory in the new Dockerfile (link)sealos-db-bytebase-controller
(link, link)Kubefile
to thedeploy
directory that defines how to deploy the controller using thesealos
tool (link)README.md
file to thedeploy
directory that explains how to build and run the image using thesealos
tool (link)pre-deploy
target to the Makefile that generates the deployment manifest from the kustomize configuration and saves it to thedeploy/manifests/deploy.yaml.tmpl
file (link)externalURL
field from theBytebaseSpec
struct as it is no longer needed (link)BytebaseStatus
struct:loginCookie
androotPassword
to store and retrieve the credentials for accessing the Bytebase API and database (link)deploy/manifests
directory to wrap the long description lines (link)