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
52 changes: 52 additions & 0 deletions ci/pipelines/cf-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ groups:
- fips-smoke-tests
- fips-cats
- fips-delete-deployment
- kind-smoke-tests
- kind-cats
- bless-manifest
- ship-it-patch
- ship-it-minor
Expand Down Expand Up @@ -138,6 +140,10 @@ groups:
- fips-cats
- fips-delete-deployment
- bless-manifest
- name: kind-neville
jobs:
- kind-smoke-tests
- kind-cats
- name: ship-it
jobs:
- ship-it-patch
Expand Down Expand Up @@ -2174,6 +2180,52 @@ jobs:
- put: fips-pool
params: {release: fips-pool}

- name: kind-smoke-tests
public: true
serial_groups: [ kind-workflows ]
plan:
- in_parallel:
- get: cf-deployment-develop
trigger: true
passed:
- unit-test-ops-files
- lint-cf-deployment-manifest
- unit-test-golang-tests
- unit-test-update-releases-coverage
- get: runtime-ci
- task: trigger-kind-smoke-workflow
file: runtime-ci/tasks/trigger-github-workflow/task.yml
params:
GITHUB_TOKEN: ((kind_deployment_github_token))
GITHUB_REPO: cloudfoundry/kind-deployment
WORKFLOW_FILE: kind-smoke.yaml
WORKFLOW_REF: main
WORKFLOW_INPUTS: '{"minimal": "true", "fresh-validation": "true"}'
timeout: 3h

- name: kind-cats
public: true
serial_groups: [ kind-workflows ]
plan:
- in_parallel:
- get: cf-deployment-develop
trigger: true
passed:
- unit-test-ops-files
- lint-cf-deployment-manifest
- unit-test-golang-tests
- unit-test-update-releases-coverage
- get: runtime-ci
- task: trigger-kind-cats-workflow
file: runtime-ci/tasks/trigger-github-workflow/task.yml
params:
GITHUB_TOKEN: ((kind_deployment_github_token))
GITHUB_REPO: cloudfoundry/kind-deployment
WORKFLOW_FILE: kind-cats.yaml
WORKFLOW_REF: main
WORKFLOW_INPUTS: '{"fresh-validation": "true"}'
timeout: 4h

- name: bless-manifest
public: true
serial: true
Expand Down
112 changes: 112 additions & 0 deletions ci/pipelines/kind-neville.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# kind-neville

Validate cf-deployment on Kubernetes using [kind-deployment](https://github.com/cloudfoundry/kind-deployment).

## Goal

Validate that release versions on cf-deployment `develop` also work when
deployed on Kubernetes, in parallel with the existing BOSH-based validation.

cf-deployment **orchestrates** β€” it triggers kind-deployment's existing
GitHub Actions workflows and consumes the result. All Kubernetes logic
(Helm charts, image builds, `make up`, test suites) stays in kind-deployment.

---

## How it works

The implementation uses
[kind-deployment PR #424](https://github.com/cloudfoundry/kind-deployment/pull/424)
(already merged), which adds a `fresh-validation` boolean input to
`kind-smoke.yaml` and `kind-cats.yaml`. When `fresh-validation: true` is
passed via `workflow_dispatch`, the workflow runs
`sync-cf-deployment-versions.py --ref develop` inline before `make up`,
syncing Helm chart versions to cf-deployment's `develop` branch within
the workflow's ephemeral checkout.

```
develop (trigger)
β”‚
β–Ό
unit-test-ops-files
lint-cf-deployment-manifest
unit-test-golang-tests
unit-test-update-releases-coverage
β”‚
β”œβ”€β”€β”€ BOSH environments (fresh, upgrade, experimental, …) ────┐
β”‚ β”‚
β”œβ”€β”€β”€ kind-smoke-tests ─► kind-smoke.yaml (fresh-validation) ──
└─── kind-cats ────────► kind-cats.yaml (fresh-validation) ──
β”‚
bless-manifest
(waits for BOSH only)
```

Inside each kind workflow:

1. Checkout kind-deployment @ `main`
2. `sync-cf-deployment-versions.py --ref develop` (updates chart versions)
3. `make up` (deploy CF on kind)
4. Run smoke tests / CATS

Nothing is committed; synced versions are discarded when the run finishes.

---

## Pipeline details

### Group: `kind-neville`

```yaml
- name: kind-neville
jobs:
- kind-smoke-tests
- kind-cats
```

### Jobs

| Job | Dispatches | Inputs |
|-----|-----------|--------|
| `kind-smoke-tests` | `kind-smoke.yaml` on `main` | `{"minimal": "true", "fresh-validation": "true"}` |
| `kind-cats` | `kind-cats.yaml` on `main` | `{"fresh-validation": "true"}` |

Both trigger after the same four unit/lint jobs that gate all BOSH
environments and share `serial_groups: [kind-workflows]`.

### Non-blocking

`bless-manifest` does **not** depend on kind jobs. Failures are
informational and do not gate releases.

---

## Reusable task: trigger-github-workflow

Lives in [runtime-ci](https://github.com/cloudfoundry/runtime-ci) at
`tasks/trigger-github-workflow/`. Uses `cloudfoundry/cf-deployment-concourse-tasks`
image (provides `gh` + `jq`).

The dispatch API returns no run ID, so the script locates the run by
matching: `id > BEFORE_ID`, `created_at >= DISPATCH_TS`, and
`actor.login == ACTOR_LOGIN`. The serial group ensures only one dispatch
is in flight at a time.

---

## Credentials

The pipeline uses `((kind_deployment_github_token))` as the Concourse secret
name. The value comes from Google Secret Manager: secret `ard-wg-k8s-gitbot`,
version 2 (labelled "cf-deployment"), created by the WG for this integration.

---

## Related PRs

| Repository | PR |
|---|---|
| cf-deployment | [#1359](https://github.com/cloudfoundry/cf-deployment/pull/1359) β€” pipeline jobs |
| runtime-ci | [#687](https://github.com/cloudfoundry/runtime-ci/pull/687) β€” reusable trigger task |
| cf-deployment-concourse-tasks | [#249](https://github.com/cloudfoundry/cf-deployment-concourse-tasks/pull/249) β€” add `gh` CLI to image |
| kind-deployment | [#424](https://github.com/cloudfoundry/kind-deployment/pull/424) β€” `fresh-validation` input (merged) |