-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: init job. #4116
Closed
Closed
feat: init job. #4116
Conversation
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
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
🤖 Generated by lychee actionSummary
Full action output |
Apply Sweep Rules to your PR?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 c53a965
Summary
📄🐳🔐
This pull request adds two new controllers,
license
andjob-init
, to the project. Thelicense
controller is responsible for checking and updating the license information of the project. Thejob-init
controller is responsible for creating a default user in the database and the Kubernetes API. The pull request also adds the necessary files and configurations to build, test, and deploy the controllers, such as Dockerfiles, Makefiles, Kubefiles, manifests, and API types. It also updates the workflows forcontrollers
andrelease
to include thelicense
controller and disable thejob-init
controller.Walkthrough
kubebuilder
to scaffold the project and generate the API types and manifests (link, link)distroless
as the base image and copy the binary from thebin/
directory (link)Makefile
to define the targets and commands for building, testing, running, and deploying the controller (link)README.md
with some instructions and information (link).gitignore
and.dockerignore
files to ignore unwanted files (link, link)cmd/preset/main.go
to define the main function and call thedatabase.PresetUser
function (link)distroless
as the base image and copy the binary from thebin/
directory (link)Makefile
to define the targets and commands for building, testing, running, and deploying the controller (link)kubefile
to define how to build the image usingkubebuilder
(link)deploy/manifests/deploy.yaml
to define the Kubernetes resources for the controller (link)README.md
with some TODO comments (link).gitignore
and.dockerignore
files to ignore unwanted files (link, link)go.mod
to define the module name, go version, and dependencies (link)internal/util/controller/user.go
to define some functions to interact with the Kubernetes API for creating a user resource (link)internal/util/database/database.go
to define some functions to interact with the MongoDB database (link)internal/util/database/user.go
to define some functions and types to manage the user data in the database (link)