-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #609 from njhale/package-server-subscription
feat(package-server): create subscription manifest
- Loading branch information
Showing
129 changed files
with
1,197 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
deploy/chart/templates/0000_30_14-olm-operators.configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: olm-operators | ||
namespace: {{ .Values.catalog_namespace }} | ||
{{ $root := . }} | ||
data: | ||
customResourceDefinitions: |- | ||
{{- range $path, $bytes := .Files.Glob "catalog_resources/olm-operators/**.crd.yaml" }} | ||
{{- range $index, $line := $root.Files.Lines $path }} | ||
{{- if eq $index 0 }} | ||
{{- $line | printf "%s%s" "- " | nindent 4 }} | ||
{{- else }} | ||
{{- $line | nindent 6 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
clusterServiceVersions: |- | ||
{{- include "packageserver.clusterserviceversion" . | nindent 4 }} | ||
{{- range $path, $bytes := .Files.Glob "catalog_resources/olm-operators/**.clusterserviceversion.yaml" }} | ||
{{- range $index, $line := $root.Files.Lines $path }} | ||
{{- if eq $index 0 }} | ||
{{- $line | printf "%s%s" "- " | nindent 4 }} | ||
{{- else }} | ||
{{- $line | nindent 6 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
packages: |- | ||
{{- include "packageserver.package" . | nindent 4 }} | ||
{{- range $path, $bytes := .Files.Glob "catalog_resources/olm-operators/**.package.yaml" }} | ||
{{- range $index, $line := $root.Files.Lines $path }} | ||
{{- if eq $index 0 }} | ||
{{- $line | printf "%s%s" "- " | nindent 4 }} | ||
{{- else }} | ||
{{- $line | nindent 6 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
12 changes: 12 additions & 0 deletions
12
deploy/chart/templates/0000_30_15-olm-operators.catalogsource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! validate-crd: ./deploy/chart/templates/05-catalogsource.crd.yaml | ||
#! parse-kind: CatalogSource | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: CatalogSource | ||
metadata: | ||
name: olm-operators | ||
namespace: {{ .Values.catalog_namespace }} | ||
spec: | ||
sourceType: internal | ||
configMap: olm-operators | ||
displayName: OLM Operators | ||
publisher: Red Hat |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
deploy/chart/templates/0000_30_17-packageserver.subscription.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! validate-crd: ./deploy/chart/templates/04-subscription.crd.yaml | ||
#! parse-kind: Subscription | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: packageserver | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
source: olm-operators | ||
name: packageserver | ||
channel: alpha |
112 changes: 112 additions & 0 deletions
112
deploy/chart/templates/_packageserver.clusterserviceversion.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{{- define "packageserver.clusterserviceversion" }} | ||
- apiVersion: operators.coreos.com/v1alpha1 | ||
kind: ClusterServiceVersion | ||
metadata: | ||
name: packageserver.v{{ .Chart.Version }} | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
displayName: Package Server | ||
description: Represents an Operator package that is available from a given CatalogSource which will resolve to a ClusterServiceVersion. | ||
keywords: ['packagemanifests', 'olm', 'packages'] | ||
maintainers: | ||
- name: Red Hat | ||
email: openshift-operators@redhat.com | ||
provider: | ||
name: Red Hat | ||
links: | ||
- name: Package Server | ||
url: https://github.com/operator-framework/operator-lifecycle-manager/tree/master/pkg/packageserver | ||
install: | ||
strategy: deployment | ||
spec: | ||
clusterPermissions: | ||
- serviceAccountName: packageserver | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "operators.coreos.com" | ||
resources: | ||
- catalogsources | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "packages.apps.redhat.com" | ||
resources: | ||
- packagemanifests | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- delete | ||
- patch | ||
- update | ||
deployments: | ||
- name: packageserver | ||
spec: | ||
replicas: {{ .Values.package.replicaCount }} | ||
strategy: | ||
type: RollingUpdate | ||
selector: | ||
matchLabels: | ||
app: packageserver | ||
template: | ||
metadata: | ||
labels: | ||
app: packageserver | ||
spec: | ||
serviceAccountName: packageserver | ||
containers: | ||
- name: packageserver | ||
command: | ||
- /bin/package-server | ||
- -v=4 | ||
{{- if .Values.watchedNamespaces }} | ||
- --watched-namespaces | ||
- {{ .Values.watchedNamespaces }} | ||
{{- end }} | ||
- --secure-port | ||
- {{ .Values.package.service.internalPort | quote }} | ||
- --global-namespace | ||
- {{ .Values.namespace }} | ||
{{- if .Values.debug }} | ||
- --debug | ||
{{- end }} | ||
{{- if .Values.package.commandArgs }} | ||
- {{ .Values.package.commandArgs }} | ||
{{- end }} | ||
image: {{ .Values.package.image.ref }} | ||
imagePullPolicy: {{ .Values.package.image.pullPolicy }} | ||
ports: | ||
- containerPort: {{ .Values.package.service.internalPort }} | ||
livenessProbe: | ||
httpGet: | ||
scheme: HTTPS | ||
path: /healthz | ||
port: {{ .Values.package.service.internalPort }} | ||
readinessProbe: | ||
httpGet: | ||
scheme: HTTPS | ||
path: /healthz | ||
port: {{ .Values.package.service.internalPort }} | ||
maturity: alpha | ||
version: {{ .Chart.Version }} | ||
apiservicedefinitions: | ||
owned: | ||
- group: packages.apps.redhat.com | ||
version: v1alpha1 | ||
kind: PackageManifest | ||
displayName: PackageManifest | ||
description: A PackageManifest is a resource generated from existing CatalogSources and their ConfigMaps | ||
deploymentName: packageserver | ||
containerPort: {{ .Values.package.service.internalPort }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{- define "packageserver.package" }} | ||
- packageName: packageserver | ||
channels: | ||
- name: alpha | ||
currentCSV: packageserver.v{{ .Chart.Version }} | ||
{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
##--- | ||
--- | ||
# Source: olm/templates/0000_30_00-namespace.yaml | ||
apiVersion: v1 | ||
kind: Namespace | ||
|
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_01-olm-operator.serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_02-clusterserviceversion.crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_06-rh-operators.configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
##--- | ||
--- | ||
# Source: olm/templates/0000_30_06-rh-operators.configmap.yaml | ||
|
||
kind: ConfigMap | ||
|
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_07-certified-operators.configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
##--- | ||
--- | ||
# Source: olm/templates/0000_30_07-certified-operators.configmap.yaml | ||
|
||
kind: ConfigMap | ||
|
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_08-certified-operators.catalogsource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_09-rh-operators.catalogsource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_10-olm-operator.deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
##--- | ||
--- | ||
# Source: olm/templates/0000_30_10-olm-operator.deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
|
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_11-catalog-operator.deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
deploy/ocp/manifests/0.8.0/0000_30_12-aggregated.clusterrole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.