Skip to content

Commit 4564e0f

Browse files
committed
WIP: first pass helm config
Signed-off-by: Todd Short <[email protected]>
1 parent b50dbe0 commit 4564e0f

File tree

49 files changed

+2305
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2305
-0
lines changed

helm/experimental-e2e.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Default values for operator-controller.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
# List of components to include
6+
components:
7+
e2e:
8+
enabled: true
9+
10+
features:
11+
apiV1MetasHandler:
12+
enabled: true
13+
webhookProviderCertManager:
14+
enabled: true
15+
singleOwnNamespaceInstallSupport:
16+
enabled: true
17+
preflightPermissions:
18+
enabled: true
19+
helmChartSupport:
20+
enabled: true
21+
22+
# This can be one of: standard, standard-e2e, experimental, or experimental-e2e
23+
featureSet: experimental-e2e

helm/experimental.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Default values for operator-controller.
2+
# This is a YAML-formatted file.
3+
# Declare variables to be passed into your templates.
4+
5+
features:
6+
apiV1MetasHandler:
7+
enabled: true
8+
webhookProviderCertManager:
9+
enabled: true
10+
singleOwnNamespaceInstallSupport:
11+
enabled: true
12+
preflightPermissions:
13+
enabled: true
14+
helmChartSupport:
15+
enabled: true
16+
17+
# This can be one of: standard, standard-e2e, experimental, or experimental-e2e
18+
featureSet: experimental

helm/olmv1/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

helm/olmv1/Chart.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: v2
2+
name: olmv1
3+
description: A Helm chart for OLMv1
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: 0.1.0
19+
20+
# This is the version number of the application being deployed. This version number should be
21+
# incremented each time you make changes to the application. Versions are not expected to
22+
# follow Semantic Versioning. They should reflect the version the application is using.
23+
# It is recommended to use it with quotes.
24+
appVersion: "1.3.0"

helm/olmv1/templates/00-namespace.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{/* this is a common component */}}
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
annotations:
6+
{{- include "olmv1.annotations" . | nindent 4 }}
7+
labels:
8+
{{- include "olmv1.labels" . | nindent 4 }}
9+
pod-security.kubernetes.io/enforce: restricted
10+
pod-security.kubernetes.io/enforce-version: latest
11+
name: {{ .Values.namespaces.olmv1 }}

helm/olmv1/templates/01-customresourcedefinition-clustercatalogs.olm.operatorframework.io.yml

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.

helm/olmv1/templates/02-customresourcedefinition-clusterextensions.olm.operatorframework.io.yml

Lines changed: 573 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- if .Values.components.catalogd.enabled }}
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
annotations:
6+
{{- include "olmv1.annotations" . | nindent 4}}
7+
labels:
8+
app.kubernetes.io/name: catalogd
9+
app.kubernetes.io/part-of: olm
10+
name: catalogd-controller-manager
11+
namespace: {{ .Values.namespaces.olmv1 }}
12+
{{- end }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{- if .Values.components.operatorController.enabled }}
2+
apiVersion: v1
3+
kind: ServiceAccount
4+
metadata:
5+
annotations:
6+
{{- include "olmv1.annotations" . | nindent 4}}
7+
name: operator-controller-controller-manager
8+
namespace: {{ .Values.namespaces.olmv1 }}
9+
{{- end }}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{{- if .Values.components.catalogd.enabled }}
2+
{{/* Probably want to include this as a file somehow */}}
3+
apiVersion: rbac.authorization.k8s.io/v1
4+
kind: Role
5+
metadata:
6+
annotations:
7+
{{- include "olmv1.annotations" . | nindent 4}}
8+
labels:
9+
app.kubernetes.io/name: catalogd
10+
app.kubernetes.io/part-of: olm
11+
name: catalogd-leader-election-role
12+
namespace: {{ .Values.namespaces.olmv1 }}
13+
rules:
14+
- apiGroups:
15+
- ""
16+
resources:
17+
- configmaps
18+
verbs:
19+
- get
20+
- list
21+
- watch
22+
- create
23+
- update
24+
- patch
25+
- delete
26+
- apiGroups:
27+
- coordination.k8s.io
28+
resources:
29+
- leases
30+
verbs:
31+
- get
32+
- list
33+
- watch
34+
- create
35+
- update
36+
- patch
37+
- delete
38+
- apiGroups:
39+
- ""
40+
resources:
41+
- events
42+
verbs:
43+
- create
44+
- patch
45+
{{- end }}

0 commit comments

Comments
 (0)