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

feat(mesh): add mesh support to tkestack #1063

Merged
merged 7 commits into from Mar 8, 2021

Conversation

foshantiger
Copy link
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Feature: add mesh support refer to proposal #1008

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.:


@huxiaoliang
Copy link
Contributor

@leoryu please help review and show you comments, thanks

@@ -73,7 +74,7 @@ require (
golang.org/x/crypto v0.0.0-20200414173820-0848c9571904
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
google.golang.org/grpc v1.26.0
google.golang.org/grpc v1.28.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change grpc verstion to 1.28.1, and redirect version to 1.26 in the head?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because of the etcd bug,see this:
etcd-io/etcd#11931

Copy link
Contributor

Choose a reason for hiding this comment

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

Please try to donwgrade grpc to v1.26 which is more stable version.

Copy link
Contributor

Choose a reason for hiding this comment

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

go.mod doesn't support inherit for replace option, that cause third party developer have to update go.mod to have this replace change, @foshantiger could you please take more time to find a better solution here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haven't find a solution better than replace yet, I will update the development doc as a notice for that.

* Tencent is pleased to support the open source community by making TKEStack
* available.
*
* Copyright (C) 2012-2019 Tencent. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check files you created, date shoud be 2021, not 2019 or 2020.

c.clusterToMainClustersMap)
}

//func (c *Cacher) preSync() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this dead code?


Clusters []*ClusterConfig `json:"clusters"`

// may remove 存量 1.3.6, DO NOT USE ANYMORE
Copy link
Contributor

Choose a reason for hiding this comment

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

Using english is better.


// ProxyConfiguration defines config options for Proxy
type ProxyConfiguration struct {
Image string `json:"image,omitempty" protobuf:"bytes,1,opt,name=image"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Some fileds have protobuf tag, but some fileds don't. Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Legacy code, I will delete the protobuf tags.


MornitorReportAddress string `json:"mornitor_report_address,omitempty"`

// 敏感信息
Copy link
Contributor

Choose a reason for hiding this comment

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

Using english is better.

return rets, errs
}

/*func (m *meshClusterService) GetService(
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check this dead func.

return result, nil
}

//func inApp(serviceNames []string, name string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check theses dead funcs.

@leoryu
Copy link
Contributor

leoryu commented Feb 2, 2021

lgtm

@huxiaoliang huxiaoliang merged commit 4b31b78 into tkestack:master Mar 8, 2021
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.

None yet

3 participants