Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
Set CNI namespace as kube-system by default (#732)
Browse files Browse the repository at this point in the history
* Set CNI namespace as kube-system

Signed-off-by: Chun Lin Yang <[email protected]>

* Fix test failure issues
  • Loading branch information
clyang82 authored and istio-testing committed Jan 6, 2020
1 parent a2929d0 commit 741b7a1
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cmd/mesh/testdata/manifest-generate/output/all_on.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions cmd/mesh/testdata/profile-dump/output/all_off.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ base:
enabled: true
cni:
enabled: false
components:
cni:
namespace: kube-system
configManagement:
components:
galley:
Expand Down
3 changes: 3 additions & 0 deletions cmd/mesh/testdata/profile-dump/output/sds_policy_off.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ base:
enabled: true
cni:
enabled: false
components:
cni:
namespace: kube-system
configManagement:
components:
galley:
Expand Down
3 changes: 3 additions & 0 deletions data/profiles/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ spec:
# Istio CNI feature
cni:
enabled: false
components:
cni:
namespace: kube-system

# Global values passed through to helm global.yaml.
values:
Expand Down
12 changes: 10 additions & 2 deletions pkg/translate/translate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ func TestProtoToValuesV13(t *testing.T) {
desc: "default success",
yamlStr: `
defaultNamespace: istio-system
cni:
components:
cni:
namespace: kube-system
`,
want: `certmanager:
enabled: false
namespace: istio-system
cni:
namespace: istio-system
namespace: kube-system
galley:
enabled: false
namespace: istio-system
Expand Down Expand Up @@ -102,12 +106,16 @@ tracing:
hub: docker.io/istio
tag: 1.2.3
defaultNamespace: istio-system
cni:
components:
cni:
namespace: kube-system
`,
want: `certmanager:
enabled: false
namespace: istio-system
cni:
namespace: istio-system
namespace: kube-system
galley:
enabled: false
namespace: istio-system
Expand Down
3 changes: 3 additions & 0 deletions pkg/vfs/assets.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 741b7a1

Please sign in to comment.