Skip to content

Commit

Permalink
add catalog-source-installer chart
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Bueno <[email protected]>
  • Loading branch information
tlbueno committed May 18, 2024
1 parent e2937a6 commit f02650d
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ An collections of helm chart

### Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.
[Helm](https://helm.sh) must be installed to use the charts.
Please refer to Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

Expand Down
23 changes: 23 additions & 0 deletions charts/catalog-source-installer/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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/
24 changes: 24 additions & 0 deletions charts/catalog-source-installer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: catalog-source-installer
description: A Helm chart to deploy a catalog source

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.1.0

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "N/A"
48 changes: 48 additions & 0 deletions charts/catalog-source-installer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# catalog-source-installer

An helm chart to deploy a catalog source.

The chart will:
- create a namespace
- deploy a catalog source

By default, the chart deploy the redhat operators catalog but you may override the default values to install other catalogs.

### How to use

Check [README.md](../../README.md) for repo installation details.

To install the chart, ie:
```sh
helm install my-catalog-source-chart tlbueno/catalog-source-installer
```

You may override the default values below by creating a yaml file with one or more entries and use it in helm command, ie:
```sh
helm install my-catalog-source-chart -f ./my-values.yaml tlbueno/catalog-source-installer
```

Default values:
```yaml
# Default values for catalog-soruce-installer.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

catalogSource:
# catalog name
name: redhat-operators-catalog
# namespace where to install
namespace: olm
# source type
sourceType: grpc
# catalog index image
image: registry.redhat.io/redhat/redhat-operator-index:v4.16
# catalog display name
displayName: Redhat Operators Catalog
# publisher
published: RedHat
# update interval
updateInterval: 15m

```

14 changes: 14 additions & 0 deletions charts/catalog-source-installer/templates/CatalogSource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: {{ .Values.catalogSource.name }}
namespace: {{ .Values.catalogSource.namespace }}
spec:
sourceType: {{ .Values.catalogSource.sourceType }}
image: {{ .Values.catalogSource.image }}
displayName: {{ .Values.catalogSource.displayName }}
publisher: {{ .Values.catalogSource.publisher }}
updateStrategy:
registryPoll:
interval: {{ .Values.catalogSource.updateInterval }}

20 changes: 20 additions & 0 deletions charts/catalog-source-installer/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Default values for catalog-soruce-installer.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

catalogSource:
# catalog name
name: redhat-operators-catalog
# namespace where to install
namespace: olm
# source type
sourceType: grpc
# catalog index image
image: registry.redhat.io/redhat/redhat-operator-index:v4.16
# catalog display name
displayName: Redhat Operators Catalog
# publisher
published: RedHat
# update interval
updateInterval: 15m

7 changes: 4 additions & 3 deletions charts/olm-operator-installer/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# olm-operator-installer

An helm chart to install an operator using Operator Lifecycle Manager (OLM)
An helm chart to deploy an operator using Operator Lifecycle Manager (OLM).

The chart will:
- create a namespace
- deploy an operator group with/without a selector label defined in the values
- deploy the subscription

By default, the chart deploy a cert-manager operator. But you can find some more examples in [examples](./examples) folder
By default, the chart deploy a cert-manager operator but you may override the values to install other operators .
You can find some more examples in [examples](./examples) folder.

### How to use

Check [README.md](../../README.md) for repo installation details
Check [README.md](../../README.md) for repo installation details.

To install the chart, ie:
```sh
Expand Down
4 changes: 2 additions & 2 deletions charts/toolbox/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# toolbox

An helm chart to create a toolbox pod
An helm chart to create a toolbox pod.

The chart will:
- create a namespace
- deploy a pod with the specified image

### How to use

Check [README.md](../../README.md) for repo installation details
Check [README.md](../../README.md) for repo installation details.

To install the chart, ie:
```sh
Expand Down

0 comments on commit f02650d

Please sign in to comment.