Current configuration that i use for deployment
- pipe: atlassian/aws-eks-kubectl-run:2.4.0 variables: CLUSTER_NAME: $CLUSTER_NAME KUBECTL_COMMAND: 'apply' KUBECTL_APPLY_ARGS: '-k' RESOURCE_PATH: $DEPLOYMENT_PATH
The DEPLOYMENT_PATH points to an overlay kustomization configuration that includes namespace.yml file defining the namespace to be applied as part of this config.
namespace/<namespaceName> created (server dry run)Error from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not foundError from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not foundError from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not found✖ spec file validation failed.
I need a way to apply the changes along with creation of namespace thru the pipe.
P.S: I can replicate the issue in kubectl when i pass `--dry-run=server` flag.
@Vish hi. We released a new version 2.5.0 of the aws-eks-kubectl-run pipe, which now supports disable validation and pre-execution script features.
- pipe: atlassian/aws-eks-kubectl-run:2.5.0 variables: CLUSTER_NAME: 'my-kube-cluster' KUBECTL_COMMAND: 'apply' RESOURCE_PATH: 'nginx.yml' DISABLE_VALIDATION: 'true'
- echo 'script logic' > .my-script.sh - chmod 005 my-script.sh - pipe: atlassian/aws-eks-kubectl-run:2.5.0 variables: CLUSTER_NAME: 'my-kube-cluster' KUBECTL_COMMAND: 'apply' RESOURCE_PATH: 'nginx.yml' PRE_EXECUTION_SCRIPT: '.my-script.sh'
Regards, Igor
Similar issue with different pipe is captured here.
@Vish hi. According to the question you provided there is the response for your case with using DISABLE_VALIDATION variable:
script: - pipe: atlassian/kubectl-run:3.4.0 variables: KUBE_CONFIG: $KUBE_CONFIG KUBECTL_COMMAND: 'apply' RESOURCE_PATH: 'nginx.yml' DISABLE_VALIDATION: 'true'
Hey @Igor Stoyanov , That's available `kubectl-run` pipe but don't see that in any documentation for `aws-eks-kubectl-run` latest version.
@Vish hi. Thanks for your remark. We will try to implement the same idea in this pipe and notify you when new version will become available.Regards, Igor
That is awesome!. Thank you for this quick turn around.
It looks like you're new here. Sign in or register to get started.