Skip to content

Conversation

@leoryu
Copy link
Contributor

@leoryu leoryu commented Aug 20, 2021

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature
/kind flake

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@leoryu leoryu force-pushed the fix/update_needupdate_logic branch 4 times, most recently from 411a7b2 to a6cd919 Compare August 23, 2021 07:44
@leoryu leoryu changed the title fix(platform): update cls needupdate logic fix(platform): update cls/mc needupdate logic Aug 23, 2021
Copy link
Collaborator

@pavlelee pavlelee left a comment

Choose a reason for hiding this comment

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

finished

c.queue.Add(key)
}

func (c *Controller) needsUpdate(old *platformv1.Cluster, new *platformv1.Cluster) bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

machine controller will upgrade too.

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add some test case for needsUpdate, ensure that several state judgments meet expectations

},
want: false,
},
// TODO: Add test cases.
Copy link
Collaborator

Choose a reason for hiding this comment

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

miss :

  1. old.ClusterCondition.Status=Unknown && new.ClusterCondition.Status=True
  2. old.ClusterCondition.Status=Unknown && new.ClusterCondition.Status=False
  3. old.ClusterCondition.Status=Unknown && new.ClusterCondition.Status=Unknown
  4. old.ClusterCondition.Status=True && new.ClusterCondition.Status=Unknown
    1. old.ClusterCondition.Status=False && new.ClusterCondition.Status=Unknown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

1.t 2f 3t 4t 5t

@leoryu leoryu force-pushed the fix/update_needupdate_logic branch from a6cd919 to e126f3a Compare August 23, 2021 11:18
@leoryu leoryu force-pushed the fix/update_needupdate_logic branch from e126f3a to 24437c0 Compare August 23, 2021 11:39
@leoryu leoryu merged commit 1fdf4f3 into tkestack:master Aug 23, 2021
@leoryu leoryu deleted the fix/update_needupdate_logic branch August 23, 2021 12:02
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