Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): dummy #2126

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
889d8a9
Release Camunda Platform Helm Chart 8.2.29, 8.3.14, 9.3.7, 10.2.0 (#2…
distro-ci[bot] Jun 28, 2024
e6c0b41
chore: tidy up chart-release-chores workflow
aabouzaid Jun 28, 2024
dd049a1
chore: tidy up links
aabouzaid Jun 28, 2024
bdad663
chore: update gomplate to v4
aabouzaid Jun 29, 2024
257d2d8
chore: update readme file
aabouzaid Jun 29, 2024
58be4a6
chore: add groups to renovate config (#2099)
aabouzaid Jul 2, 2024
c5a38bb
chore(deps): update github/codeql-action digest to ee4ad8b (#2100)
renovate[bot] Jul 2, 2024
300b98b
chore: update dep names (#2102)
aabouzaid Jul 2, 2024
cbbe5a1
chore: match all charts in renovate general section
aabouzaid Jul 2, 2024
b402fa1
chore: remove lookupName for renovate deps
aabouzaid Jul 2, 2024
71fc93a
chore: support multi chart in chart-update-readme workflow
aabouzaid Jul 2, 2024
349f14d
chore: support multi chart in chart-update-readme workflow
aabouzaid Jul 2, 2024
fcd137b
chore(deps): update github/codeql-action digest to 7adf9ac (#2106)
renovate[bot] Jul 2, 2024
75509c6
chore(deps): update dependency golang to v1.22.5 (#2110)
renovate[bot] Jul 3, 2024
c2ca0d8
chore(deps): update dependency go to v1.22.5 (#2109)
renovate[bot] Jul 3, 2024
db296ae
chore: use the correct component name for release-please
aabouzaid Jul 3, 2024
a1b1f1a
chore: fix wrong workflow trigger
aabouzaid Jul 3, 2024
8e9c776
chore: add pacage-name to release-please
aabouzaid Jul 3, 2024
2074647
ci: adding workflow for pr conventions (#2089)
hamza-m-masood Jul 3, 2024
4d96b76
chore(deps): update amannn/action-semantic-pull-request action to v5.…
renovate[bot] Jul 3, 2024
b6d0580
chore(deps): update camunda-platform-latest to v8.5.73 (patch) (#2103)
renovate[bot] Jul 3, 2024
8c90aaf
chore: update release-please config
aabouzaid Jul 3, 2024
58c45a6
ci: add openshift on-demand cluster tests (#1816)
leiicamundi Jul 4, 2024
c9aa1ee
chore(deps): update github-actions (#2112)
renovate[bot] Jul 5, 2024
57a103a
fix(ci): failure alerts are not triggered on ROSA schedule integratio…
leiicamundi Jul 5, 2024
76a2688
chore: add renovate schedule to tool-versions and github-actions
aabouzaid Jul 5, 2024
3cc8a63
chore(deps): update actions/upload-artifact action to v4.3.4 (#2119)
renovate[bot] Jul 6, 2024
0ae2e3c
chore(deps): update github-actions (#2123)
renovate[bot] Jul 13, 2024
06634a7
chore(deps): update github/codeql-action action to v3.25.12 (#2125)
renovate[bot] Jul 13, 2024
2cc22d1
chore(ci): refactor rosa integration test workflow (#2118)
aabouzaid Jul 13, 2024
127cd4a
chore(release): Camunda Platform Helm Chart
distro-ci[bot] Jul 13, 2024
aebc433
chore(release): update chart files
distro-ci[bot] Jul 13, 2024
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
4 changes: 3 additions & 1 deletion .github/actions/gke-login/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ runs:
run: chmod 600 $KUBECONFIG
- name: Check credentials
shell: bash
run: kubectl auth can-i create deployment
run: |
kubectl auth can-i create deployment
kubectl version
12 changes: 4 additions & 8 deletions .github/actions/workflow-vars/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ inputs:
Define a ttl for the lifespan of the deployment
required: false
default: ""
type: string
identifier-base:
description: The fixed string in the identifier of the deployment it could be PR number or another specified name.
chart-dir:
Expand All @@ -35,17 +34,13 @@ runs:
shell: bash
run: |
# Generate workflow vars.
rand_gen() {
python -c "import random, string; print(''.join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(20)))"
}

is_pr() {
echo ${{ github.event.pull_request.number }} | grep -q .
}

# NOTE: We should use the matrix job id var once it's available.
# https://github.com/orgs/community/discussions/40291
GITHUB_WORKFLOW_JOB_ID=$(rand_gen | cut -c 1-6)
GITHUB_WORKFLOW_JOB_ID=$(uuidgen | head -c 6)

echo "Env vars:"

Expand All @@ -65,7 +60,7 @@ runs:
TEST_NAMESPACE="${TEST_NAMESPACE}-upgrade"
fi

echo "TEST_NAMESPACE=${TEST_NAMESPACE}" | tee -a $GITHUB_ENV
echo "TEST_NAMESPACE=$(echo ${TEST_NAMESPACE} | head -c 63)" | tee -a $GITHUB_ENV

echo "Output vars:"

Expand All @@ -90,7 +85,8 @@ runs:
# In the upgrade flow, the latest released chart for certain minor Camunda version will installed,
# then upgraded from the PR branch to ensure upgradability.
if [[ "${{ inputs.setup-flow }}" == 'upgrade' ]]; then
git fetch origin main:main --no-tags
test "$(git branch --show-current)" != "main" &&
git fetch origin main:main --no-tags
TEST_CHART_VERSION="$(git show main:charts/${{ inputs.chart-dir }}/Chart.yaml | yq '.version')"
echo "TEST_CHART_VERSION=${TEST_CHART_VERSION}" | tee -a $GITHUB_ENV

Expand Down
8 changes: 4 additions & 4 deletions .github/config/release-please/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"charts/camunda-platform-8.2": "8.2.28",
"charts/camunda-platform-8.3": "8.3.13",
"charts/camunda-platform-8.4": "9.3.6",
"charts/camunda-platform-latest": "10.1.0"
"charts/camunda-platform-8.2": "8.2.30",
"charts/camunda-platform-8.3": "8.3.15",
"charts/camunda-platform-8.4": "9.3.8",
"charts/camunda-platform-latest": "10.3.0"
}
28 changes: 18 additions & 10 deletions .github/config/release-please/release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"release-type": "helm",
"group-pull-request-title-pattern": "Release Camunda Platform Helm Chart",
"pull-request-title-pattern": "Camunda Platform Helm Chart ${component}/${version}",
"group-pull-request-title-pattern": "chore(release): Camunda Platform Helm Chart",
"pull-request-title-pattern": "chore(release): Camunda Platform Helm Chart ${component}/${version}",
"extra-label": "automation/release-please,release/pr,kind/chore,chart/camunda-platform",
"skip-github-release": true,
"separate-pull-requests": false,
Expand All @@ -10,13 +10,17 @@
"draft": false,
"packages": {
"charts/camunda-platform-latest": {
"component": "camunda-platform-latest",
"extra-label": "version/8.5",
"package-name": "camunda-platform-8.5",
"extra-label": "version/8.5,automation/release-please,release/pr,kind/chore,chart/camunda-platform",
"component": "camunda-platform",
"include-v-in-tag": false,
"changelog-path": "CHANGELOG.md"
},
"charts/camunda-platform-8.4": {
"component": "camunda-platform-8.4",
"extra-label": "version/8.4",
"package-name": "camunda-platform-8.4",
"extra-label": "version/8.4,automation/release-please,release/pr,kind/chore,chart/camunda-platform",
"component": "camunda-platform",
"include-v-in-tag": false,
"changelog-path": "CHANGELOG.md",
"extra-files": [
{
Expand All @@ -27,8 +31,10 @@
]
},
"charts/camunda-platform-8.3": {
"component": "camunda-platform-8.3",
"extra-label": "version/8.3",
"package-name": "camunda-platform-8.3",
"extra-label": "version/8.3,automation/release-please,release/pr,kind/chore,chart/camunda-platform",
"component": "camunda-platform",
"include-v-in-tag": false,
"changelog-path": "CHANGELOG.md",
"extra-files": [
{
Expand All @@ -39,8 +45,10 @@
]
},
"charts/camunda-platform-8.2": {
"component": "camunda-platform-8.2",
"extra-label": "version/8.2",
"package-name": "camunda-platform-8.2",
"extra-label": "version/8.2,automation/release-please,release/pr,kind/chore,chart/camunda-platform",
"component": "camunda-platform",
"include-v-in-tag": false,
"changelog-path": "CHANGELOG.md",
"extra-files": [
{
Expand Down
1 change: 1 addition & 0 deletions .github/config/rosa-on-demand/distribution-team/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: external-secrets.io/v1beta1
kind: SecretStore
metadata:
name: k8s-store-token-auth
spec:
provider:
kubernetes:
remoteNamespace: distribution-team
server:
url: REPLACE_ME # the url will be dynamically replaced in .github/workflows/test-integration-rosa.yaml using `yq`
caProvider:
type: Secret
name: "external-clusters-access-secret-store-token"
key: "ca.crt"
namespace: distribution-team
auth:
token:
bearerToken:
name: "external-clusters-access-secret-store-token"
key: "token"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# clone the widlcard certs secrets from the permanent cluster

apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: external-secret-ci-distro-ultrawombat-com
namespace: camunda-platform
spec:
refreshInterval: 1h
secretStoreRef:
kind: SecretStore
name: k8s-store-token-auth
target:
name: ci-distro-ultrawombat-com # name of the k8s Secret to be created
data:
- secretKey: tls.crt
remoteRef:
key: ci-distro-ultrawombat-com
property: tls.crt
- secretKey: tls.key
remoteRef:
key: ci-distro-ultrawombat-com
property: tls.key
15 changes: 15 additions & 0 deletions .github/config/rosa-on-demand/distribution-team/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

commonAnnotations:
camunda.com/team: distribution

commonLabels:
app.kubernetes.io/managed-by: kustomize

namespace: distribution-team

resources:
- secret.yaml
- external-cluster-secretstore.yaml
- external-secret.yaml
14 changes: 14 additions & 0 deletions .github/config/rosa-on-demand/distribution-team/secret.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use envsubst https://stackoverflow.com/a/56009991
# envsubst < secret.yaml.tpl > secret.yaml
# This secret is templated in .github/workflows/test-integration-rosa.yaml#L228
---
apiVersion: v1
kind: Secret
metadata:
name: external-clusters-access-secret-store-token
data:
ca.crt: "$EXTERNAL_SECRET_STORE_SA_CA"
service-ca.crt: "$EXTERNAL_SECRET_STORE_SA_SERVICE_CA"
namespace: ZGlzdHJpYnV0aW9uLXRlYW0=
# Get it from distro-central cluster.
token: "$EXTERNAL_SECRET_STORE_SA_TOKEN"
2 changes: 2 additions & 0 deletions .github/config/rosa-on-demand/external-dns/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
secret.yaml
charts
13 changes: 13 additions & 0 deletions .github/config/rosa-on-demand/external-dns/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

commonAnnotations:
camunda.com/team: distribution

commonLabels:
app.kubernetes.io/managed-by: kustomize

namespace: external-dns

resources:
- ./secret.yaml
10 changes: 10 additions & 0 deletions .github/config/rosa-on-demand/external-dns/secret.yaml.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Use envsubst https://stackoverflow.com/a/56009991
# envsubst < secret.yaml.tpl > secret.yaml
---
apiVersion: v1
kind: Secret
metadata:
name: external-dns-gcp-service-account
data:
# Get it from distro-central repo.
credentials.json: "$EXTERNAL_DNS_GCP_SERVICE_ACCOUNT"
15 changes: 15 additions & 0 deletions .github/config/rosa-on-demand/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

# Description: this is a template cluster that is used each time we spawn an "on-demand" ROSA HCP cluster in the CI
# it extends the default configuration of the generic on-demand ROSA cluster with specific values set by the workflow

commonAnnotations:
camunda.com/team: distribution

commonLabels:
app.kubernetes.io/managed-by: kustomize

resources:
- ./external-dns
- ./distribution-team
24 changes: 24 additions & 0 deletions .github/config/rosa-on-demand/test-integration-rosa-matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
matrix:
distro:
# /!\ BEFORE ADDING/REMOVING A VERSION:
# /!\ Please keep this matrix synced with the official documentation: https://github.com/camunda/camunda-docs/blob/main/docs/self-managed/setup/deploy/openshift/redhat-openshift.md?plain=1#L2
# According to https://access.redhat.com/support/policy/updates/openshift, this matrix should reference the last 4 (may change) supported versions of OpenShift
- name: OpenShift 4.15
type: openshift
# renovate: datasource=endoflife-date depName=red-hat-openshift versioning=regex:^4(\.(?<minor>\d+))?(\.(?<patch>\d+))?$
version: 4.15.11
# /!\ Warning: When a new minor version of OpenShift is released, you must update all N-1, N-2, and N-3 versions in this matrix.
# rationale: Red Hat supports the last four minor versions of OpenShift. Therefore, to ensure compatibility and support, we must test against these versions. For more details, refer to the official support policy at https://endoflife.date/red-hat-openshift.
platform: rosa
- name: OpenShift 4.14 # TODO: when you will add to this matrix OpenShift 4.16, please duplicate this block for 4.15 (pay attention the the renovate regex)
type: openshift
# renovate: datasource=endoflife-date depName=red-hat-openshift versioning=regex:^4.14(\.(?<patch>\d+))?$
version: 4.14.24
platform: rosa
scenario:
- name: Chart Setup
desc: Setup chart in production-like setup with Ingress and TLS.
flow: install
- name: Chart Upgrade
desc: Upgrade chart from the latest released version to the current branch.
flow: upgrade
33 changes: 33 additions & 0 deletions .github/config/test-integration-matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
matrix:
distro:
- name: Kubernetes
type: kubernetes
platform: gke
secret:
cluster-name: DISTRO_CI_GCP_GKE_CLUSTER_NAME
cluster-location: DISTRO_CI_GCP_GKE_CLUSTER_LOCATION
workload-identity-provider: DISTRO_CI_GCP_WORKLOAD_IDENTITY_PROVIDER
service-account: DISTRO_CI_GCP_SERVICE_ACCOUNT
if: ${{ contains(inputs.platforms, 'gke') }}
- name: OpenShift
type: openshift
platform: rosa
secret:
server-url: DISTRO_CI_OPENSHIFT_CLUSTER_URL
username: DISTRO_CI_OPENSHIFT_CLUSTER_USERNAME
password: DISTRO_CI_OPENSHIFT_CLUSTER_PASSWORD
if: ${{ contains(inputs.platforms, 'rosa') }}
scenario:
- name: Chart Setup
desc: Setup chart in production-like setup with Ingress and TLS.
flow: install
if: ${{ contains(inputs.flows, 'install') }}
- name: Chart Upgrade
desc: Upgrade chart from the latest released version to the current branch.
flow: upgrade
if: ${{ contains(inputs.flows, 'upgrade') }}
exclude:
- distro:
if: false
- scenario:
if: false
Loading