Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Conversation

@simonswine
Copy link
Contributor

What this PR does / why we need it:

Pins k8s.io dependencies to release-1.8 branches which are hopefully more stable, better tested and better integrated than picking a random commit from the master branch of each project.

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Fixes: https://gitlab.jetstack.net/tarmak/tarmak/issues/138
Replaces: #14

Special notes for your reviewer:

Compared to #14 this reuses the way how we build the API client and listers/informers. Wing server runs in standalone only mode, we never use delegated auth

Release note:

Update vendored k8s.io packages to target release-1.8/release-5.0 branches

@jetstack-bot jetstack-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Oct 24, 2017
@jetstack-bot jetstack-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 24, 2017
@simonswine
Copy link
Contributor Author

@munnerz I am not too sure how to implement the SkipComplete with this updated code base. Maybe you can give me a hint or at least tell the trade off, why we had it before

Copy link
Contributor

@munnerz munnerz left a comment

Choose a reason for hiding this comment

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

Just the one comment about ListMeta's optional tag. If you update that and ping me I'll add a lgtm label @simonswine

metav1.TypeMeta
metav1.ObjectMeta
// +optional
metav1.ListMeta
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 think this is, or should be, optional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

// New returns a new instance of WingServer from the given config.
func (c completedConfig) New() (*WingServer, error) {
genericServer, err := c.Config.GenericConfig.SkipComplete().New("wing", genericapiserver.EmptyDelegate) // completion is done in Complete, no need for a second time
genericServer, err := c.GenericConfig.New("wing", genericapiserver.EmptyDelegate)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not using 'SkipComplete' looks good to me, as we already store a reference to the completed config on L68 (40390ed#diff-eeee2947c8ccb06990948a4196759b69R68).

In the previous code we threw away the completedConfig structure returned from cfg.GenericConfig.Complete, which meant we had to re-construct this completed configuration (albeit this time without calling Complete - I assume this was okay because Complete was originally called on a pointer? Not sure as I've not checked the code for Complete yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just wanted someone to double check

@munnerz
Copy link
Contributor

munnerz commented Oct 25, 2017

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 25, 2017
@simonswine
Copy link
Contributor Author

/approve

@jetstack-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: munnerz, simonswine

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 25, 2017
@jetstack-bot
Copy link
Collaborator

Automatic merge from submit-queue.

@jetstack-bot
Copy link
Collaborator

Removing label cherrypick-candidate because no release milestone was set. This is an invalid state and thus this PR is not being considered for cherry-pick to any release branch. Please add an appropriate release milestone and then re-add the label.

@jetstack-bot
Copy link
Collaborator

Removing label cherrypick-candidate because no release milestone was set. This is an invalid state and thus this PR is not being considered for cherry-pick to any release branch. Please add an appropriate release milestone and then re-add the label.

simonswine pushed a commit to simonswine/tarmak that referenced this pull request Nov 22, 2017
…rver-port

Disable API server's insecure port binding
simonswine pushed a commit to simonswine/tarmak that referenced this pull request Jan 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants