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(kuma-cp) - set host network var #4209

Merged
merged 11 commits into from
Apr 28, 2022
Merged

Conversation

SallyBlichWalkMe
Copy link
Contributor

@SallyBlichWalkMe SallyBlichWalkMe commented Apr 21, 2022

Summary

For alternate overlay networking(other than the basic CNI provided by EKS for example, like cilium),
This is mandatory value that has to be set, otherwise it will have communication errors with the control plane.
If you are using the default CNI component, it's running on the default network.

  • Implement hostNetwork: true in cp-deployment.yaml file.

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Update UPGRADE.md with any steps users will need to take when upgrading.
  • Add backport-to-stable label if the code follows our backporting policy

Signed-off-by: Sally Blich <sally.blich@walkme.com>
@SallyBlichWalkMe SallyBlichWalkMe requested a review from a team as a code owner April 21, 2022 06:46
@SallyBlichWalkMe
Copy link
Contributor Author

@jakubdyszkiewicz @lahabana
You are right, I pulled from the wrong branch all the time (upstream\master instead of origin)
Sorry for all the mass, last PR :)

@jakubdyszkiewicz
Copy link
Contributor

Not sure why CI is not running, but I can already tell that you will need to update goldenfiles

make test PKG_LIST=./app/kumactl/pkg/install/... UPDATE_GOLDEN_FILES=true

@SallyBlichWalkMe
Copy link
Contributor Author

Not sure why CI is not running, but I can already tell that you will need to update goldenfiles

make test PKG_LIST=./app/kumactl/pkg/install/... UPDATE_GOLDEN_FILES=true

Thanks for the help, So I ran it again,
And I'm getting this now while running 'make check' (everything is pulled from origin/master):

INFO [config_reader] Config search paths: [./ /Users/XXXX/Documents/GitHub/kuma /Users/XXXX/Documents/GitHub /Users/XXXX/Documents /Users/XXXX /Users /] 
INFO [config_reader] Used config file .golangci.yml 
INFO [lintersdb] Active 21 linters: [bodyclose contextcheck deadcode errcheck gci gocritic gofmt gomodguard gosimple govet importas ineffassign misspell staticcheck structcheck typecheck unconvert unparam unused varcheck whitespace] 
INFO [loader] Go packages loading at mode 575 (types_sizes|deps|name|compiled_files|exports_file|files|imports) took 25.025997111s 
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 210.204222ms 
WARN [linters context] bodyclose is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] contextcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] gci: `local-prefixes` is deprecated, use `sections` and `prefix(github.com/kumahq/kuma)` instead. 
INFO [linters context/goanalysis] analyzers took 8.888597162s with top 10 stages: gofmt: 2.56064226s, gocritic: 1.902060368s, unconvert: 909.377978ms, misspell: 655.621488ms, printf: 412.760666ms, the_only_name: 371.498682ms, ctrlflow: 369.927768ms, gci: 287.847999ms, whitespace: 161.62606ms, importas: 118.623723ms 
WARN [linters context] gosimple is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] staticcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] unparam is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] unused is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
INFO [runner/skip dirs] Skipped 1 issues from dir pkg/transparentproxy/istio/tools/istio-iptables/pkg/dependencies by pattern pkg/transparentproxy/istio/tools 
INFO [runner/skip dirs] Skipped 3 issues from dir pkg/transparentproxy/istio/tools/istio-iptables/pkg/cmd by pattern pkg/transparentproxy/istio/tools 
INFO [runner/skip dirs] Skipped 5 issues from dir pkg/transparentproxy/istio/tools/istio-iptables/pkg/validation by pattern pkg/transparentproxy/istio/tools 
INFO [runner] Issues before processing: 119, after processing: 0 
INFO [runner] Processors filtering stat (out/in): filename_unadjuster: 119/119, exclude: 49/49, exclude-rules: 1/49, autogenerated_exclude: 49/110, cgo: 119/119, skip_files: 119/119, skip_dirs: 110/119, path_prettifier: 119/119, identifier_marker: 49/49, nolint: 0/1 
INFO [runner] processing took 277.474136ms with stages: autogenerated_exclude: 267.529908ms, nolint: 4.226214ms, path_prettifier: 4.179668ms, exclude-rules: 541.01µs, identifier_marker: 513.529µs, skip_dirs: 333.897µs, skip_files: 102.07µs, cgo: 32.488µs, filename_unadjuster: 10.462µs, max_same_issues: 1.642µs, uniq_by_line: 679ns, path_shortener: 442ns, diff: 346ns, max_from_linter: 307ns, source_code: 302ns, max_per_file_from_linter: 275ns, severity-rules: 267ns, exclude: 263ns, sort_results: 245ns, path_prefixer: 122ns 
INFO [runner] linters took 15.933866202s with stages: goanalysis_metalinter: 15.656016374s, unused: 149.168µs, bodyclose: 26.787µs, structcheck: 26.748µs, gosimple: 18.988µs, unparam: 15.421µs, staticcheck: 7.065µs, contextcheck: 4.89µs 
INFO fixer took 0s with no stages                 
INFO File cache stats: 495 entries of total size 2.1MiB 
INFO Memory: 413 samples, avg is 135.2MB, max is 383.7MB 
INFO Execution took 41.190547904s                 
find . -name "*.sh" -not -path "./.git/*" -exec shellcheck -P SCRIPTDIR -x {} +
/Users/XXXX/bin/helm-docs -s="file" --chart-search-root=./deployments/charts
INFO[2022-04-24T13:55:24+03:00] Found Chart directories [kuma]               
INFO[2022-04-24T13:55:24+03:00] Generating README Documentation for chart /Users/XXXX/Documents/GitHub/kuma/deployments/charts/kuma 
/Users/XXXX/go/bin/ginkgo unfocus
Scanning for focus...
git diff --quiet || test $(git diff --name-only | grep -v -e 'go.mod$' -e 'go.sum$' | wc -l) -eq 0 || ( echo "The following changes (result of code generators and code checks) have been detected:" && git --no-pager diff && false ) # fail if Git working tree is dirty
The following changes (result of code generators and code checks) have been detected:
diff --git a/api/mesh/options.pb.go b/api/mesh/options.pb.go
index 1ff37df15..8d30e9e92 100644
--- a/api/mesh/options.pb.go
+++ b/api/mesh/options.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/options.proto
 
 package mesh
diff --git a/api/mesh/v1alpha1/circuit_breaker.pb.go b/api/mesh/v1alpha1/circuit_breaker.pb.go
index e91cc92ae..594163df1 100644
--- a/api/mesh/v1alpha1/circuit_breaker.pb.go
+++ b/api/mesh/v1alpha1/circuit_breaker.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/circuit_breaker.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/dataplane.pb.go b/api/mesh/v1alpha1/dataplane.pb.go
index 00be008fb..348737e9b 100644
--- a/api/mesh/v1alpha1/dataplane.pb.go
+++ b/api/mesh/v1alpha1/dataplane.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/dataplane.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/dataplane_insight.pb.go b/api/mesh/v1alpha1/dataplane_insight.pb.go
index 510ff88c2..83e3526c2 100644
--- a/api/mesh/v1alpha1/dataplane_insight.pb.go
+++ b/api/mesh/v1alpha1/dataplane_insight.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/dataplane_insight.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/dataplane_overview.pb.go b/api/mesh/v1alpha1/dataplane_overview.pb.go
index a8579b527..bb8ef75d8 100644
--- a/api/mesh/v1alpha1/dataplane_overview.pb.go
+++ b/api/mesh/v1alpha1/dataplane_overview.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/dataplane_overview.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/envoy_admin.pb.go b/api/mesh/v1alpha1/envoy_admin.pb.go
index 3739c5b51..5b029feea 100644
--- a/api/mesh/v1alpha1/envoy_admin.pb.go
+++ b/api/mesh/v1alpha1/envoy_admin.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/envoy_admin.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/externalservice.pb.go b/api/mesh/v1alpha1/externalservice.pb.go
index b34228ca8..f5b972824 100644
--- a/api/mesh/v1alpha1/externalservice.pb.go
+++ b/api/mesh/v1alpha1/externalservice.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/externalservice.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/fault_injection.pb.go b/api/mesh/v1alpha1/fault_injection.pb.go
index 70a9c5d6c..3de6fe820 100644
--- a/api/mesh/v1alpha1/fault_injection.pb.go
+++ b/api/mesh/v1alpha1/fault_injection.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/fault_injection.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/gateway.pb.go b/api/mesh/v1alpha1/gateway.pb.go
index 9d879e23e..83a5dda51 100644
--- a/api/mesh/v1alpha1/gateway.pb.go
+++ b/api/mesh/v1alpha1/gateway.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/gateway.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/gateway_route.pb.go b/api/mesh/v1alpha1/gateway_route.pb.go
index 8b19cccaf..55c2d548f 100644
--- a/api/mesh/v1alpha1/gateway_route.pb.go
+++ b/api/mesh/v1alpha1/gateway_route.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/gateway_route.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/health_check.pb.go b/api/mesh/v1alpha1/health_check.pb.go
index 8a46aea15..618af7771 100644
--- a/api/mesh/v1alpha1/health_check.pb.go
+++ b/api/mesh/v1alpha1/health_check.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/health_check.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/http_method.pb.go b/api/mesh/v1alpha1/http_method.pb.go
index bd0253592..6b60062b0 100644
--- a/api/mesh/v1alpha1/http_method.pb.go
+++ b/api/mesh/v1alpha1/http_method.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/http_method.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/kds.pb.go b/api/mesh/v1alpha1/kds.pb.go
index 082474d34..f0e2a96bf 100644
--- a/api/mesh/v1alpha1/kds.pb.go
+++ b/api/mesh/v1alpha1/kds.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/kds.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/mesh.pb.go b/api/mesh/v1alpha1/mesh.pb.go
index bb48f5e48..6f71e638d 100644
--- a/api/mesh/v1alpha1/mesh.pb.go
+++ b/api/mesh/v1alpha1/mesh.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/mesh.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/mesh_insight.pb.go b/api/mesh/v1alpha1/mesh_insight.pb.go
index bd63b6274..6a034fae1 100644
--- a/api/mesh/v1alpha1/mesh_insight.pb.go
+++ b/api/mesh/v1alpha1/mesh_insight.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/mesh_insight.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/metrics.pb.go b/api/mesh/v1alpha1/metrics.pb.go
index 917b3b099..b28e40ab0 100644
--- a/api/mesh/v1alpha1/metrics.pb.go
+++ b/api/mesh/v1alpha1/metrics.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/metrics.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/mux.pb.go b/api/mesh/v1alpha1/mux.pb.go
index 705fa8359..bc1a971d5 100644
--- a/api/mesh/v1alpha1/mux.pb.go
+++ b/api/mesh/v1alpha1/mux.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/mux.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/proxy_template.pb.go b/api/mesh/v1alpha1/proxy_template.pb.go
index e5c006eff..52aeb423b 100644
--- a/api/mesh/v1alpha1/proxy_template.pb.go
+++ b/api/mesh/v1alpha1/proxy_template.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/proxy_template.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/rate_limit.pb.go b/api/mesh/v1alpha1/rate_limit.pb.go
index efb04a4f5..52e4b36f3 100644
--- a/api/mesh/v1alpha1/rate_limit.pb.go
+++ b/api/mesh/v1alpha1/rate_limit.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/rate_limit.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/retry.pb.go b/api/mesh/v1alpha1/retry.pb.go
index 4192debe8..230fe6d1c 100644
--- a/api/mesh/v1alpha1/retry.pb.go
+++ b/api/mesh/v1alpha1/retry.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/retry.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/selector.pb.go b/api/mesh/v1alpha1/selector.pb.go
index 3cdea328c..59d9384a5 100644
--- a/api/mesh/v1alpha1/selector.pb.go
+++ b/api/mesh/v1alpha1/selector.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/selector.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/service_insight.pb.go b/api/mesh/v1alpha1/service_insight.pb.go
index 6812fa542..5d709c6c6 100644
--- a/api/mesh/v1alpha1/service_insight.pb.go
+++ b/api/mesh/v1alpha1/service_insight.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/service_insight.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/timeout.pb.go b/api/mesh/v1alpha1/timeout.pb.go
index 73a881d2e..6ce75bdf5 100644
--- a/api/mesh/v1alpha1/timeout.pb.go
+++ b/api/mesh/v1alpha1/timeout.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/timeout.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/traffic_log.pb.go b/api/mesh/v1alpha1/traffic_log.pb.go
index b76892a74..8b267bf8d 100644
--- a/api/mesh/v1alpha1/traffic_log.pb.go
+++ b/api/mesh/v1alpha1/traffic_log.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/traffic_log.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/traffic_permission.pb.go b/api/mesh/v1alpha1/traffic_permission.pb.go
index c6c16215d..4c6cb4bfa 100644
--- a/api/mesh/v1alpha1/traffic_permission.pb.go
+++ b/api/mesh/v1alpha1/traffic_permission.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/traffic_permission.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/traffic_route.pb.go b/api/mesh/v1alpha1/traffic_route.pb.go
index 5a6881d47..a7d9a1bfa 100644
--- a/api/mesh/v1alpha1/traffic_route.pb.go
+++ b/api/mesh/v1alpha1/traffic_route.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/traffic_route.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/traffic_trace.pb.go b/api/mesh/v1alpha1/traffic_trace.pb.go
index 5d689408f..bd3ac5fb0 100644
--- a/api/mesh/v1alpha1/traffic_trace.pb.go
+++ b/api/mesh/v1alpha1/traffic_trace.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/traffic_trace.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/virtual_outbound.pb.go b/api/mesh/v1alpha1/virtual_outbound.pb.go
index d262e6fed..79d2bd05b 100644
--- a/api/mesh/v1alpha1/virtual_outbound.pb.go
+++ b/api/mesh/v1alpha1/virtual_outbound.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/virtual_outbound.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/zone_ingress.pb.go b/api/mesh/v1alpha1/zone_ingress.pb.go
index ea0ecfd8e..e6293dce3 100644
--- a/api/mesh/v1alpha1/zone_ingress.pb.go
+++ b/api/mesh/v1alpha1/zone_ingress.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/zone_ingress.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/zone_ingress_insight.pb.go b/api/mesh/v1alpha1/zone_ingress_insight.pb.go
index f9a30c948..564df8b8b 100644
--- a/api/mesh/v1alpha1/zone_ingress_insight.pb.go
+++ b/api/mesh/v1alpha1/zone_ingress_insight.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/zone_ingress_insight.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/zoneegress.pb.go b/api/mesh/v1alpha1/zoneegress.pb.go
index a8abaea8b..f1fa78a71 100644
--- a/api/mesh/v1alpha1/zoneegress.pb.go
+++ b/api/mesh/v1alpha1/zoneegress.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/zoneegress.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/zoneegressinsight.pb.go b/api/mesh/v1alpha1/zoneegressinsight.pb.go
index 46fdbf098..34db32918 100644
--- a/api/mesh/v1alpha1/zoneegressinsight.pb.go
+++ b/api/mesh/v1alpha1/zoneegressinsight.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/zoneegressinsight.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/zoneegressoverview.pb.go b/api/mesh/v1alpha1/zoneegressoverview.pb.go
index 98dd21bf8..258c17304 100644
--- a/api/mesh/v1alpha1/zoneegressoverview.pb.go
+++ b/api/mesh/v1alpha1/zoneegressoverview.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/zoneegressoverview.proto
 
 package v1alpha1
diff --git a/api/mesh/v1alpha1/zoneingress_overview.pb.go b/api/mesh/v1alpha1/zoneingress_overview.pb.go
index 1885a1810..f92a64810 100644
--- a/api/mesh/v1alpha1/zoneingress_overview.pb.go
+++ b/api/mesh/v1alpha1/zoneingress_overview.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: mesh/v1alpha1/zoneingress_overview.proto
 
 package v1alpha1
diff --git a/api/observability/v1/mads.pb.go b/api/observability/v1/mads.pb.go
index 73fb3bb1a..acb4c675f 100644
--- a/api/observability/v1/mads.pb.go
+++ b/api/observability/v1/mads.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: observability/v1/mads.proto
 
 package v1
diff --git a/api/system/v1alpha1/config.pb.go b/api/system/v1alpha1/config.pb.go
index 80f9fa62d..93a1a3f2b 100644
--- a/api/system/v1alpha1/config.pb.go
+++ b/api/system/v1alpha1/config.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: system/v1alpha1/config.proto
 
 package v1alpha1
diff --git a/api/system/v1alpha1/datasource.pb.go b/api/system/v1alpha1/datasource.pb.go
index cf6ceaed6..c24dd6cd9 100644
--- a/api/system/v1alpha1/datasource.pb.go
+++ b/api/system/v1alpha1/datasource.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: system/v1alpha1/datasource.proto
 
 package v1alpha1
diff --git a/api/system/v1alpha1/secret.pb.go b/api/system/v1alpha1/secret.pb.go
index cfa563612..6319fa811 100644
--- a/api/system/v1alpha1/secret.pb.go
+++ b/api/system/v1alpha1/secret.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: system/v1alpha1/secret.proto
 
 package v1alpha1
diff --git a/api/system/v1alpha1/zone.pb.go b/api/system/v1alpha1/zone.pb.go
index 6eb165f9e..5c8028d04 100644
--- a/api/system/v1alpha1/zone.pb.go
+++ b/api/system/v1alpha1/zone.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: system/v1alpha1/zone.proto
 
 package v1alpha1
diff --git a/api/system/v1alpha1/zone_insight.pb.go b/api/system/v1alpha1/zone_insight.pb.go
index ceb43103f..9044a68c6 100644
--- a/api/system/v1alpha1/zone_insight.pb.go
+++ b/api/system/v1alpha1/zone_insight.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: system/v1alpha1/zone_insight.proto
 
 package v1alpha1
diff --git a/api/system/v1alpha1/zone_overview.pb.go b/api/system/v1alpha1/zone_overview.pb.go
index a6b967a77..7810259c6 100644
--- a/api/system/v1alpha1/zone_overview.pb.go
+++ b/api/system/v1alpha1/zone_overview.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: system/v1alpha1/zone_overview.proto
 
 package v1alpha1
diff --git a/deployments/charts/kuma/README.md b/deployments/charts/kuma/README.md
index 044ddfee0..05ac82897 100644
--- a/deployments/charts/kuma/README.md
+++ b/deployments/charts/kuma/README.md
@@ -61,6 +61,7 @@ A Helm chart for the Kuma Control Plane
 | controlPlane.extraSecrets | list | `[]` | Additional secrets to mount into the control plane |
 | controlPlane.webhooks.validator.additionalRules | string | `""` | Additional rules to apply on Kuma validator webhook. Useful when building custom policy on top of Kuma. |
 | controlPlane.webhooks.ownerReference.additionalRules | string | `""` | Additional rules to apply on Kuma owner reference webhook. Useful when building custom policy on top of Kuma. |
+| controlPlane.hostNetwork | bool | `false` | Specifies if the deployment should be started in hostNetwork mode. |
 | controlPlane.podSecurityContext | object | `{}` | Security context at the pod level for control plane. |
 | controlPlane.containerSecurityContext | object | `{}` | Security context at the container level for control plane. |
 | cni.enabled | bool | `false` | Install Kuma with CNI instead of proxy init container |
diff --git a/pkg/config/app/kumactl/v1alpha1/config.pb.go b/pkg/config/app/kumactl/v1alpha1/config.pb.go
index 1c1e88dc2..62a99d349 100644
--- a/pkg/config/app/kumactl/v1alpha1/config.pb.go
+++ b/pkg/config/app/kumactl/v1alpha1/config.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: pkg/config/app/kumactl/v1alpha1/config.proto
 
 package v1alpha1
diff --git a/pkg/plugins/ca/builtin/config/builtin_ca_config.pb.go b/pkg/plugins/ca/builtin/config/builtin_ca_config.pb.go
index 701d47da0..35368f7f1 100644
--- a/pkg/plugins/ca/builtin/config/builtin_ca_config.pb.go
+++ b/pkg/plugins/ca/builtin/config/builtin_ca_config.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: pkg/plugins/ca/builtin/config/builtin_ca_config.proto
 
 package config
diff --git a/pkg/plugins/ca/provided/config/provided_ca_config.pb.go b/pkg/plugins/ca/provided/config/provided_ca_config.pb.go
index d35459240..df66f3980 100644
--- a/pkg/plugins/ca/provided/config/provided_ca_config.pb.go
+++ b/pkg/plugins/ca/provided/config/provided_ca_config.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: pkg/plugins/ca/provided/config/provided_ca_config.proto
 
 package config
diff --git a/pkg/test/apis/sample/v1alpha1/sample_types.pb.go b/pkg/test/apis/sample/v1alpha1/sample_types.pb.go
index caac4755f..761da230f 100644
--- a/pkg/test/apis/sample/v1alpha1/sample_types.pb.go
+++ b/pkg/test/apis/sample/v1alpha1/sample_types.pb.go
@@ -1,7 +1,7 @@
 // Code generated by protoc-gen-go. DO NOT EDIT.
 // versions:
 //     protoc-gen-go v1.26.0
-//     protoc        v3.20.0
+//     protoc        v3.14.0
 // source: pkg/test/apis/sample/v1alpha1/sample_types.proto
 
 package v1alpha1
make: *** [check] Error 1

@lahabana
Copy link
Contributor

You need to use the latest tools.

You can do so with: rm ~/bin/protoc; make dev/tools

We need to make a better job of the dev env with tools...

@SallyBlichWalkMe
Copy link
Contributor Author

You need to use the latest tools.

You can do so with: rm ~/bin/protoc; make dev/tools

We need to make a better job of the dev env with tools...

Thanks for the response,
I ran that and now I'm getting this after 'make check':

1 chart(s) linted, 0 chart(s) failed
/Users/XXX/bin/golangci-lint run --timeout=10m -v
INFO [config_reader] Config search paths: [./ /Users/XXXX/Documents/GitHub/kuma /Users/XXX/Documents/GitHub /Users/XXXX/Documents /Users/XXX /Users /] 
INFO [config_reader] Used config file .golangci.yml 
INFO [lintersdb] Active 21 linters: [bodyclose contextcheck deadcode errcheck gci gocritic gofmt gomodguard gosimple govet importas ineffassign misspell staticcheck structcheck typecheck unconvert unparam unused varcheck whitespace] 
INFO [loader] Go packages loading at mode 575 (exports_file|name|compiled_files|deps|types_sizes|files|imports) took 22.102580221s 
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 178.028708ms 
WARN [linters context] bodyclose is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] contextcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] gci: `local-prefixes` is deprecated, use `sections` and `prefix(github.com/kumahq/kuma)` instead. 
INFO [linters context/goanalysis] analyzers took 31.148359634s with top 10 stages: gofmt: 9.549601685s, gocritic: 5.377661321s, misspell: 2.669233578s, unconvert: 2.380343885s, the_only_name: 2.241775959s, gci: 1.606211505s, ctrlflow: 1.367845992s, printf: 1.319425888s, whitespace: 682.799314ms, deadcode: 486.591061ms 
WARN [linters context] gosimple is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] staticcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] unparam is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
WARN [linters context] unused is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. 
INFO [runner/skip dirs] Skipped 1 issues from dir pkg/transparentproxy/istio/tools/istio-iptables/pkg/dependencies by pattern pkg/transparentproxy/istio/tools 
INFO [runner/skip dirs] Skipped 5 issues from dir pkg/transparentproxy/istio/tools/istio-iptables/pkg/validation by pattern pkg/transparentproxy/istio/tools 
INFO [runner/skip dirs] Skipped 3 issues from dir pkg/transparentproxy/istio/tools/istio-iptables/pkg/cmd by pattern pkg/transparentproxy/istio/tools 
INFO [runner] Issues before processing: 119, after processing: 0 
INFO [runner] Processors filtering stat (out/in): identifier_marker: 49/49, skip_files: 119/119, skip_dirs: 110/119, autogenerated_exclude: 49/110, exclude: 49/49, exclude-rules: 1/49, nolint: 0/1, cgo: 119/119, path_prettifier: 119/119, filename_unadjuster: 119/119 
INFO [runner] processing took 27.29273ms with stages: autogenerated_exclude: 15.50833ms, nolint: 5.19487ms, path_prettifier: 4.157631ms, identifier_marker: 983.966µs, exclude-rules: 767.992µs, skip_dirs: 551.524µs, skip_files: 83.83µs, cgo: 28.521µs, filename_unadjuster: 9.863µs, max_same_issues: 1.67µs, uniq_by_line: 790ns, diff: 644ns, max_from_linter: 497ns, severity-rules: 482ns, source_code: 442ns, exclude: 427ns, path_shortener: 407ns, max_per_file_from_linter: 363ns, sort_results: 310ns, path_prefixer: 171ns 
INFO [runner] linters took 10.919364187s with stages: goanalysis_metalinter: 10.891751383s, unused: 61.48µs, bodyclose: 26.941µs, unparam: 25.216µs, gosimple: 15.516µs, contextcheck: 7.785µs, staticcheck: 7.448µs, structcheck: 6.003µs 
INFO fixer took 0s with no stages                 
INFO File cache stats: 1311 entries of total size 5.8MiB 
INFO Memory: 334 samples, avg is 130.1MB, max is 435.2MB 
INFO Execution took 33.220239368s                 
find . -name "*.sh" -not -path "./.git/*" -exec shellcheck -P SCRIPTDIR -x {} +
/Users/XXX/bin/helm-docs -s="file" --chart-search-root=./deployments/charts
INFO[2022-04-25T11:56:51+03:00] Found Chart directories [kuma]               
INFO[2022-04-25T11:56:52+03:00] Generating README Documentation for chart /Users/XXX/Documents/GitHub/kuma/deployments/charts/kuma 
/Users/XXX/go/bin/ginkgo unfocus
Scanning for focus...
git diff --quiet || test $(git diff --name-only | grep -v -e 'go.mod$' -e 'go.sum$' | wc -l) -eq 0 || ( echo "The following changes (result of code generators and code checks) have been detected:" && git --no-pager diff && false ) # fail if Git working tree is dirty
The following changes (result of code generators and code checks) have been detected:
diff --git a/deployments/charts/kuma/README.md b/deployments/charts/kuma/README.md
index 044ddfee0..05ac82897 100644
--- a/deployments/charts/kuma/README.md
+++ b/deployments/charts/kuma/README.md
@@ -61,6 +61,7 @@ A Helm chart for the Kuma Control Plane
 | controlPlane.extraSecrets | list | `[]` | Additional secrets to mount into the control plane |
 | controlPlane.webhooks.validator.additionalRules | string | `""` | Additional rules to apply on Kuma validator webhook. Useful when building custom policy on top of Kuma. |
 | controlPlane.webhooks.ownerReference.additionalRules | string | `""` | Additional rules to apply on Kuma owner reference webhook. Useful when building custom policy on top of Kuma. |
+| controlPlane.hostNetwork | bool | `false` | Specifies if the deployment should be started in hostNetwork mode. |
 | controlPlane.podSecurityContext | object | `{}` | Security context at the pod level for control plane. |
 | controlPlane.containerSecurityContext | object | `{}` | Security context at the container level for control plane. |
 | cni.enabled | bool | `false` | Install Kuma with CNI instead of proxy init container |
make: *** [check] Error 1

@lahabana
Copy link
Contributor

lahabana commented Apr 25, 2022

Sorry need to also delete helm-docs: rm ~/bin/helm-docs and then make dev/tools

@SallyBlichWalkMe
Copy link
Contributor Author

Sorry need to also delete helm-docs: rm ~/bin/helm-docs and then make dev/tools
Thanks!
OK so I ran now:

 rm ~/bin/protoc                                                          
rm ~/bin/helm-docs
make dev/tools
make check

And I got the same error message at last time

@lahabana
Copy link
Contributor

My bad forgot you were adding an helm config in which case the change added in the make check is expected as you are changing the helm docs.

I've just tried myself and if you do:

make check
make test PKG_LIST=./app/kumactl/... UPDATE_GOLDEN_FILES=true

And then commit whatever changed you should be good to go

SallyBlichWalkMe and others added 7 commits April 26, 2022 16:25
Signed-off-by: Sally Blich <sally.blich@walkme.com>
Signed-off-by: Sally Blich <sally.blich@walkme.com>
Signed-off-by: Sally Blich <sally.blich@walkme.com>
Signed-off-by: Sally Blich <sally.blich@walkme.com>
Signed-off-by: Sally Blich <sally.blich@walkme.com>
SallyBlichWalkMe and others added 2 commits April 28, 2022 09:43
Added all changes that were made by make test command, to update the golden files

Signed-off-by: Sally Blich <sally.blich@walkme.com>
@codecov-commenter
Copy link

Codecov Report

Merging #4209 (00e3a48) into master (8e141ed) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4209      +/-   ##
==========================================
- Coverage   55.68%   55.68%   -0.01%     
==========================================
  Files         939      939              
  Lines       56691    56691              
==========================================
- Hits        31569    31567       -2     
- Misses      22607    22608       +1     
- Partials     2515     2516       +1     
Impacted Files Coverage Δ
pkg/kds/client/sink.go 59.45% <0.00%> (-8.11%) ⬇️
pkg/kds/reconcile/reconciler.go 79.48% <0.00%> (-5.13%) ⬇️
pkg/core/resources/manager/cache.go 85.71% <0.00%> (-2.60%) ⬇️
pkg/core/resources/model/rest/resource.go 71.60% <0.00%> (-1.24%) ⬇️
pkg/core/tokens/default_signing_key.go 72.22% <0.00%> (+5.55%) ⬆️
pkg/core/runtime/component/component.go 88.67% <0.00%> (+7.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e141ed...00e3a48. Read the comment docs.

@lahabana lahabana merged commit 717157e into kumahq:master Apr 28, 2022
parkanzky pushed a commit that referenced this pull request May 6, 2022
For alternate overlay networking(other than the basic CNI provided by EKS for example, like cilium),
This is mandatory value that has to be set, otherwise it will have communication errors with the control plane.
If you are using the default CNI component, it's running on the default network.

Implement hostNetwork: true in cp-deployment.yaml file.

Signed-off-by: Sally Blich <sally.blich@walkme.com>
Signed-off-by: Paul Parkanzky <paul.parkanzky@konghq.com>
lukidzi pushed a commit that referenced this pull request May 11, 2022
For alternate overlay networking(other than the basic CNI provided by EKS for example, like cilium),
This is mandatory value that has to be set, otherwise it will have communication errors with the control plane.
If you are using the default CNI component, it's running on the default network.

Implement hostNetwork: true in cp-deployment.yaml file.

Signed-off-by: Sally Blich <sally.blich@walkme.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.

4 participants