Skip to content
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

Scaffolding aibrix project using kubebuilder #17

Merged
merged 6 commits into from
Jul 12, 2024
Merged

Conversation

Jeffwan
Copy link
Collaborator

@Jeffwan Jeffwan commented Jul 11, 2024

Address #16

This PR mainly focus on the skeleton generation

# init project
go mod init github.com/aibrix/aibrix

kubebuilder init --domain "aibrix.ai"  --project-name aibrix

kubebuilder edit --multigroup=true

kubebuilder create api --group autoscaling --version v1alpha1 --kind PodAutoscaler

Versions

$ go version
go version go1.21.12 darwin/amd64

$ kubebuilder version
Version: main.version{KubeBuilderVersion:"3.15.0", KubernetesVendor:"1.27.1", GitCommit:"c01af8fb2cf7c8e11b06b6b491f7974fc1232d1a", BuildDate:"2024-05-15T10:16:58Z", GoOs:"darwin", GoArch:"arm64"}

Jeffwan added 5 commits July 11, 2024 14:26
“kubebuilder init --domain "aibrix.ai"  --project-name aibrix”
`kubebuilder create api --group autoscaling --version v1alpha1 --kind PodAutoscaler`
@Jeffwan Jeffwan requested a review from varungup90 July 12, 2024 18:06
@Jeffwan Jeffwan added this to the v0.1.0-rc.0 milestone Jul 12, 2024
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
}).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "PodAutoscaler")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unable to create PodAutoscaler controller.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch. I have a follow up PR on the structure adjustment. I will update the name there.

// LeaderElectionReleaseOnCancel: true,
})
if err != nil {
setupLog.Error(err, "unable to start manager")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unable to create manager

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above

Copy link
Collaborator

@varungup90 varungup90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit comments

@Jeffwan Jeffwan merged commit 7dfb7c6 into main Jul 12, 2024
@Jeffwan Jeffwan deleted the jiaxin/hpa-skeleton branch July 12, 2024 21:02
gangmuk pushed a commit that referenced this pull request Jan 25, 2025
* Remove placeholder folders to avoid failures in skeleton generation

* Init aibrix go module

* Scaffolding aibrix project using kubebuilder

“kubebuilder init --domain "aibrix.ai"  --project-name aibrix”

* Enable Multi-Group API feature

* Add PodAutoscaler api and controllers

`kubebuilder create api --group autoscaling --version v1alpha1 --kind PodAutoscaler`

* Generate podautoscaler manifests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants