Skip to content

Commit 9401699

Browse files
authored
Merge pull request #653 from ecordell/linux-hosts
fix(deploy): add linux nodeselector
2 parents e2cfcbe + d5f8c37 commit 9401699

21 files changed

+34
-296
lines changed

deploy/chart/templates/_packageserver.clusterserviceversion.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
app: packageserver
7575
spec:
7676
serviceAccountName: packageserver
77+
{{- if .Values.olm.nodeSelector }}
78+
nodeSelector: {{ toYaml .Values.package.nodeSelector }}
79+
{{- end }}
7780
containers:
7881
- name: packageserver
7982
command:
@@ -118,4 +121,4 @@
118121
description: A PackageManifest is a resource generated from existing CatalogSources and their ConfigMaps
119122
deploymentName: packageserver
120123
containerPort: {{ .Values.package.service.internalPort }}
121-
{{- end }}
124+
{{- end }}

deploy/chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ olm:
1111
pullPolicy: Always
1212
service:
1313
internalPort: 8080
14+
nodeSelector: beta.kubernetes.io/os:linux
1415

1516
catalog:
1617
replicaCount: 1
@@ -19,6 +20,7 @@ catalog:
1920
pullPolicy: Always
2021
service:
2122
internalPort: 8080
23+
nodeSelector: beta.kubernetes.io/os:linux
2224

2325
package:
2426
replicaCount: 1
@@ -27,6 +29,7 @@ package:
2729
pullPolicy: Always
2830
service:
2931
internalPort: 5443
32+
nodeSelector: beta.kubernetes.io/os:linux
3033

3134
catalog_sources:
3235
- rh-operators

manifests/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

manifests/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

manifests/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

manifests/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

manifests/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

manifests/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

manifests/0000_30_06-rh-operators.configmap.yaml

Lines changed: 1 addition & 277 deletions
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
@@ -6161,128 +6161,6 @@ data:
61616161
plural: ""
61626162
conditions: null
61636163

6164-
- apiVersion: apiextensions.k8s.io/v1beta1
6165-
kind: CustomResourceDefinition
6166-
metadata:
6167-
name: catalogsourceconfigs.marketplace.redhat.com
6168-
annotations:
6169-
displayName: Catalog Source Config
6170-
description: Represents a CatalogSourceConfig.
6171-
spec:
6172-
group: marketplace.redhat.com
6173-
names:
6174-
kind: CatalogSourceConfig
6175-
listKind: CatalogSourceConfigList
6176-
plural: catalogsourceconfigs
6177-
singular: catalogsourceconfig
6178-
shortNames:
6179-
- csc
6180-
scope: Namespaced
6181-
version: v1alpha1
6182-
additionalPrinterColumns:
6183-
- name: TargetNamespace
6184-
type: string
6185-
description: The namespace where the operators will be enabled
6186-
JSONPath: .spec.targetNamespace
6187-
- name: Packages
6188-
type: string
6189-
description: List of operator(s) which will be enabled in the target namespace
6190-
JSONPath: .spec.packages
6191-
- name: Status
6192-
type: string
6193-
description: Current status of the CatalogSourceConfig
6194-
JSONPath: .status.currentPhase.phase.name
6195-
- name: Message
6196-
type: string
6197-
description: Message associated with the current status
6198-
JSONPath: .status.currentPhase.phase.message
6199-
- name: Age
6200-
type: date
6201-
JSONPath: .metadata.creationTimestamp
6202-
validation:
6203-
openAPIV3Schema:
6204-
properties:
6205-
spec:
6206-
type: object
6207-
description: Spec for a CatalogSourceConfig
6208-
required:
6209-
- targetNamespace
6210-
- packages
6211-
properties:
6212-
targetNamespace:
6213-
type: string
6214-
description: The namespace where the operators will be enabled
6215-
packages:
6216-
type: string
6217-
description: Comma separated list of operator(s) without spaces which will be enabled in the target namespace
6218-
6219-
- apiVersion: apiextensions.k8s.io/v1beta1
6220-
kind: CustomResourceDefinition
6221-
metadata:
6222-
name: operatorsources.marketplace.redhat.com
6223-
annotations:
6224-
displayName: Operator Source
6225-
description: Represents an OperatorSource.
6226-
spec:
6227-
group: marketplace.redhat.com
6228-
names:
6229-
kind: OperatorSource
6230-
listKind: OperatorSourceList
6231-
plural: operatorsources
6232-
singular: operatorsource
6233-
shortNames:
6234-
- opsrc
6235-
scope: Namespaced
6236-
version: v1alpha1
6237-
additionalPrinterColumns:
6238-
- name: Type
6239-
type: string
6240-
description: The type of the OperatorSource
6241-
JSONPath: .spec.type
6242-
- name: Endpoint
6243-
type: string
6244-
description: The endpoint of the OperatorSource
6245-
JSONPath: .spec.endpoint
6246-
- name: Registry
6247-
type: string
6248-
description: App registry namespace
6249-
JSONPath: .spec.registryNamespace
6250-
- name: Status
6251-
type: string
6252-
description: Current status of the OperatorSource
6253-
JSONPath: .status.currentPhase.phase.name
6254-
- name: Message
6255-
type: string
6256-
description: Message associated with the current status
6257-
JSONPath: .status.currentPhase.phase.message
6258-
- name: Age
6259-
type: date
6260-
JSONPath: .metadata.creationTimestamp
6261-
validation:
6262-
openAPIV3Schema:
6263-
properties:
6264-
spec:
6265-
type: object
6266-
description: Spec for an OperatorSource.
6267-
required:
6268-
- type
6269-
- endpoint
6270-
- registryNamespace
6271-
properties:
6272-
type:
6273-
type: string
6274-
description: The type of the OperatorSource
6275-
pattern: 'appregistry'
6276-
endpoint:
6277-
type: string
6278-
description: Points to the remote app registry server from where operator manifests can be fetched.
6279-
registryNamespace:
6280-
type: string
6281-
description: |-
6282-
The namespace in app registry.
6283-
Only operator manifests under this namespace will be visible.
6284-
Please note that this is not a k8s namespace.
6285-
62866164
- apiVersion: apiextensions.k8s.io/v1beta1
62876165
kind: CustomResourceDefinition
62886166
metadata:
@@ -11750,154 +11628,6 @@ data:
1175011628
name: replicaschedulingpreferences.scheduling.federation.k8s.io
1175111629
version: v1alpha1
1175211630

11753-
- #! validate-crd: deploy/chart/templates/0000_30_02-clusterserviceversion.crd.yaml
11754-
#! parse-kind: ClusterServiceVersion
11755-
apiVersion: operators.coreos.com/v1alpha1
11756-
kind: ClusterServiceVersion
11757-
metadata:
11758-
name: marketplace-operator.v0.0.1
11759-
namespace: placeholder
11760-
spec:
11761-
displayName: marketplace-operator
11762-
description: |-
11763-
Marketplace is a gateway for users to consume off-cluster Operators which will include Red Hat, ISV, optional OpenShift and community content.
11764-
keywords: ['marketplace', 'catalog', 'olm', 'admin']
11765-
version: 0.0.1
11766-
maturity: alpha
11767-
maintainers:
11768-
- name: AOS Marketplace Team
11769-
11770-
provider:
11771-
name: Red Hat
11772-
labels:
11773-
name: marketplace-operator
11774-
selector:
11775-
matchLabels:
11776-
name: marketplace-operator
11777-
links:
11778-
- name: Markplace Operator Source Code
11779-
url: https://github.com/operator-framework/operator-marketplace
11780-
installModes:
11781-
- type: OwnNamespace
11782-
supported: true
11783-
- type: SingleNamespace
11784-
supported: true
11785-
- type: MultiNamespace
11786-
supported: false
11787-
- type: AllNamespaces
11788-
supported: true
11789-
install:
11790-
strategy: deployment
11791-
spec:
11792-
clusterPermissions:
11793-
- serviceAccountName: marketplace-operator
11794-
rules:
11795-
- apiGroups:
11796-
- marketplace.redhat.com
11797-
resources:
11798-
- "*"
11799-
verbs:
11800-
- "*"
11801-
- apiGroups:
11802-
- ""
11803-
resources:
11804-
- services
11805-
- configmaps
11806-
verbs:
11807-
- "*"
11808-
- apiGroups:
11809-
- operators.coreos.com
11810-
resources:
11811-
- catalogsources
11812-
verbs:
11813-
- "*"
11814-
deployments:
11815-
- name: marketplace-operator
11816-
spec:
11817-
replicas: 1
11818-
selector:
11819-
matchLabels:
11820-
name: marketplace-operator
11821-
template:
11822-
metadata:
11823-
name: marketplace-operator
11824-
labels:
11825-
name: marketplace-operator
11826-
spec:
11827-
serviceAccountName: marketplace-operator
11828-
containers:
11829-
- name: marketplace-operator
11830-
image: quay.io/openshift/origin-operator-marketplace:latest
11831-
ports:
11832-
- containerPort: 60000
11833-
name: metrics
11834-
- containerPort: 8080
11835-
name: healthz
11836-
command:
11837-
- marketplace-operator
11838-
imagePullPolicy: Always
11839-
livenessProbe:
11840-
httpGet:
11841-
path: /healthz
11842-
port: 8080
11843-
readinessProbe:
11844-
httpGet:
11845-
path: /healthz
11846-
port: 8080
11847-
env:
11848-
- name: WATCH_NAMESPACE
11849-
valueFrom:
11850-
fieldRef:
11851-
fieldPath: metadata.namespace
11852-
- name: OPERATOR_NAME
11853-
value: "marketplace-operator"
11854-
customresourcedefinitions:
11855-
owned:
11856-
- name: operatorsources.marketplace.redhat.com
11857-
version: v1alpha1
11858-
kind: OperatorSource
11859-
displayName: Operator Source
11860-
description: Represents an OperatorSource.
11861-
specDescriptors:
11862-
- description: The type of the operator source.
11863-
displayName: Type
11864-
path: type
11865-
- description: Points to the remote app registry server from where operator manifests can be fetched.
11866-
displayName: Endpoint
11867-
path: endpoint
11868-
- description: |-
11869-
The namespace in app registry.
11870-
Only operator manifests under this namespace will be visible.
11871-
Please note that this is not a k8s namespace.
11872-
displayName: Registry Namespace
11873-
path: registryNamespace
11874-
statusDescriptors:
11875-
- description: Current status of the CatalogSourceConfig
11876-
displayName: Current Phase Name
11877-
path: currentPhase.phase.name
11878-
- description: Message associated with the current status
11879-
displayName: Current Phase Message
11880-
path: currentPhase.phase.message
11881-
- name: catalogsourceconfigs.marketplace.redhat.com
11882-
version: v1alpha1
11883-
kind: CatalogSourceConfig
11884-
displayName: Catalog Source Config
11885-
description: Represents a CatalogSourceConfig object which is used to configure a CatalogSource.
11886-
specDescriptors:
11887-
- description: The namespace where the operators will be enabled.
11888-
displayName: Target Namespace
11889-
path: targetNamespace
11890-
- description: List of operator(s) which will be enabled in the target namespace
11891-
displayName: Packages
11892-
path: packages
11893-
statusDescriptors:
11894-
- description: Current status of the CatalogSourceConfig
11895-
displayName: Current Phase Name
11896-
path: currentPhase.phase.name
11897-
- description: Message associated with the current status
11898-
displayName: Current Phase Message
11899-
path: currentPhase.phase.message
11900-
1190111631
- #! validate-crd: deploy/chart/templates/0000_30_02-clusterserviceversion.crd.yaml
1190211632
#! parse-kind: ClusterServiceVersion
1190311633
apiVersion: operators.coreos.com/v1alpha1
@@ -13449,12 +13179,6 @@ data:
1344913179
- name: alpha
1345013180
currentCSV: federationv2.v0.0.2
1345113181

13452-
- #! package-manifest: deploy/chart/catalog_resources/rh-operators/marketplace.v0.0.1.clusterserviceversion.yaml
13453-
packageName: marketplace
13454-
channels:
13455-
- name: alpha
13456-
currentCSV: marketplace-operator.v0.0.1
13457-
1345813182
- #! package-manifest: deploy/chart/catalog_resources/rh-operators/metering-operator.v0.12.0.clusterserviceversion.yaml
1345913183
packageName: metering
1346013184
channels:

manifests/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)