Skip to content

Commit 46aec4d

Browse files
rajsinghtechclaude
andcommitted
Fix privileged pod security label removal in tailscale-examples namespace
The tailscale-examples namespace's pod-security.kubernetes.io/enforce: privileged label was being removed shortly after Flux applied it. This was caused by the sandbox kustomization files having explicit 'namespace:' fields, which triggered kustomize to auto-generate a namespace resource. When Flux applied this with commonMetadata labels, it overwrote the namespace labels without the privileged setting. Fix: Remove 'namespace:' field from all sandbox kustomization.yaml files. The Flux Kustomization already sets targetNamespace: tailscale-examples, which will apply the correct namespace to all resources without auto-generating a namespace. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent ab76a4f commit 46aec4d

File tree

8 files changed

+0
-8
lines changed

8 files changed

+0
-8
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale-examples
54
resources:
65
- ./daemonset.yaml

clusters/common/apps/tailscale-examples/sandbox/golink/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale-examples
54
resources:
65
- ./deployment.yaml
76
- ./service.yaml

clusters/common/apps/tailscale-examples/sandbox/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale-examples
54
resources:
65
# - ./derper
76
# - ./hello

clusters/common/apps/tailscale-examples/sandbox/proxyt/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale-examples
54
resources:
65
- ./deployment.yaml
76
- ./service.yaml

clusters/common/apps/tailscale-examples/sandbox/sidecar/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale-examples
54
resources:
65
- ./ts-sidecar.yaml
76
- ./ts-sidecar-userspace.yaml
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale-examples
54
resources:
65
- ./deployment.yaml

clusters/common/apps/tailscale-examples/sandbox/tsflow/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale
54
resources:
65
- deployment.yaml
76
- service.yaml
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
4-
namespace: tailscale
54
resources:
65
- manifest.yaml
76
- egress.yaml

0 commit comments

Comments
 (0)