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

Grayscale #50

Merged
merged 9 commits into from
Mar 10, 2021
Merged

Grayscale #50

merged 9 commits into from
Mar 10, 2021

Conversation

chenkaiyue
Copy link
Member

What this PR does:

  1. DeploymentGrid and statefulsetGrid can grayscale in different node unit
  2. Update KeepConsistence to DeepContains

Which issue(s) this PR fixes:

Fixes #
#24

@@ -31,6 +31,8 @@ const (
GridSelectorName = "superedge.io/grid-selector"
// GridSelectorKey corresponds to gridUniqKey of the custom-defined workload
GridSelectorUniqKeyName = "superedge.io/grid-uniq-key"
// TemplateHashKey is a key for storing template's hash value in labels.
TemplateHashKey = "service_group_template_hash_key"
Copy link
Member

Choose a reason for hiding this comment

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

please rename “ service_group_template_hash_key”,keep the same format with GridSelectorName and GridSelectorUniqKeyName

"hash/fnv"
)

func GenerateHash(template interface{}) uint64 {
Copy link
Member

Choose a reason for hiding this comment

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

Uint64 has a small range and is prone to hash collision. Please pay attention to user feedback

@neweyes
Copy link
Member

neweyes commented Mar 10, 2021

/lgtm

@neweyes neweyes merged commit 784b409 into superedge:release-0.2 Mar 10, 2021
00pf00 pushed a commit to 00pf00/superedge that referenced this pull request May 20, 2021
* add protocol required

* deploymentgrid grayscale

* statefulsetgrid grayscale

* add copyright&fix bug

* gofmt

* file mode

* grayscale doc

* rename

Signed-off-by: 00pf00 <feeli202012@gmail.com>
00pf00 pushed a commit to 00pf00/superedge that referenced this pull request May 20, 2021
* add protocol required

* deploymentgrid grayscale

* statefulsetgrid grayscale

* add copyright&fix bug

* gofmt

* file mode

* grayscale doc

* rename

Signed-off-by: 00pf00 <feeli202012@gmail.com>
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