Skip to content

Commit

Permalink
feat: add redpanda connect chart (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooesili authored Oct 31, 2024
1 parent 160936f commit 662fa2e
Show file tree
Hide file tree
Showing 33 changed files with 2,320 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/ct-connect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
debug: true
remote: origin
target-branch: main
helm-extra-args: --timeout 900s
chart-repos:
- redpanda=https://charts.redpanda.com
charts:
- charts/connect
14 changes: 13 additions & 1 deletion .github/workflows/pull_requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
runs-on: ubuntu-22.04
outputs:
charts-connectors: ${{ steps.chart-changes.outputs.charts-connectors }}
charts-connect: ${{ steps.chart-changes.outputs.charts-connect }}
charts-console: ${{ steps.chart-changes.outputs.charts-console }}
charts-kminion: ${{ steps.chart-changes.outputs.charts-kminion }}
charts-operator: ${{ steps.chart-changes.outputs.charts-operator }}
Expand Down Expand Up @@ -77,6 +78,11 @@ jobs:
- 'charts/operator/files/*'
- 'charts/operator/templates/**'
- 'charts/operator/(.helmignore|values.schema.json|Chart.yaml)'
charts-connect:
- 'charts/connect/ci/*'
- 'charts/connect/files/*'
- 'charts/connect/templates/**'
- 'charts/connect/(.helmignore|values.schema.json|Chart.yaml)'
go-code:
- '.github/workflows/pull_requests.yaml'
- '**/testdata/**'
Expand Down Expand Up @@ -130,11 +136,17 @@ jobs:
if: ${{ needs.changes.outputs.charts-operator == 'true' }}
uses: ./.github/workflows/test_operator.yaml
secrets: inherit
test-charts-connect:
needs: [changes, lint]
if: ${{ needs.changes.outputs.charts-connect == 'true' }}
uses: ./.github/workflows/test_connect.yaml
secrets: inherit
summary:
if: always()
needs:
- lint
- test-charts-connectors
- test-charts-connect
- test-charts-kminion
- test-charts-operator
- test-charts-redpanda
Expand All @@ -145,5 +157,5 @@ jobs:
- name: Summarize the results of the test matrix pass/fail
uses: re-actors/alls-green@release/v1
with:
allowed-skips: test-go, test-charts-connectors, test-charts-kminion, test-charts-operator, test-charts-redpanda, test-charts-redpanda-integration
allowed-skips: test-go, test-charts-connectors, test-charts-kminion, test-charts-operator, test-charts-redpanda, test-charts-redpanda-integration, test-charts-connect
jobs: ${{ toJSON(needs)}}
58 changes: 58 additions & 0 deletions .github/workflows/test_connect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Test Connect Chart
on:
workflow_call:
inputs: {}
secrets: {}
defaults:
run:
shell: nix develop --impure --command bash {0}
jobs:
test:
name: Run ct tests for connect chart
strategy:
fail-fast: true
runs-on: ubuntu-22.04
steps:
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
# Cache the nix store.
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create kind cluster
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
config: .github/kind.yaml
- name: Check kind config worked
run: kubectl get nodes
# Chart-testing requires there to be a branch on the local repository
# for diffing. This will create such a branch without performing a
# checkout.
- name: Fetch origin/main
run: git fetch origin ${{ github.event.repository.default_branch }}:${{ github.event.repository.default_branch }}
- name: Run chart-testing (install and upgrade)
run: |
ct install \
--github-groups \
--upgrade \
--config .github/ct-connect.yaml \
--skip-missing-values \
--target-branch ${{ github.event.repository.default_branch }}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,8 @@
#### Changed
#### Fixed
#### Removed

## Connect Chart
### [3.0.0](https://github.com/redpanda-data/helm-charts/releases/tag/connect-3.0.0)
#### Added
* Refreshed chart and migrated from [the old standalone repo](https://github.com/redpanda-data/redpanda-connect-helm-chart)
26 changes: 26 additions & 0 deletions charts/connect/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# Github meta
.github/
tests/
46 changes: 46 additions & 0 deletions charts/connect/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v2
name: connect
description: Redpanda Connect Helm chart for Kubernetes
maintainers:
- name: redpanda-data
url: https://github.com/orgs/redpanda-data/people
type: application

# The chart version and the app version are not the same and will not track
# together. The chart version is a semver representation of changes to this
# chart.
version: 3.0.0

# The app version is the default version of Redpanda to install.
# ** NOTE for maintainers: please ensure the artifacthub image annotation is updated before merging
appVersion: "4.38.0"

sources:
- https://github.com/redpanda-data/helm-charts
annotations:
artifacthub.io/license: Apache-2.0
artifacthub.io/links: |
- name: Documentation
url: https://docs.redpanda.com
- name: "Helm (>= 3.10.0)"
url: https://helm.sh/docs/intro/install/
artifacthub.io/images: |
- name: redpanda
image: docker.redpanda.com/redpandadata/connect:4.38.0
- name: busybox
image: busybox:latest
Loading

0 comments on commit 662fa2e

Please sign in to comment.