Skip to content

Commit

Permalink
Merge pull request #186 from sighupio/feat/release-v3.3.0
Browse files Browse the repository at this point in the history
feat/release v3.3.0
  • Loading branch information
ralgozino authored Nov 27, 2024
2 parents 618252e + caac399 commit 8b3ad75
Show file tree
Hide file tree
Showing 146 changed files with 55,221 additions and 34,605 deletions.
142 changes: 106 additions & 36 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ steps:
- render
commands:
# we use --ignore-deprecations because we don't want the CI to fail when the API has not been removed yet.
- /pluto detect $${KUBERNETES_MANIFESTS} --ignore-deprecations --target-versions=k8s=v1.29.0
- /pluto detect $${KUBERNETES_MANIFESTS} --ignore-deprecations --target-versions=k8s=v1.31.0
environment:
KUBERNETES_MANIFESTS: alertmanager-operated.yml

Expand Down Expand Up @@ -165,7 +165,7 @@ platform:

steps:
- name: prom-rules
image: quay.io/sighup/prom-rules:3.16_2.36.1_4.27.2
image: quay.io/sighup/prom-rules:3.16_2.54.1_4.27.2
pull: always
depends_on: [clone]
commands:
Expand All @@ -176,7 +176,7 @@ steps:
- tag

---
name: e2e-kubernetes-1.27
name: e2e-kubernetes-1.28
kind: pipeline
type: docker

Expand Down Expand Up @@ -204,12 +204,12 @@ steps:
path: /var/run/docker.sock
depends_on: [clone]
environment:
CLUSTER_VERSION: v1.27.3
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-127
CLUSTER_VERSION: v1.28.0
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-128
# /drone/src is the default workdir for the pipeline
# using this folder we don't need to mount another
# shared volume between the steps
KUBECONFIG: /drone/src/kubeconfig-127
KUBECONFIG: /drone/src/kubeconfig-128
commands:
# NOTE: kind's `--wait` flag that waits for the control-plane ot be ready
# does not work when disabling the default CNI. It will always go in timeout.
Expand All @@ -218,13 +218,13 @@ steps:
- kind get kubeconfig --name $${CLUSTER_NAME} > $${KUBECONFIG}

- name: e2e
# KUBECTL 1.27.1 - KUSTOMIZE 3.5.3 - HELM 3.1.1 - YQ 4.21.1 - ISTIOCTL 1.9.4 - FURYCTL 0.9.0 - BATS 1.1.0
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.1.1_1.9.4_1.26.3_3.5.3_4.33.3
# KUBECTL 1.28.5 - KUSTOMIZE 3.5.3 - HELM 3.1.1 - YQ 4.21.1 - ISTIOCTL 1.9.4 - FURYCTL 0.9.0 - BATS 1.1.0
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.28.5_3.5.3_4.33.3
pull: always
network_mode: host
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-127
KUBECONFIG: /drone/src/kubeconfig-127
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-128
KUBECONFIG: /drone/src/kubeconfig-128
depends_on: [create-kind-cluster]
commands:
- bats -t katalog/tests/tests.sh
Expand All @@ -238,7 +238,7 @@ steps:
pull: always
depends_on: [e2e]
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-127
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-128
commands:
# does not matter if the command fails
- kind delete cluster --name $${CLUSTER_NAME} || true
Expand All @@ -253,7 +253,7 @@ volumes:
path: /var/run/docker.sock

---
name: e2e-kubernetes-1.28
name: e2e-kubernetes-1.29
kind: pipeline
type: docker

Expand All @@ -262,7 +262,6 @@ clone:

depends_on:
- policeman
- e2e-kubernetes-1.27

platform:
os: linux
Expand All @@ -282,12 +281,12 @@ steps:
path: /var/run/docker.sock
depends_on: [clone]
environment:
CLUSTER_VERSION: v1.28.0
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-128
CLUSTER_VERSION: v1.29.0
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-129
# /drone/src is the default workdir for the pipeline
# using this folder we don't need to mount another
# shared volume between the steps
KUBECONFIG: /drone/src/kubeconfig-128
KUBECONFIG: /drone/src/kubeconfig-129
commands:
# NOTE: kind's `--wait` flag that waits for the control-plane ot be ready
# does not work when disabling the default CNI. It will always go in timeout.
Expand All @@ -296,13 +295,13 @@ steps:
- kind get kubeconfig --name $${CLUSTER_NAME} > $${KUBECONFIG}

- name: e2e
# KUBECTL 1.28.5 - KUSTOMIZE 3.5.3 - HELM 3.1.1 - YQ 4.21.1 - ISTIOCTL 1.9.4 - FURYCTL 0.9.0 - BATS 1.1.0
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.28.5_3.5.3_4.33.3
# KUBECTL 1.29.1 - KUSTOMIZE 3.5.3 - HELM 3.1.1 - YQ 4.21.1 - ISTIOCTL 1.9.4 - FURYCTL 0.9.0 - BATS 1.1.0
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.29.1_3.5.3_4.33.3
pull: always
network_mode: host
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-128
KUBECONFIG: /drone/src/kubeconfig-128
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-129
KUBECONFIG: /drone/src/kubeconfig-129
depends_on: [create-kind-cluster]
commands:
- bats -t katalog/tests/tests.sh
Expand All @@ -316,7 +315,7 @@ steps:
pull: always
depends_on: [e2e]
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-128
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-129
commands:
# does not matter if the command fails
- kind delete cluster --name $${CLUSTER_NAME} || true
Expand All @@ -329,9 +328,8 @@ volumes:
- name: dockersock
host:
path: /var/run/docker.sock

---
name: e2e-kubernetes-1.29
name: e2e-kubernetes-1.30
kind: pipeline
type: docker

Expand All @@ -352,19 +350,19 @@ trigger:

steps:
- name: create-kind-cluster
image: quay.io/sighup/dind-kind-kubectl-kustomize:0.20.0_1.29.1_3.10.0
image: quay.io/sighup/dind-kind-kubectl-kustomize:0.24.0_1.30.5_3.10.0
pull: always
volumes:
- name: dockersock
path: /var/run/docker.sock
depends_on: [clone]
environment:
CLUSTER_VERSION: v1.29.0
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-129
CLUSTER_VERSION: v1.30.4
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-130
# /drone/src is the default workdir for the pipeline
# using this folder we don't need to mount another
# shared volume between the steps
KUBECONFIG: /drone/src/kubeconfig-129
KUBECONFIG: /drone/src/kubeconfig-130
commands:
# NOTE: kind's `--wait` flag that waits for the control-plane ot be ready
# does not work when disabling the default CNI. It will always go in timeout.
Expand All @@ -373,27 +371,26 @@ steps:
- kind get kubeconfig --name $${CLUSTER_NAME} > $${KUBECONFIG}

- name: e2e
# KUBECTL 1.29.1 - KUSTOMIZE 3.5.3 - HELM 3.1.1 - YQ 4.21.1 - ISTIOCTL 1.9.4 - FURYCTL 0.9.0 - BATS 1.1.0
image: quay.io/sighup/e2e-testing:1.1.0_0.11.0_3.12.0_1.9.4_1.29.1_3.5.3_4.33.3
image: quay.io/sighup/e2e-testing:1.1.0_1.30.5_3.10.0_4.33.3
pull: always
network_mode: host
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-129
KUBECONFIG: /drone/src/kubeconfig-129
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-130
KUBECONFIG: /drone/src/kubeconfig-130
depends_on: [create-kind-cluster]
commands:
- bats -t katalog/tests/tests.sh
- bats -t katalog/tests/grafana-ldap.sh

- name: delete-kind-cluster
image: quay.io/sighup/dind-kind-kubectl-kustomize:0.20.0_1.29.1_3.10.0
image: quay.io/sighup/dind-kind-kubectl-kustomize:0.24.0_1.30.5_3.10.0
volumes:
- name: dockersock
path: /var/run/docker.sock
pull: always
depends_on: [e2e]
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-129
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-130
commands:
# does not matter if the command fails
- kind delete cluster --name $${CLUSTER_NAME} || true
Expand All @@ -406,17 +403,91 @@ volumes:
- name: dockersock
host:
path: /var/run/docker.sock
---
name: e2e-kubernetes-1.31
kind: pipeline
type: docker

clone:
depth: 1

depends_on:
- policeman

platform:
os: linux
arch: amd64

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

steps:
- name: create-kind-cluster
image: quay.io/sighup/dind-kind-kubectl-kustomize:0.24.0_1.31.1_3.10.0
pull: always
volumes:
- name: dockersock
path: /var/run/docker.sock
depends_on: [clone]
environment:
CLUSTER_VERSION: v1.31.1
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-131
# /drone/src is the default workdir for the pipeline
# using this folder we don't need to mount another
# shared volume between the steps
KUBECONFIG: /drone/src/kubeconfig-131
commands:
# NOTE: kind's `--wait` flag that waits for the control-plane ot be ready
# does not work when disabling the default CNI. It will always go in timeout.
- kind create cluster --name $${CLUSTER_NAME} --image registry.sighup.io/fury/kindest/node:$${CLUSTER_VERSION} --config katalog/tests/kind-config.yml
# save the kubeconfig so we can use it from other steps.
- kind get kubeconfig --name $${CLUSTER_NAME} > $${KUBECONFIG}

- name: e2e
image: quay.io/sighup/e2e-testing:1.1.0_1.31.1_3.10.0_4.33.3
pull: always
network_mode: host
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-131
KUBECONFIG: /drone/src/kubeconfig-131
depends_on: [create-kind-cluster]
commands:
- bats -t katalog/tests/tests.sh
- bats -t katalog/tests/grafana-ldap.sh

- name: delete-kind-cluster
image: quay.io/sighup/dind-kind-kubectl-kustomize:0.24.0_1.31.1_3.10.0
volumes:
- name: dockersock
path: /var/run/docker.sock
pull: always
depends_on: [e2e]
environment:
CLUSTER_NAME: ${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-131
commands:
# does not matter if the command fails
- kind delete cluster --name $${CLUSTER_NAME} || true
when:
status:
- success
- failure

volumes:
- name: dockersock
host:
path: /var/run/docker.sock
---
name: release
kind: pipeline
type: docker

depends_on:
- e2e-kubernetes-1.27
- e2e-kubernetes-1.28
- e2e-kubernetes-1.29

- e2e-kubernetes-1.30
- e2e-kubernetes-1.31
platform:
os: linux
arch: amd64
Expand All @@ -427,7 +498,6 @@ trigger:
- refs/tags/**

steps:

- name: prepare-tar-gz
image: alpine:latest
pull: always
Expand Down
Loading

0 comments on commit 8b3ad75

Please sign in to comment.