Skip to content

engine: don't call KIND load if cluster ref provided; s/kindPush/kindLoad [ch4292]#2898

Merged
maiamcc merged 3 commits into
masterfrom
maiamcc/skip-kind-load
Feb 6, 2020
Merged

engine: don't call KIND load if cluster ref provided; s/kindPush/kindLoad [ch4292]#2898
maiamcc merged 3 commits into
masterfrom
maiamcc/skip-kind-load

Conversation

@maiamcc

@maiamcc maiamcc commented Feb 4, 2020

Copy link
Copy Markdown
Contributor

Hello @nicks, @landism,

Please review the following commits I made in branch maiamcc/skip-kind-load:

8543921 (2020-02-04 14:09:48 -0500)
engine: don't call KIND load if cluster ref provided; s/kindPush/kindLoad [ch4292]

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@maiamcc
maiamcc requested review from landism and nicks February 4, 2020 19:44
@nicks

nicks commented Feb 4, 2020

Copy link
Copy Markdown
Contributor

i don't think this is quite what we want. i'm almost done with the auto-detection and that will make things clearer.

@nicks nicks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

actually, on thinking about this, i'm ok with this

ps.Printf(ctx, "Pushing to KIND")
err := ibd.kp.PushToKIND(ps.AttachLogger(ctx), ref)
isKind := ibd.env == k8s.EnvKIND5 || ibd.env == k8s.EnvKIND6
if isKind && !iTarget.HasDistinctClusterRef() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you move this into a separate shouldUseKINDLoad() method?

@maiamcc

maiamcc commented Feb 4, 2020

Copy link
Copy Markdown
Contributor Author

Will wait for #2899 and then rebase

@maiamcc
maiamcc merged commit 4f61aa4 into master Feb 6, 2020
@maiamcc
maiamcc deleted the maiamcc/skip-kind-load branch February 6, 2020 20:34
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