Skip to content

Commit

Permalink
Add kpack support
Browse files Browse the repository at this point in the history
  • Loading branch information
wangeguo committed Jan 26, 2024
1 parent 6c1914f commit c6dd2f6
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,18 @@ The following table lists the configurable parameters of the Amphitheatre chart
|---------------------|-------------------------------------------|--------------|
| crds.install | Install or uninstall the amphitheatre-crds helm chart | `true` |

### Kpack Parameters

| Parameter | Description | Default |
|---------------------|-------------------------------------------|--------------|
| kpack.enabled | Switch to enable or disable the kpack helm chart | `true` |

### NATS Parameters

| Parameter | Description | Default |
|---------------------|-------------------------------------------|--------------|
| nats.nats.jetstream.enabled | Enable NATS JetStream | `true` |
| nats.cluster.enabled | Enable NATS Cluster | `true
| nats.cluster.enabled | Enable NATS Cluster | `true` |

## Documentation

Expand Down
6 changes: 5 additions & 1 deletion charts/amphitheatre/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.12.1
version: 0.12.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand All @@ -37,6 +37,10 @@ dependencies:
repository: oci://docker.io/envoyproxy
version: v0.0.0-latest
condition: gateway.enabled
- name: kpack
repository: https://charts.amphitheatre.app
version: 0.2.0
condition: kpack.enabled
- name: metrics-server
repository: https://kubernetes-sigs.github.io/metrics-server/
version: 3.10.0
Expand Down
28 changes: 28 additions & 0 deletions charts/amphitheatre/templates/controllers/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,31 @@ rules:
- apiGroups: ["events.k8s.io"]
resources: ["events"]
verbs: ["create"]

- apiGroups:
- kpack.io
resources:
- builds
- builds/status
- images
- images/status
- builders
- builders/status
- buildpacks
- buildpacks/status
- clusterbuilders
- clusterbuilders/status
- clusterbuildpacks
- clusterbuildpacks/status
- clusterstores
- clusterstores/status
- clusterstacks
- clusterstacks/status
verbs:
- get
- list
- create
- update
- delete
- patch
- watch
5 changes: 5 additions & 0 deletions charts/amphitheatre/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ crds:
# Switch to install or uninstall the amphitheatre-crds helm chart
install: true

## @section Kpack Parameters
kpack:
# Switch to enable or disable the kpack helm chart
enabled: true

## @section NATS Parameters
nats:
nats:
Expand Down

0 comments on commit c6dd2f6

Please sign in to comment.