Skip to content

Commit

Permalink
[artemiscloud-operator] - add support to skip artemiscloud-operator-c…
Browse files Browse the repository at this point in the history
…rd dependency install

Signed-off-by: Tiago Bueno <[email protected]>
  • Loading branch information
tlbueno committed May 21, 2024
1 parent 1ea7960 commit 1d1b2fe
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/artemiscloud-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ dependencies:
# This is needed because it must be a match of the operator CRD
version: "0.2.1"
repository: https://tlbueno.github.io/helm-charts
condition: install_crds

16 changes: 15 additions & 1 deletion charts/artemiscloud-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ An helm chart to deploy the ArtemisCloud Operator

The chart will:
- create a namespace
- deploy artemiscloud operator CRDs (optional)
- deploy the artemiscloud operator

### How to use
Expand All @@ -22,10 +23,23 @@ helm install my-artemiscloud-operator -f ./my-values.yaml tlbueno/artemiscloud-o

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

# If true it will deploy the dependency chart artemiscloud-operator-crds
# If false it will skip the dependency install. In this case the CRD must be already installed
# Setting this as false and installing the artemiscloud-operator-crds before
# will let you manage the CRD versions in a different helm release, so, in this case
# you can have different versions of the operator at the same time.
# as an example, you can install artemiscloud-operator-crds for operator 1.2.1,
# then install the artemiscloud-operator for operator 1.2.1,
# then install the artemiscloud-operator for operator 1.1.0 in a different namespace
# as the CRDs have backward compatibility and you installed the latest one,
# you can have multiple operator versions at the same time but you need to ensure they are
# watching specific namespaces otherwise it can have unexpected behavior
install_crds: true

namespace:
# namespace where the operator will be installed
name: artemiscloud-operator
Expand Down
15 changes: 14 additions & 1 deletion charts/artemiscloud-operator/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# Default values for olm-operator-installer.
# Default values for artemiscloud-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# If true it will deploy the dependency chart artemiscloud-operator-crds
# If false it will skip the dependency install. In this case the CRD must be already installed
# Setting this as false and installing the artemiscloud-operator-crds before
# will let you manage the CRD versions in a different helm release, so, in this case
# you can have different versions of the operator at the same time.
# as an example, you can install artemiscloud-operator-crds for operator 1.2.1,
# then install the artemiscloud-operator for operator 1.2.1,
# then install the artemiscloud-operator for operator 1.1.0 in a different namespace
# as the CRDs have backward compatibility and you installed the latest one,
# you can have multiple operator versions at the same time but you need to ensure they are
# watching specific namespaces otherwise it can have unexpected behavior
install_crds: true

namespace:
# namespace where the operator will be installed
name: artemiscloud-operator
Expand Down

0 comments on commit 1d1b2fe

Please sign in to comment.