https://github.com/cilium/cilium
Revision e96cda80fdae9a70fbe3fe7046fb8a371398ab35 authored by Ray Bejjani on 30 January 2019, 20:33:08 UTC, committed by John Fastabend on 01 February 2019, 05:41:25 UTC
[ upstream commit 1350624f40d6c6274e9fcc8b85a1e80216632318 ]

This code path is never hit because UUIDs are always randomized.
Nonetheless, fqdn.RuleGen.addRule shouldn't assume that and it should
actually work correctly when the same UUID is used. It did not.
Previously, re-inserting a UUID would skip adding this rule's UUID to
a DNS matchName/Pattern that already had UUIDs associated with it (not
necessarily this one!).
The code now ensures that this UUID is associated with matchName/Pattern
entries in the ToFQDNs rule even on updates that partially modify the
rule.

Signed-off-by: Ray Bejjani <ray@covalent.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent bdc8e6a
History
Tip revision: e96cda80fdae9a70fbe3fe7046fb8a371398ab35 authored by Ray Bejjani on 30 January 2019, 20:33:08 UTC
fqdn: Fix repeat UUID insertion
Tip revision: e96cda8
File Mode Size
.github
.travis
Documentation
api
bpf
bugtool
cilium
cilium-health
common
contrib
daemon
envoy
examples
hack
monitor
operator
pkg
plugins
proxylib
test
tests
tools
vendor
.authors.aux -rw-r--r-- 416 bytes
.gitignore -rw-r--r-- 857 bytes
.gitmodules -rw-r--r-- 0 bytes
.mailmap -rw-r--r-- 737 bytes
.travis.yml -rw-r--r-- 424 bytes
AUTHORS -rw-r--r-- 5.6 KB
CODEOWNERS -rw-r--r-- 1.1 KB
CONTRIBUTING.md -rw-r--r-- 193 bytes
Dockerfile -rw-r--r-- 1.9 KB
Dockerfile.builder -rw-r--r-- 1.1 KB
Gopkg.lock -rw-r--r-- 33.4 KB
Gopkg.toml -rw-r--r-- 12.5 KB
Jenkinsfile.nightly -rw-r--r-- 4.7 KB
LICENSE -rw-r--r-- 11.1 KB
Makefile -rw-r--r-- 11.7 KB
Makefile.defs -rw-r--r-- 1.3 KB
Makefile.quiet -rw-r--r-- 456 bytes
NEWS.rst -rw-r--r-- 20 bytes
README.rst -rw-r--r-- 14.7 KB
VERSION -rw-r--r-- 10 bytes
Vagrantfile -rw-r--r-- 11.9 KB
cilium-docker-plugin.Dockerfile -rw-r--r-- 511 bytes
cilium-operator.Dockerfile -rw-r--r-- 507 bytes
docs.Jenkinsfile -rw-r--r-- 2.6 KB
flannel.Jenkinsfile -rw-r--r-- 3.4 KB
ginkgo-kubernetes-all.Jenkinsfile -rw-r--r-- 6.5 KB
ginkgo.Jenkinsfile -rw-r--r-- 4.2 KB
kubernetes-upstream.Jenkinsfile -rw-r--r-- 4.2 KB

README.rst

back to top