`kubectl` run from the pod uses the service account token, and inherits its default namespace from the service account. We want it to be the default default (named "default"), to mimic the behaviour of `kubectl` used from a terminal and thereby avoid some surprises. To reset the default namespace, we copy a Kubernetes config file with a context specifying the "default" namespace, to the place `kubectl` expects to find it, in the flux image.
|
||
48 | 48 |
|
49 | 49 |
|
50 | 50 |
|
51 |
|
|
51 |
|
|
52 | 52 |
|
53 | 53 |
|
54 | 54 |
|
|
||
31 | 31 |
|
32 | 32 |
|
33 | 33 |
|
34 |
|
|
34 | 35 |
|
35 | 36 |
|
36 | 37 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|