8000 v0.4.2 nix-csi-deployment.yaml apply fails due to resources preceding namespace · Issue #22 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

v0.4.2 nix-csi-deployment.yaml apply fails due to resources preceding namespace #22

Closed

Description

@thorstenweber83

First let me say: good work!

I'm really excited to see nix being used to it's full potential with kubernetes.

Summary

Applying the v0.4.2 release asset nix-csi-deployment.yaml with kubectl apply -f ... fails on a fresh cluster because some resources that specify namespace: nix-csi appear before the Namespace/nix-csi object in the same YAML.

Environment

• nix-csi: v0.4.2
• Kubernetes: Kind v1.35.0 (Docker)
• Apply method: kubectl apply -f https://github.com/Lillecarl/nix-csi/releases/download/v0.4.2/nix-csi-deployment.yaml

Steps to reproduce

  1. Create a fresh cluster (e.g. Kind).
  2. Run:

kubectl apply -f https://github.com/Lillecarl/nix-csi/releases/download/v0.4.2/nix-csi-deployment.yaml

Actual result

kubectl creates some cluster-scoped objects (e.g. CSIDriver, ClusterRole, ClusterRoleBinding), then errors for namespaced resources:

Error from server (NotFound): ... namespaces "nix-csi" not found

Expected result

A single kubectl apply should succeed on a fresh cluster.

Workarounds

Create the namespace first:

 kubectl create namespace nix-csi --dry-run=client -o yaml | kubectl apply -f -
 kubectl apply -f https://github.com/Lillecarl/nix-csi/releases/download/v0.4.2/nix-csi-deployment.yaml

Or run kubectl apply twice.

Suggested fix

Move Namespace/nix-csi to the very top of the YAML.

Activity

  1. self-assigned this
    on Feb 17, 2026
  2. Lillecarl commented on Feb 18, 2026

    @Lillecarl
    Contributor

    Thanks for the kind words and thanks for the report! It'll be fixed in the next release 😄

  3. added
    source: nixkube
    on Oct 19, 2026
  4. transferred this issue fromnixidae/nixkubeon Oct 19, 2026
  5. added theissue type on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

source: nixkube

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0