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

chore: remove protos for new policies #5218

Merged
merged 27 commits into from
Nov 2, 2022

Conversation

lobkovilya
Copy link
Contributor

@lobkovilya lobkovilya commented Oct 26, 2022

Current PR rewrites new policies using plain Go struct instead of protobuf.

Checklist prior to review

  • Link to docs PR or issue --
  • Link to UI issue or PR --
  • Is the issue worked on linked? -- get rid of protos for new policies #5088
  • The PR does not hardcode values that might break projects that depend on kuma (e.g. "kumahq" as a image registry) --
  • The PR will work for both Linux and Windows, system specific functions like syscall.Mkfifo have equivalent implementation on the other OS --
  • Unit Tests --
  • E2E Tests --
  • Manual Universal Tests --
  • Manual Kubernetes Tests --
  • Do you need to update UPGRADE.md? --
  • Does it need to be backported according to the backporting policy? --
  • Do you need to explicitly set a > Changelog: entry here or add a ci/ label to run fewer/more tests?

Changelog: chore(proto): remove protos for new policies

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>

# Conflicts:
#	pkg/api-server/inspect_endpoints_test.go
#	pkg/core/xds/rules.go
#	pkg/core/xds/rules_test.go
#	pkg/plugins/policies/meshaccesslog/plugin/v1alpha1/plugin.go
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>

# Conflicts:
#	app/kumactl/cmd/install/testdata/install-control-plane.defaults.golden.yaml
#	app/kumactl/cmd/install/testdata/install-control-plane.gateway-api-present-not-enabled.yaml
#	app/kumactl/cmd/install/testdata/install-control-plane.gateway-api-present.yaml
#	app/kumactl/cmd/install/testdata/install-control-plane.with-helm-set.yaml
#	app/kumactl/cmd/install/testdata/install-crds.all.golden.yaml
#	app/kumactl/cmd/install/testdata/install-crds.experimental-gatewayapi.golden.yaml
#	deployments/charts/kuma/crds/kuma.io_meshtrafficpermissions.yaml
#	pkg/core/resources/model/rest/list_test.go
#	pkg/core/xds/rules_test.go
#	pkg/plugins/policies/meshaccesslog/plugin/v1alpha1/plugin.go
#	pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/meshtrafficpermission.pb.go
#	pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/meshtrafficpermission.proto
#	pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/schema.yaml
#	pkg/plugins/policies/meshtrafficpermission/k8s/crd/kuma.io_meshtrafficpermissions.yaml
@lobkovilya lobkovilya marked this pull request as ready for review October 26, 2022 14:29
@lobkovilya lobkovilya requested a review from a team as a code owner October 26, 2022 14:29
@lahabana lahabana linked an issue Oct 26, 2022 that may be closed by this pull request
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
api/common/v1alpha1/targetref.go Outdated Show resolved Hide resolved
api/common/v1alpha1/targetref.go Outdated Show resolved Hide resolved
api/common/v1alpha1/targetref.go Show resolved Hide resolved
api/common/v1alpha1/targetref.go Outdated Show resolved Hide resolved
api/common/v1alpha1/targetref.go Outdated Show resolved Hide resolved
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
go.mod Outdated Show resolved Hide resolved
pkg/plugins/policies/matchers/match_test.go Outdated Show resolved Hide resolved
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Copy link
Contributor

@lahabana lahabana left a comment

Choose a reason for hiding this comment

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

Some nits but LGTM

.golangci.yml Show resolved Hide resolved
pkg/core/xds/testdata/rules/06.golden.yaml Outdated Show resolved Hide resolved
tools/policy-gen/generator/cmd/helpers.go Outdated Show resolved Hide resolved
tools/policy-gen/generator/cmd/helpers.go Outdated Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
Co-authored-by: Charly Molter <charly@molter.io>
Signed-off-by: Ilya Lobkov <lobkovilya@yandex.ru>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
@lobkovilya lobkovilya merged commit db9de2b into kumahq:master Nov 2, 2022
@lobkovilya lobkovilya deleted the chore/remove-protos branch November 2, 2022 16:11
@lahabana lahabana mentioned this pull request Dec 13, 2022
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.

get rid of protos for new policies
2 participants