You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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 found
Error from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not found
Error 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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'
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Igor Stoyanov , That's available `kubectl-run` pipe but don't see that in any documentation for `aws-eks-kubectl-run` latest version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.