AUTOSCALE-588: Initialize repo structure #4
Conversation
|
Skipping CI for Draft Pull Request. |
|
@maxcao13: This pull request references AUTOSCALE-588 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maxcao13 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The skeleton — builds, produces a container image, CVO can deploy it (operator starts, runs health checks, but registers no controllers). Includes: - cmd/main.go: base entry point with flag parsing and signal handling - pkg/operator: manager setup (options, validation, leader election) - pkg/version: build-time version injection - install/: CVO manifests (Namespace, ServiceAccount, Role/RoleBinding for leader election, Deployment, ClusterOperator, image-references) - Dockerfile, Makefile, .gitignore, .ci-operator.yaml
Vendors go.mod dependencies (controller-runtime, client-go, API machinery, AWS SDK v2, and transitive dependencies).
Adds .golangci.yml aligned with upstream Karpenter's enabled linters (staticcheck, gosec, errorlint, revive, etc.) and OpenShift's gci import ordering. Pins golangci-lint v2.11.4 in the Makefile via `go run` to ensure consistent results across environments.
|
@maxcao13: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Adds the initial repository structure for karpenter-operator:
CR, and image-references
manager with health/ready probes
Helped with cursor + claude opus 4.6.
The operator builds and starts but doesn't do anything yet.
Anyone can test on a cluster with:
I separated the vendor commit because it's a million lines, so just ignore the second commit when reviewing.