|
8 | 8 | #include "envoy/type/v3/percent.pb.h"
|
9 | 9 |
|
10 | 10 | #include "common/common/assert.h"
|
| 11 | +#include "common/common/documentation_url.h" |
11 | 12 | #include "common/common/fmt.h"
|
12 | 13 | #include "common/config/api_type_oracle.h"
|
13 | 14 | #include "common/config/version_converter.h"
|
@@ -198,11 +199,9 @@ void deprecatedFieldHelper(Runtime::Loader* runtime, bool proto_annotated_as_dep
|
198 | 199 | if (warn_only) {
|
199 | 200 | ENVOY_LOG_MISC(warn, "{}", with_overridden);
|
200 | 201 | } else {
|
201 |
| - const char fatal_error[] = |
202 |
| - " If continued use of this field is absolutely necessary, see " |
203 |
| - "https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime" |
204 |
| - "#using-runtime-overrides-for-deprecated-features for how to apply a temporary and " |
205 |
| - "highly discouraged override."; |
| 202 | + const char fatal_error[] = " If continued use of this field is absolutely necessary, " |
| 203 | + "see " ENVOY_DOC_URL_RUNTIME_OVERRIDE_DEPRECATED " for how " |
| 204 | + "to apply a temporary and highly discouraged override."; |
206 | 205 | throw ProtoValidationException(with_overridden + fatal_error, message);
|
207 | 206 | }
|
208 | 207 | }
|
@@ -408,8 +407,7 @@ void checkForDeprecatedNonRepeatedEnumValue(const Protobuf::Message& message,
|
408 | 407 | enum_value_descriptor->name(), " for enum '", field->full_name(), "' from file ",
|
409 | 408 | filename, ". This enum value will be removed from Envoy soon",
|
410 | 409 | (default_value ? " so a non-default value must now be explicitly set" : ""),
|
411 |
| - ". Please see https://www.envoyproxy.io/docs/envoy/latest/intro/deprecated " |
412 |
| - "for details."); |
| 410 | + ". Please see " ENVOY_DOC_URL_VERSION_HISTORY " for details."); |
413 | 411 | deprecatedFieldHelper(
|
414 | 412 | runtime, true /*deprecated*/,
|
415 | 413 | enum_value_descriptor->options().GetExtension(envoy::annotations::disallowed_by_default_enum),
|
@@ -440,11 +438,10 @@ class UnexpectedFieldProtoVisitor : public ProtobufMessage::ConstProtoVisitor {
|
440 | 438 |
|
441 | 439 | // If this field is deprecated, warn or throw an error.
|
442 | 440 | if (field.options().deprecated()) {
|
443 |
| - const std::string warning = absl::StrCat( |
444 |
| - "Using {}deprecated option '", field.full_name(), "' from file ", filename, |
445 |
| - ". This configuration will be removed from " |
446 |
| - "Envoy soon. Please see https://www.envoyproxy.io/docs/envoy/latest/intro/deprecated " |
447 |
| - "for details."); |
| 441 | + const std::string warning = |
| 442 | + absl::StrCat("Using {}deprecated option '", field.full_name(), "' from file ", filename, |
| 443 | + ". This configuration will be removed from " |
| 444 | + "Envoy soon. Please see " ENVOY_DOC_URL_VERSION_HISTORY " for details."); |
448 | 445 |
|
449 | 446 | deprecatedFieldHelper(runtime_, true /*deprecated*/,
|
450 | 447 | field.options().GetExtension(envoy::annotations::disallowed_by_default),
|
|
0 commit comments