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

bootstap new apprepository-controller with files auto-generated by kubebuilder #4731

Merged
merged 7 commits into from
May 18, 2022

Conversation

gfichtenholt
Copy link
Contributor

This PR only contains files auto-generated by kubebuilder tool, i.e. the changes are mechanical.
The commands I ran to get here are in script.txt
Next: will be manual modifications of cmd/apprepository-controller-new/api/v1alpha2/apprepository_types.go to match the schema I want to have

@gfichtenholt gfichtenholt self-assigned this May 18, 2022
@netlify
Copy link

netlify bot commented May 18, 2022

Deploy Preview for kubeapps-dev ready!

Name Link
🔨 Latest commit fff552e
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/6284b7283319bf0008d7c003
😎 Deploy Preview https://deploy-preview-4731--kubeapps-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

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

Great! Thanks, +1 once the issue with the website gets sorted out!

@@ -0,0 +1,27 @@
# Build the manager binary
FROM golang:1.17 as builder
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather use the bitnami image for consistency:

Suggested change
FROM golang:1.17 as builder
FROM bitnami/golang:1.18.2 as builder


# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know whether or not we should this img from google or just FROM scratch as we are doing in the rest of Dockerfiles. I'd rather go with the latter unless there is any reason to use the google one.

Comment on lines 1 to 2
// Copyright XXXX-YYYY the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this PR is just for the autogenerated code, but just a heads up not to forget to update the copyright year like:

// Copyright 2022 the Kubeapps contributors.`
// SPDX-License-Identifier: Apache-2.0

spec:
containers:
- name: kube-rbac-proxy
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.11.0
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point, we might need to add this version to the release-process.md document in which we periodically look for updates

@@ -0,0 +1,74 @@
module github.com/vmware-tanzu/kubeapps

go 1.17
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this file should be at the root level instead (for the sake of consistency with the rest of the go code we have)

Comment on lines 1 to 15
/*
Copyright 2022.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/*
Copyright 2022.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Copyright 2022 the Kubeapps contributors.
// SPDX-License-Identifier: Apache-2.0

@@ -0,0 +1,99 @@
These are the commands I ran after bootstrapping kubebuilder locally per
Copy link
Contributor

Choose a reason for hiding this comment

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

Great, thanks!

At some point, it'd be great if this file gets converted into a markdown-based one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed. at some point 😄 right now I just want to plow ahead, there is a lot of changes to come in

@gfichtenholt gfichtenholt merged commit 6164271 into vmware-tanzu:main May 18, 2022
@gfichtenholt gfichtenholt deleted the new-apprepo-controller-1 branch May 18, 2022 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Use redis for caching repo and chart data in helm instead of postgresql
2 participants