This repository was archived by the owner on Nov 1, 2022. It is now read-only.
Commit a211ea3
committed
Use ~/.kube/config to set default namespace
`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.1 parent 8ad9943 commit a211ea3
3 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments