Add the noop (ignored) status (#142)

* add noop/ignore status

* rebase
This commit is contained in:
Chris O'Haver 2019-04-09 16:56:51 -04:00 committed by GitHub
parent 56bee8655c
commit cf59f40250
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -22,7 +22,7 @@ func (n *Notice) ToString() string {
if n.Severity == unsupported { if n.Severity == unsupported {
s += "is unsupported by this migration tool in " + n.Version + "." s += "is unsupported by this migration tool in " + n.Version + "."
} else { } else {
s += "was " + n.Severity + " in " + n.Version + "." s += "is " + n.Severity + " in " + n.Version + "."
} }
if n.ReplacedBy != "" { if n.ReplacedBy != "" {
s += fmt.Sprintf(` It is replaced by "%v".`, n.ReplacedBy) s += fmt.Sprintf(` It is replaced by "%v".`, n.ReplacedBy)
@ -34,7 +34,8 @@ func (n *Notice) ToString() string {
} }
const ( const (
deprecated = "deprecated" // plugin/option is deprecated deprecated = "deprecated" // plugin/option is deprecated in CoreDNS
removed = "removed" // plugin/option has been removed ignored = "ignored" // plugin/option is ignored by CoreDNS
removed = "removed" // plugin/option has been removed from CoreDNS
unsupported = "unsupported" // plugin/option is not supported by the migration tool unsupported = "unsupported" // plugin/option is not supported by the migration tool
) )

View file

@ -63,7 +63,7 @@ var Versions = map[string]release{
action: removeOption, action: removeOption,
}, },
"endpoint": { "endpoint": {
status: deprecated, status: ignored,
action: removeExtraEndpoints, action: removeExtraEndpoints,
}, },
"tls": {}, "tls": {},
@ -72,6 +72,10 @@ var Versions = map[string]release{
"labels": {}, "labels": {},
"pods": {}, "pods": {},
"endpoint_pod_names": {}, "endpoint_pod_names": {},
"upstream": {
status: ignored,
action: removeOption,
},
"ttl": {}, "ttl": {},
"noendpoints": {}, "noendpoints": {},
"transfer": {}, "transfer": {},
@ -120,7 +124,7 @@ var Versions = map[string]release{
options: map[string]option{ options: map[string]option{
"resyncperiod": {}, "resyncperiod": {},
"endpoint": { "endpoint": {
status: deprecated, status: ignored,
action: removeExtraEndpoints, action: removeExtraEndpoints,
}, },
"tls": {}, "tls": {},