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

Add minimal docs on how to build and some minor build improvements #2

Merged
merged 14 commits into from
Aug 14, 2020
Merged

Add minimal docs on how to build and some minor build improvements #2

merged 14 commits into from
Aug 14, 2020

Conversation

JacobGabrielson
Copy link
Contributor

I ran into a few problems trying to get stuff to build - these seemed like the most obvious fixes. I'm definitely not wedded to them (I know GOPROXY=direct isn't always the greatest idea, but I'm not sure of another way to get things working easily when running under our VPN).

Copy link
Contributor

@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

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

Nice work getting it built!

Dockerfile Show resolved Hide resolved
Makefile Outdated

# find or download controller-gen
# download controller-gen if necessary
controller-gen:
Copy link
Contributor

Choose a reason for hiding this comment

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

Something along these lines used to be in here -- that's maybe how you found it.

I'm fairly wary of bloating the complexity of this Makefile with any logic beyond target dependencies and straightforward commands.

There are a number of dependencies required to run this package, what do you think about taking the assumption that controller-gen is already installed?

In CONTRIBUTING.md, we can document dependencies:

  1. kustomize
  2. kubectl
  3. controller-gen
    See: https://github.com/kubeflow/kfserving/blob/master/docs/DEVELOPER_GUIDE.md#install-requirements

README.md Outdated
To build Karpenter from source, please first install the following:

1. [go v1.14.4+](https://golang.org/dl/)
2. [kubebuilder dependencies](https://book.kubebuilder.io/quick-start.html#prerequisites)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you actually need kubebuilder after the initial generation scripts.

README.md Outdated Show resolved Hide resolved
README.md Outdated
## Setting up Container Repository

### Using AWS ECR
Copy link
Contributor

Choose a reason for hiding this comment

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

In my experience, if we're trying to pitch this as a k8s community project, staying vendor neutral is pretty important to other developers. I might remove this AWS section or move it to an AWS_DEVELOPER_GUIDE.md

@@ -8,11 +8,11 @@ COPY go.mod go.mod
COPY go.sum go.sum

# Build src
RUN go mod download
RUN GOPROXY=direct go mod download
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about this -- do you need to put this line in our Makefile as well? AWSK8sTester has abstracted out the build logic to be shared between make and docker. We should consider this if it gets too complex.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I guess we could - at some point it gets a bit too complicated (and plus it's kind of specific to us, or other folks who might be working on this from inside a network where there are going to be proxies in front of stuff). Right now I'm just setting this in my .bashrc.

@@ -4,7 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: 767520670908.dkr.ecr.us-west-2.amazonaws.com/karpenter
newName: 741206201142.dkr.ecr.us-west-2.amazonaws.com/karpenter
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we use the scalability infrastructure repo for this: 197575167141

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Snapshot successfully published to oci://071440425669.dkr.ecr.us-east-1.amazonaws.com/karpenter/snapshot/karpenter:v0-2f97976168caab424c5a1af12350487c8afd78fd.

gfcroft pushed a commit to gfcroft/karpenter-provider-aws that referenced this pull request Nov 25, 2023
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