Skip to content

cluster: load assignment config from docs for static cluster fails #4056

@yuval-k

Description

@yuval-k

When trying the static example config from here:
https://www.envoyproxy.io/docs/envoy/latest/configuration/overview/v2_overview#static

Envoy fails to load:

[2018-08-04 18:27:30.258][24307][critical][main] external/envoy/source/server/server.cc:78] error initializing configuration 'frontcfg.yaml': Proto constraint validation failed (BootstrapValidationError.StaticResources: ["embedded message failed validation"] | caused by StaticResourcesValidationError.Clusters[i]: ["embedded message failed validation"] | caused by ClusterValidationError.LoadAssignment: ["embedded message failed validation"] | caused by ClusterLoadAssignmentValidationError.ClusterName: ["value length must be at least " '\x01' " bytes"]): static_resources {

The source of this is the validation here:

string cluster_name = 1 [(validate.rules).string.min_bytes = 1];

And indeed when the issue was solved when the cluster name was added.

They way I understand it, we can either (1)remove the requirement for validation, or (2) fix the docs and add cluster name. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions