-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tiago Bueno <[email protected]>
- Loading branch information
Showing
8 changed files
with
137 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
charts/catalog-source-installer/templates/CatalogSource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters