Skip to content

Commit

Permalink
Merge pull request #20 from sighupio/feat/new-distro-v1.22.0-sa-issue…
Browse files Browse the repository at this point in the history
…-new-versioning

feat: new distro v1.22.0, new versioning and fix SA issue
  • Loading branch information
nutellinoit authored Jul 18, 2022
2 parents 00acf5c + 54d4cbe commit 3295e16
Show file tree
Hide file tree
Showing 31 changed files with 933 additions and 576 deletions.
336 changes: 10 additions & 326 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ steps:
VALIDATE_KUBERNETES_KUBEVAL: "false"
# Some duplicated code is intended.
VALIDATE_JSCPD: "false"
# Disable natural language checks
VALIDATE_NATURAL_LANGUAGE: "false"
depends_on:
- clone

Expand All @@ -53,216 +55,6 @@ steps:
commands:
- /conftest test -p /policies distribution.yml

---
kind: pipeline
name: e2e-kubernetes-1.20

depends_on:
- policeman

node:
runner: internal

platform:
os: linux
arch: amd64

trigger:
ref:
include:
- refs/tags/**
- refs/heads/master

steps:
- name: init
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
pull: always
volumes:
- name: shared
path: /shared
depends_on: [ clone ]
settings:
action: custom-cluster-120
pipeline_id: cluster-120
local_kind_config_path: tests/config/kind-config-custom
cluster_version: '1.20.7'
instance_path: /shared
instance_size: 2-extra-large
aws_default_region:
from_secret: aws_region
aws_access_key_id:
from_secret: aws_access_key_id
aws_secret_access_key:
from_secret: aws_secret_access_key
terraform_tf_states_bucket_name:
from_secret: terraform_tf_states_bucket_name
vsphere_server:
from_secret: vsphere_server
vsphere_password:
from_secret: vsphere_password
vsphere_user:
from_secret: vsphere_user
dockerhub_username:
from_secret: dockerhub_username
dockerhub_password:
from_secret: dockerhub_password

- name: test
image: quay.io/sighup/e2e-testing:1.1.0_0.2.2_2.16.1_1.9.4_1.20.7_3.8.7_2.4.1
pull: always
volumes:
- name: shared
path: /shared
depends_on: [ init ]
commands:
- export KUBECONFIG=/shared/kube/kubeconfig-120
- bats -t tests/install.sh
- bats -t tests/networking.sh
- bats -t tests/monitoring.sh
- bats -t tests/logging.sh
- bats -t tests/ingress.sh
- bats -t tests/dr.sh
- bats -t tests/opa.sh

- name: destroy
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
depends_on: [ test ]
settings:
action: destroy
pipeline_id: cluster-120
instance_size: 2-extra-large
aws_default_region:
from_secret: aws_region
aws_access_key_id:
from_secret: aws_access_key_id
aws_secret_access_key:
from_secret: aws_secret_access_key
terraform_tf_states_bucket_name:
from_secret: terraform_tf_states_bucket_name
vsphere_server:
from_secret: vsphere_server
vsphere_password:
from_secret: vsphere_password
vsphere_user:
from_secret: vsphere_user
dockerhub_username:
from_secret: dockerhub_username
dockerhub_password:
from_secret: dockerhub_password
when:
status:
- success
- failure

volumes:
- name: shared
temp: {}

---
kind: pipeline
name: e2e-kubernetes-1.21

depends_on:
- policeman

node:
runner: internal

platform:
os: linux
arch: amd64

trigger:
ref:
include:
- refs/tags/**
- refs/heads/master

steps:
- name: init
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
pull: always
volumes:
- name: shared
path: /shared
depends_on: [ clone ]
settings:
action: custom-cluster-121
pipeline_id: cluster-121
local_kind_config_path: tests/config/kind-config-custom
cluster_version: '1.21.1'
instance_path: /shared
instance_size: 2-extra-large
aws_default_region:
from_secret: aws_region
aws_access_key_id:
from_secret: aws_access_key_id
aws_secret_access_key:
from_secret: aws_secret_access_key
terraform_tf_states_bucket_name:
from_secret: terraform_tf_states_bucket_name
vsphere_server:
from_secret: vsphere_server
vsphere_password:
from_secret: vsphere_password
vsphere_user:
from_secret: vsphere_user
dockerhub_username:
from_secret: dockerhub_username
dockerhub_password:
from_secret: dockerhub_password

- name: test
image: quay.io/sighup/e2e-testing:1.1.0_0.2.2_2.16.1_1.9.4_1.21.1_3.8.7_2.4.1
pull: always
volumes:
- name: shared
path: /shared
depends_on: [ init ]
commands:
- export KUBECONFIG=/shared/kube/kubeconfig-121
- bats -t tests/install.sh
- bats -t tests/networking.sh
- bats -t tests/monitoring.sh
- bats -t tests/logging.sh
- bats -t tests/ingress.sh
- bats -t tests/dr.sh
- bats -t tests/opa.sh

- name: destroy
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
depends_on: [ test ]
settings:
action: destroy
pipeline_id: cluster-121
instance_size: 2-extra-large
aws_default_region:
from_secret: aws_region
aws_access_key_id:
from_secret: aws_access_key_id
aws_secret_access_key:
from_secret: aws_secret_access_key
terraform_tf_states_bucket_name:
from_secret: terraform_tf_states_bucket_name
vsphere_server:
from_secret: vsphere_server
vsphere_password:
from_secret: vsphere_password
vsphere_user:
from_secret: vsphere_user
dockerhub_username:
from_secret: dockerhub_username
dockerhub_password:
from_secret: dockerhub_password
when:
status:
- success
- failure

volumes:
- name: shared
temp: {}

---
kind: pipeline
name: e2e-kubernetes-1.22
Expand All @@ -288,8 +80,8 @@ steps:
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
pull: always
volumes:
- name: shared
path: /shared
- name: shared
path: /shared
depends_on: [ clone ]
settings:
action: custom-cluster-122
Expand Down Expand Up @@ -321,8 +113,8 @@ steps:
image: quay.io/sighup/e2e-testing:1.1.0_0.2.2_2.16.1_1.9.4_1.22.0_3.8.7_2.4.1
pull: always
volumes:
- name: shared
path: /shared
- name: shared
path: /shared
depends_on: [ init ]
commands:
- export KUBECONFIG=/shared/kube/kubeconfig-122
Expand Down Expand Up @@ -361,127 +153,19 @@ steps:
from_secret: dockerhub_password
when:
status:
- success
- failure

volumes:
- name: shared
temp: {}

---
kind: pipeline
name: e2e-kubernetes-1.23

node:
runner: internal

depends_on:
- policeman

platform:
os: linux
arch: amd64

trigger:
ref:
include:
- refs/tags/**
- refs/heads/master

steps:
- name: init
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
pull: always
volumes:
- name: shared
path: /shared
depends_on: [ clone ]
settings:
action: custom-cluster-123
pipeline_id: cluster-123
local_kind_config_path: tests/config/kind-config-custom
cluster_version: '1.23.0'
instance_path: /shared
instance_size: 2-extra-large
aws_default_region:
from_secret: aws_region
aws_access_key_id:
from_secret: aws_access_key_id
aws_secret_access_key:
from_secret: aws_secret_access_key
terraform_tf_states_bucket_name:
from_secret: terraform_tf_states_bucket_name
vsphere_server:
from_secret: vsphere_server
vsphere_password:
from_secret: vsphere_password
vsphere_user:
from_secret: vsphere_user
dockerhub_username:
from_secret: dockerhub_username
dockerhub_password:
from_secret: dockerhub_password

- name: test
image: quay.io/sighup/e2e-testing:1.1.0_0.2.2_2.16.1_1.9.4_1.23.0_3.8.7_2.4.1
pull: always
volumes:
- name: shared
path: /shared
depends_on: [ init ]
commands:
- export KUBECONFIG=/shared/kube/kubeconfig-123
- bats -t tests/install.sh
- bats -t tests/networking.sh
- bats -t tests/monitoring.sh
- bats -t tests/logging.sh
- bats -t tests/ingress.sh
- bats -t tests/dr.sh
- bats -t tests/opa.sh

- name: destroy
image: quay.io/sighup/e2e-testing-drone-plugin:v0.13.0
depends_on: [ test ]
settings:
action: destroy
pipeline_id: cluster-123
instance_size: 2-extra-large
aws_default_region:
from_secret: aws_region
aws_access_key_id:
from_secret: aws_access_key_id
aws_secret_access_key:
from_secret: aws_secret_access_key
terraform_tf_states_bucket_name:
from_secret: terraform_tf_states_bucket_name
vsphere_server:
from_secret: vsphere_server
vsphere_password:
from_secret: vsphere_password
vsphere_user:
from_secret: vsphere_user
dockerhub_username:
from_secret: dockerhub_username
dockerhub_password:
from_secret: dockerhub_password
when:
status:
- success
- failure
- success
- failure

volumes:
- name: shared
temp: {}
- name: shared
temp: {}

---
kind: pipeline
name: release

depends_on:
- e2e-kubernetes-1.20
- e2e-kubernetes-1.21
- e2e-kubernetes-1.22
- e2e-kubernetes-1.23

platform:
os: linux
Expand Down
Loading

0 comments on commit 3295e16

Please sign in to comment.