olmv1

by joaquinito2051

Helm chartv1.0.0

Installs operators or cluster extensions in a declarative, GitOps friendly way using olmv1

About this chart

olmv1

Introduction

This chart will install operators or cluster extensions in a declarative, GitOps friendly way using OLM v1.

Please refer to the official OpenShift documentation for more information about how OLM v1 works: https://docs.redhat.com/en/documentation/openshift_container_platform/4.19/html-single/extensions/index#extensions-overview

Values

Here are the values used by this chart

ValueTypeRequiredDescription
namestringyesName for the ClusterExtension
namespacestringyesNamespace to create resources in
upgradeConstraintPolicystringNoPopulates clusterextension.spec.source.catalog.upgradeConstraintPolicy
versionstringnoPopulates clusterextension.spec.source.catalog.version
channelslistnoPopulates clusterextension.spec.source.catalog.channels
catalogSelectormapnoPopulates clusterextension.spec.source.catalog.selector
upgradeConstraintPolicystringnoPopulates clusterextension.spec.source.catalog.upgradeConstraintPolicy
packageNamestringnoPopulates clusterextension.spec.source.catalog.packageName
clusterRolestringyes *Specify a cluster role to assign to the ServiceAccount used to install the operator
rbacmapyes *Specify cluster and/or namespace rbac rules to assign to the ServiceAccount used to install the operator

* One of clusterRole or rbac is required.

Examples

Install cert-manager using selective RBAC rules

- name: openshift-cert-manager-operator
  namespace: openshift-cert-manager-operator
  upgradeConstraintPolicy: CatalogProvided
  packageName: openshift-cert-manager-operator
  version: 1.16.1
  channels:
  - stable-v1.16
  rbac:
    cluster:
    - apiGroups: ["apiextensions.k8s.io"]
      resources: ["customresourcedefinitions"]
      verbs: ["get", "list", "watch"]
    - apiGroups: ["rbac.authorization.k8s.io"]
      resources: ["clusterrolebindings"]
      verbs: ["get", "list", "watch"]
    - apiGroups: ["olm.operatorframework.io"]
      resources: ["clusterextensions/finalizers"]
      verbs: ["get", "update", "patch"]
    namespace:
    - apiGroups: [""]
      resources: ["pods"]
      verbs: ["get", "watch", "list"]
    - apiGroups: [""]
      resources: ["serviceaccounts"]
      verbs: ["get", "list", "watch", "create"]
    - apiGroups: [""]
      resources: ["services"]
      verbs: ["get", "list", "watch"]
    - apiGroups: ["apps"]
      resources: ["deployments"]
      verbs: ["get", "list", "watch"]

Install cert-manager using the cluster-admin role

- name: openshift-cert-manager-operator
  namespace: openshift-cert-manager-operator
  upgradeConstraintPolicy: CatalogProvided
  packageName: openshift-cert-manager-operator
  version: 1.16.1
  channels:
  - stable-v1.16
  clusterRole: cluster-admin

Deploy olmv1 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has olmv1 on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartolmv1 is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply