Skip to content

Commit 5159b0a

Browse files
Merge pull request #762 from ecordell/upstream-catalog
Add upstream catalog
2 parents ee4c86f + 22820fd commit 5159b0a

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

deploy/chart/templates/0000_50_olm_06-olm-operator.deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
path: /healthz
5151
port: {{ .Values.olm.service.internalPort }}
5252
env:
53+
{{ if (.Values.installType) and eq .Values.installType "ocp" }}
54+
- name: RELEASE_VERSION
55+
value: "0.0.1-snapshot"
56+
{{ end }}
5357
- name: OPERATOR_NAMESPACE
5458
valueFrom:
5559
fieldRef:

deploy/chart/templates/0000_50_olm_14-operatorstatus.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ apiVersion: config.openshift.io/v1
33
kind: ClusterOperator
44
metadata:
55
name: {{ .Values.writeStatusName }}
6+
status:
7+
versions:
8+
- name: operator
9+
version: "0.0.1-snapshot"
610
{{- end }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! validate-crd: ./deploy/chart/templates/05-catalogsource.crd.yaml
2+
#! parse-kind: CatalogSource
3+
{{ if (.Values.installType) and eq .Values.installType "upstream" }}
4+
apiVersion: operators.coreos.com/v1alpha1
5+
kind: CatalogSource
6+
metadata:
7+
name: operatorhubio-catalog
8+
namespace: {{ .Values.catalog_namespace }}
9+
spec:
10+
sourceType: grpc
11+
image: quay.io/operator-framework/upstream-community-operators:latest
12+
displayName: Community Operators
13+
publisher: OperatorHub.io
14+
{{ end }}

0 commit comments

Comments
 (0)