Skip to content

Commit 3b14002

Browse files
authored
Merge pull request #594 from njhale/selfhost-package-server
feat(package-server): self-host package-server with CSV
2 parents b62b5a2 + 911b236 commit 3b14002

File tree

70 files changed

+547
-849
lines changed

Some content is hidden

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

70 files changed

+547
-849
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: ClusterServiceVersion
3+
metadata:
4+
name: packageserver.v8.0.0
5+
namespace: {{ .Values.namespace }}
6+
spec:
7+
displayName: Package Server
8+
description: Represents an Operator package that is available from a given CatalogSource which will resolve to a ClusterServiceVersion.
9+
keywords: ['packagemanifests', 'olm', 'packages']
10+
maintainers:
11+
- name: Red Hat
12+
13+
provider:
14+
name: Red Hat
15+
links:
16+
- name: Package Server
17+
url: https://github.com/operator-framework/operator-lifecycle-manager/tree/master/pkg/package-server
18+
install:
19+
strategy: deployment
20+
spec:
21+
deployments:
22+
- name: package-server
23+
spec:
24+
replicas: {{ .Values.package.replicaCount }}
25+
strategy:
26+
type: RollingUpdate
27+
selector:
28+
matchLabels:
29+
app: package-server
30+
template:
31+
metadata:
32+
labels:
33+
app: package-server
34+
spec:
35+
serviceAccountName: olm-operator-serviceaccount
36+
containers:
37+
- name: package-server
38+
command:
39+
- /bin/package-server
40+
- -v=4
41+
{{- if .Values.watchedNamespaces }}
42+
- --watched-namespaces
43+
- {{ .Values.watchedNamespaces }}
44+
{{- end }}
45+
- --secure-port={{ .Values.package.service.internalPort }}
46+
- --global-namespace
47+
- {{ .Values.namespace }}
48+
{{- if .Values.debug }}
49+
- --debug
50+
{{- end }}
51+
{{- if .Values.package.commandArgs }}
52+
- {{ .Values.package.commandArgs }}
53+
{{- end }}
54+
image: {{ .Values.package.image.ref }}
55+
imagePullPolicy: {{ .Values.package.image.pullPolicy }}
56+
ports:
57+
- containerPort: {{ .Values.package.service.internalPort }}
58+
livenessProbe:
59+
httpGet:
60+
scheme: HTTPS
61+
path: /healthz
62+
port: {{ .Values.package.service.internalPort }}
63+
readinessProbe:
64+
httpGet:
65+
scheme: HTTPS
66+
path: /healthz
67+
port: {{ .Values.package.service.internalPort }}
68+
maturity: alpha
69+
version: 8.0.0
70+
apiservicedefinitions:
71+
owned:
72+
- group: packages.apps.redhat.com
73+
version: v1alpha1
74+
kind: PackageManifest
75+
displayName: PackageManifest
76+
description: A PackageManifest is a resource generated from existing CatalogSources and their ConfigMaps
77+
deploymentName: package-server
78+
containerPort: {{ .Values.package.service.internalPort }}

deploy/chart/templates/0000_30_13-packageserver.yaml

Lines changed: 0 additions & 171 deletions
This file was deleted.

deploy/ocp/manifests/0.8.0/0000_30_00-namespace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_00-namespace.yaml
33
apiVersion: v1
44
kind: Namespace

deploy/ocp/manifests/0.8.0/0000_30_01-olm-operator.serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_01-olm-operator.serviceaccount.yaml
33
apiVersion: rbac.authorization.k8s.io/v1
44
kind: ClusterRole

deploy/ocp/manifests/0.8.0/0000_30_02-clusterserviceversion.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_02-clusterserviceversion.crd.yaml
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition

deploy/ocp/manifests/0.8.0/0000_30_03-installplan.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_03-installplan.crd.yaml
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition

deploy/ocp/manifests/0.8.0/0000_30_04-subscription.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_04-subscription.crd.yaml
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition

deploy/ocp/manifests/0.8.0/0000_30_05-catalogsource.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_05-catalogsource.crd.yaml
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition

deploy/ocp/manifests/0.8.0/0000_30_06-rh-operators.configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_06-rh-operators.configmap.yaml
33

44
kind: ConfigMap

deploy/ocp/manifests/0.8.0/0000_30_07-certified-operators.configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##---
1+
---
22
# Source: olm/templates/0000_30_07-certified-operators.configmap.yaml
33

44
kind: ConfigMap

0 commit comments

Comments
 (0)