Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ jobs:

workflows:
btd:

unless: << pipeline.parameters.run-integration-tests >>

jobs:
- orb-tools/lint:
name: lint
Expand All @@ -66,9 +65,4 @@ workflows:
requires:
- publish-dev
context: orbs
integration-tests_prod-release:
when: << pipeline.parameters.run-integration-tests >>
jobs:

- integration-tests-eks-orb:
context: microservices

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

238 changes: 121 additions & 117 deletions orb.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
version: 2.1
description: An orb for working with Amazon EKS
display:
home_url: https://github.com/TiendaNube/eks-orb
commands:
annotation:
description: |
Expand Down Expand Up @@ -649,123 +653,11 @@ commands:
command: |
yamllint << parameters.path_dir >>
name: Run yamllint
description: An orb for working with Amazon EKS
display:
home_url: https://github.com/TiendaNube/eks-orb
examples:
annotation:
description: Annotation to EKS
usage:
orbs:
eks: tiendanube/eks@x.y.z
version: 2.1
workflows:
your-workflow:
jobs:
- eks/annotation:
app-name: Application name
get-current-name: kubernetes\.io\/current-tag
get-current-value: true
namespace: Namespace
resource-name: deployment
set-name: kubernetes.io/previous-tag
set-path-annotation: .spec.template.metadata.annotations.
- eks/annotation:
app-name: Application name
namespace: Namespace
resource-name: deployment
set-name: kubernetes.io/current-tag
set-value: my value
deploy:
description: Deploy to EKS
usage:
orbs:
eks: tiendanube/eks@x.y.z
version: 2.1
workflows:
your-workflow:
jobs:
- eks/deploy:
cluster-name: cluster-name
region: region
steps:
- run:
command: |
kubectl apply -f bundle.yml
kubectl apply -f deployment.yml
helm-deploy:
description: EKS Helm Deploy
usage:
orbs:
eks: tiendanube/eks@x.y.z
version: 2.1
workflows:
your-workflow:
jobs:
- eks/helm-deploy:
chart: stable/chart
chart-version: latest
cluster-name: cluster-name
image-tag: ${CIRCLE_SHA1:0:7}
namespace: default
region: aws-region
release-name: release-name
resource-name: deployment
rollout-status: true
rollout-status-timeout: 5m
rollout-status-watch: true
values-file: values.yaml
revert-commit:
description: Annotation to EKS
usage:
orbs:
eks: tiendanube/eks@x.y.z
version: 2.1
workflows:
your-workflow:
jobs:
- eks/revert-commit:
branch-name: ${CIRCLE_BRANCH}
checkout: false
github-repo: github.com/company/branch.git
github-sha1: ${CIRCLE_SHA1:0:7}
github-token: ${GITHUB_TOKEN}
github-user-email: email@company.com
github-user-name: ${CIRCLE_USERNAME}
name: Job name
rollback:
description: Rollback to EKS
usage:
orbs:
eks: tiendanube/eks@x.y.z
version: 2.1
workflows:
your-workflow:
jobs:
- eks/rollback:
app-name: Application Name
branch-name: ${CIRCLE_BRANCH}
checkout: false
cluster-name: Cluster Name
get-current-annotation-name: kubernetes\.io\/current-tag
get-current-annotation-value: ${CIRCLE_SHA1:0:7}
get-previous-annotation-name: kubernetes\.io\/previous-tag
github-repo: github.com/company/branch.git
github-sha1: ${CIRCLE_SHA1:0:7}
github-token: ${GITHUB_TOKEN}
github-user-email: email@company.com
github-user-name: ${CIRCLE_USERNAME}
name: Job Name
namespace: Namespace
region: Region
resource-name: deployment
restricted: true
revert-commit: false
rollout-status: true
rollout-status-timeout: 5m
rollout-status-watch: true
set-path-annotation: .spec.template.metadata.annotations.
executors:
beta:
description: CircleCI convenience image for AWS EKS
docker:
- image: tiendanube/circleci-eks:v2-beta
default:
description: CircleCI convenience image for AWS EKS
docker:
Expand Down Expand Up @@ -1277,5 +1169,117 @@ jobs:
resource-name: << parameters.resource-name >>
timeout: << parameters.timeout >>
watch: << parameters.watch >>
version: 2.1
examples:
annotation:
description: Annotation to EKS
usage:
version: "2.1"
orbs:
eks: tiendanube/eks@x.y.z
workflows:
your-workflow:
jobs:
- eks/annotation:
app-name: Application name
get-current-name: kubernetes\.io\/current-tag
get-current-value: true
namespace: Namespace
resource-name: deployment
set-name: kubernetes.io/previous-tag
set-path-annotation: .spec.template.metadata.annotations.
- eks/annotation:
app-name: Application name
namespace: Namespace
resource-name: deployment
set-name: kubernetes.io/current-tag
set-value: my value
deploy:
description: Deploy to EKS
usage:
version: "2.1"
orbs:
eks: tiendanube/eks@x.y.z
workflows:
your-workflow:
jobs:
- eks/deploy:
cluster-name: cluster-name
region: region
steps:
- run:
command: |
kubectl apply -f bundle.yml
kubectl apply -f deployment.yml
helm-deploy:
description: EKS Helm Deploy
usage:
version: "2.1"
orbs:
eks: tiendanube/eks@x.y.z
workflows:
your-workflow:
jobs:
- eks/helm-deploy:
chart: stable/chart
chart-version: latest
cluster-name: cluster-name
image-tag: ${CIRCLE_SHA1:0:7}
namespace: default
region: aws-region
release-name: release-name
resource-name: deployment
rollout-status: true
rollout-status-timeout: 5m
rollout-status-watch: true
values-file: values.yaml
revert-commit:
description: Annotation to EKS
usage:
version: "2.1"
orbs:
eks: tiendanube/eks@x.y.z
workflows:
your-workflow:
jobs:
- eks/revert-commit:
branch-name: ${CIRCLE_BRANCH}
checkout: false
github-repo: github.com/company/branch.git
github-sha1: ${CIRCLE_SHA1:0:7}
github-token: ${GITHUB_TOKEN}
github-user-email: email@company.com
github-user-name: ${CIRCLE_USERNAME}
name: Job name
rollback:
description: Rollback to EKS
usage:
version: "2.1"
orbs:
eks: tiendanube/eks@x.y.z
workflows:
your-workflow:
jobs:
- eks/rollback:
app-name: Application Name
branch-name: ${CIRCLE_BRANCH}
checkout: false
cluster-name: Cluster Name
get-current-annotation-name: kubernetes\.io\/current-tag
get-current-annotation-value: ${CIRCLE_SHA1:0:7}
get-previous-annotation-name: kubernetes\.io\/previous-tag
github-repo: github.com/company/branch.git
github-sha1: ${CIRCLE_SHA1:0:7}
github-token: ${GITHUB_TOKEN}
github-user-email: email@company.com
github-user-name: ${CIRCLE_USERNAME}
name: Job Name
namespace: Namespace
region: Region
resource-name: deployment
restricted: true
revert-commit: false
rollout-status: true
rollout-status-timeout: 5m
rollout-status-watch: true
set-path-annotation: .spec.template.metadata.annotations.

2 changes: 1 addition & 1 deletion src/executors/default.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
description: CircleCI convenience image for AWS EKS
docker:
- image: tiendanube/circleci-eks:v1.2.0
- image: tiendanube/circleci-eks:v2.0.0