Skip to content

Commit b219bb3

Browse files
authored
fix: let Windows CNS use the InClusterConfig
Signed-off-by: Evan Baker <[email protected]>
1 parent 4442e51 commit b219bb3

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

cns/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ EXPOSE 10090
3232

3333
# skopeo inspect docker://mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0 --format "{{.Name}}@{{.Digest}}"
3434
FROM mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image@sha256:b4c9637e032f667c52d1eccfa31ad8c63f1b035e8639f3f48a510536bf34032b as windows
35-
COPY --from=builder /azure-container-networking/cns/kubeconfigtemplate.yaml kubeconfigtemplate.yaml
36-
COPY --from=builder /azure-container-networking/npm/examples/windows/setkubeconfigpath.ps1 setkubeconfigpath.ps1
3735
COPY --from=builder /go/bin/azure-cns /azure-cns.exe
3836
ENTRYPOINT ["azure-cns.exe"]
3937
EXPOSE 10090

cns/azure-cns-windows.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ spec:
3838
command: ["powershell.exe"]
3939
args:
4040
[
41-
'.\setkubeconfigpath.ps1', ";",
4241
'powershell.exe', '.\azure-cns.exe',
4342
'-c', "tcp://$(CNSIpAddress):$(CNSPort)",
4443
'-t', "$(CNSLogTarget)",
4544
'-o', "$(CNSLogDir)",
4645
'-storefilepath', "$(CNSStoreFilePath)",
4746
'-config-path', "%CONTAINER_SANDBOX_MOUNT_POINT%\\$(CNS_CONFIGURATION_PATH)",
48-
'--kubeconfig', '.\kubeconfig',
4947
]
5048
volumeMounts:
5149
- name: log

test/integration/manifests/cns/daemonset-windows.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ spec:
5252
command: ["powershell.exe"]
5353
args:
5454
[
55-
'.\setkubeconfigpath.ps1',
56-
";",
5755
'.\azure-cns.exe',
5856
"-c",
5957
"tcp://$(CNSIpAddress):$(CNSPort)",
@@ -65,8 +63,6 @@ spec:
6563
"$(CNSStoreFilePath)",
6664
"-config-path",
6765
"%CONTAINER_SANDBOX_MOUNT_POINT%\\$(CNS_CONFIGURATION_PATH)",
68-
"--kubeconfig",
69-
'.\kubeconfig',
7066
]
7167
volumeMounts:
7268
- name: log

0 commit comments

Comments
 (0)