mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-12-09 05:41:00 +01:00
added warn log
This commit is contained in:
parent
1bf31daf4c
commit
bf43ddf81a
@ -487,9 +487,9 @@ func testNodeEndpointsWithIPv6(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
if tc.exposeInternalIPv6 {
|
if tc.exposeInternalIPv6 {
|
||||||
buf := testutils.LogsToBuffer(log.DebugLevel, t)
|
buf := testutils.LogsToBuffer(log.WarnLevel, t)
|
||||||
warningMsg := "WARNING: The default behavior of exposing internal IPv6 addresses will change in the next minor version. Use --expose-internal-ipv6=false flag to opt-in to the new behavior."
|
warningMsg := "The default behavior of exposing internal IPv6 addresses will change in the next minor version. Use --expose-internal-ipv6=false flag to opt-in to the new behavior."
|
||||||
log.Debug(warningMsg)
|
log.Warn(warningMsg)
|
||||||
assert.Contains(t, buf.String(), warningMsg)
|
assert.Contains(t, buf.String(), warningMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user