I'm using atlassian/kubectl-run:3.3.1 and trying to deploy resources in a namespace that doesn't exist yet but is created in the same apply.
The namespace is defined like this:
apiVersion: v1
kind: Namespace
metadata:
name: namespace-name
Due to the pipe running dry-run by default I'm unable to apply both the namespace resources and the to be deployed resources in a single apply.
Is there a way around this (by disabling the dry-run by default) or am I stuck creating the namespaces and the resources in two separate applys?