Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Add initial widget example #7

Merged
merged 1 commit into from
Jun 6, 2022
Merged

Conversation

ncdc
Copy link
Member

@ncdc ncdc commented May 31, 2022

- Use kubebuilder to initialize project
- Add Widget API + controller
- Update Makefile, readme to describe running on kcp

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
@ncdc ncdc marked this pull request as ready for review June 6, 2022 15:48
@ncdc ncdc changed the title [WIP] Initial widget example Add initial widget example Jun 6, 2022
@ncdc ncdc requested a review from fabianvf June 6, 2022 15:49
Copy link
Contributor

@stevekuznetsov stevekuznetsov left a comment

Choose a reason for hiding this comment

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

Looking good!


.PHONY: vet
vet: ## Run go vet against code.
go vet ./...
Copy link
Contributor

Choose a reason for hiding this comment

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

go test does this implicitly these days

Copy link
Member Author

Choose a reason for hiding this comment

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

This was boilerplate from kubebuilder init


// Include the clusterName from req.ObjectKey in the logger, similar to the namespace and name keys that are already
// there.
logger = logger.WithValues("clusterName", req.ObjectKey.Cluster.String())
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we expect changes to controller-runtime making this unnecessary in user-code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maaaaaybe but not in the immediate term

@stevekuznetsov stevekuznetsov merged commit c4ead22 into kcp-dev:main Jun 6, 2022
@ncdc ncdc deleted the apiexport branch June 24, 2022 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants