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): add pod labels on dataplane and use proxy type labels #12453

Merged
merged 12 commits into from
Jan 15, 2025
6 changes: 4 additions & 2 deletions api/common/v1alpha1/ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ var order = map[TargetRefKind]int{
type TargetRefProxyType string

var (
Sidecar TargetRefProxyType = "Sidecar"
Gateway TargetRefProxyType = "Gateway"
Sidecar TargetRefProxyType = "Sidecar"
Gateway TargetRefProxyType = "Gateway"
ZoneIngress TargetRefProxyType = "ZoneIngress"
ZoneEgress TargetRefProxyType = "ZoneEgress"
)

func (k TargetRefKind) Compare(o TargetRefKind) int {
Expand Down
81 changes: 46 additions & 35 deletions api/mesh/options.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/mesh/options.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ message KumaResourceOptions {

// Short name for xds or service reference.
string short_name = 19;

// Indicates if this resource is a proxy.
bool is_proxy = 20;
}

message KumaWsOptions {
Expand Down
81 changes: 41 additions & 40 deletions api/mesh/v1alpha1/dataplane.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/mesh/v1alpha1/dataplane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message Dataplane {
option (kuma.mesh.resource).ws.name = "dataplane";
option (kuma.mesh.resource).scope_namespace = true;
option (kuma.mesh.resource).has_insights = true;
option (kuma.mesh.resource).is_proxy = true;
option (kuma.mesh.resource).additional_printer_columns =
"description=\"Service tag of the first "
"inbound\",JSONPath=`.spec.networking.inbound[0].tags[\'kuma\\.io/"
Expand Down
Loading
Loading