Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
[1.5.0]: Update Operator resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Nov 6, 2018
1 parent 6068321 commit 2aed319
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 31 deletions.
16 changes: 8 additions & 8 deletions resources/fuse-online-image-streams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ items:
tags:
- from:
kind: DockerImage
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-server:1.1-4
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-server:1.2-1
importPolicy:
scheduled: true
name: "1.4"
name: "1.5"
- apiVersion: v1
kind: ImageStream
metadata:
Expand All @@ -32,10 +32,10 @@ items:
tags:
- from:
kind: DockerImage
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-ui:1.1-3
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-ui:1.2-1
importPolicy:
scheduled: true
name: "1.4"
name: "1.5"
- apiVersion: v1
kind: ImageStream
metadata:
Expand All @@ -50,10 +50,10 @@ items:
tags:
- from:
kind: DockerImage
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-meta:1.1-2
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-meta:1.2-1
importPolicy:
scheduled: true
name: "1.4"
name: "1.5"
- apiVersion: v1
kind: ImageStream
metadata:
Expand Down Expand Up @@ -100,7 +100,7 @@ items:
tags:
- from:
kind: DockerImage
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-s2i:1.1-3
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-s2i:1.2-2
importPolicy:
scheduled: true
name: "1.4"
name: "1.5"
6 changes: 3 additions & 3 deletions resources/fuse-online-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ spec:
- from:
kind: DockerImage
# Keep tag 'latest' here, its used as an anchor in the release script
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-online-operator:1.1-1
name: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-online-operator:1.2-1
importPolicy:
scheduled: true
name: "1.4"
name: "1.5"
---
apiVersion: v1
kind: DeploymentConfig
Expand Down Expand Up @@ -190,6 +190,6 @@ spec:
- syndesis-operator
from:
kind: ImageStreamTag
name: fuse-online-operator:1.4
name: fuse-online-operator:1.5
type: ImageChange
- type: ConfigChange
81 changes: 61 additions & 20 deletions resources/fuse-online-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: fuse-ignite-1.4
name: fuse-ignite-1.5
#
# Template flavor:
#
# Allow localhost refs: false
# Use docker images: false
# Syndesis Tag: 1.4
# Syndesis Tag: 1.5
# Prometheus Tag: v2.1.0
# Postgresql Tag: 9.5
# OAuthProxy Tag: v1.1.0
Expand All @@ -33,6 +33,10 @@ parameters:
description: The name of the OpenShift project Syndesis is being deployed into.
displayName: OpenShift project to deploy into
required: true
- name: SAR_PROJECT
description: The user needs to have permissions to at least get a list of pods in the given project in order to be granted access to the Syndesis installation in the $OPENSHIFT_PROJECT
displayName: OpenShift project to be used to authenticate the user against
required: true
- name: OPENSHIFT_OAUTH_CLIENT_SECRET
description: OpenShift OAuth client secret
generate: expression
Expand Down Expand Up @@ -82,10 +86,6 @@ parameters:
name: DEMO_DATA_ENABLED
required: true
value: "false"
- description: Registry from where to fetch Syndesis images
displayName: Syndesis Image Registry
name: SYNDESIS_REGISTRY
value: 'registry.fuse-ignite.openshift.com'
- description: Should deployment of integrations be enabled?
displayName: Enable Integration Deployment
name: CONTROLLERS_INTEGRATION_ENABLED
Expand Down Expand Up @@ -152,6 +152,16 @@ parameters:
generate: expression
name: CLIENT_STATE_ENCRYPTION_KEY
required: true
- description: Volume space available for the upgrade process (backup data), e.g. 512Mi, 2Gi.
displayName: Upgrade Volume Capacity
name: UPGRADE_VOLUME_CAPACITY
required: true
value: 1Gi
- description: How to expose services, via OpenShift Route (false) or via 3scale (true)
displayName: Expose services via 3scale
name: CONTROLLERS_EXPOSE_VIA3SCALE
required: true
value: 'false'
message: |-
Syndesis is deployed to ${ROUTE_HOSTNAME}.
objects:
Expand Down Expand Up @@ -186,7 +196,7 @@ objects:
syndesis.io/app: syndesis
syndesis.io/type: infrastructure
stringData:
syndesis: "1.4"
syndesis: "1.5"
postgresql: "9.5"
oauthproxy: "v1.1.0"
prometheus: "v2.1.0"
Expand Down Expand Up @@ -302,7 +312,7 @@ objects:
- syndesis-ui
from:
kind: ImageStreamTag
name: fuse-ignite-ui:1.4
name: fuse-ignite-ui:1.5
namespace: ${IMAGE_STREAM_NAMESPACE}
type: ImageChange

Expand All @@ -328,7 +338,8 @@ objects:
"baseMappingServiceUrl": "https://${ROUTE_HOSTNAME}/api/v1/atlas/",
"baseJavaInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/api/v1/atlas/java/",
"baseXMLInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/api/v1/atlas/xml/",
"baseJSONInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/api/v1/atlas/json/"
"baseJSONInspectionServiceUrl": "https://${ROUTE_HOSTNAME}/api/v1/atlas/json/",
"disableMappingPreviewMode": false
},
"features" : {
"logging": false
Expand Down Expand Up @@ -520,14 +531,16 @@ objects:
data:
syndesis-postgresql.conf: |
log_autovacuum_min_duration = 0
log_line_prefix = '%t %a %i %e %c '
logging_collector = off
autovacuum_max_workers = 6
autovacuum_naptime = 15s
autovacuum_vacuum_threshold = 25
autovacuum_vacuum_scale_factor = 0.1
autovacuum_analyze_threshold = 10
autovacuum_analyze_scale_factor = 0.05
autovacuum_vacuum_cost_delay = 10ms
autovacuum_vacuum_cost_limit = 1000
autovacuum_vacuum_cost_limit = 2000
- apiVersion: v1
kind: Service
Expand Down Expand Up @@ -796,7 +809,7 @@ objects:
- syndesis-meta
from:
kind: ImageStreamTag
name: fuse-ignite-meta:1.4
name: fuse-ignite-meta:1.5
namespace: ${IMAGE_STREAM_NAMESPACE}
type: ImageChange

Expand Down Expand Up @@ -919,7 +932,7 @@ objects:
- --skip-auth-preflight
- --openshift-ca=/etc/pki/tls/certs/ca-bundle.crt
- --openshift-ca=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
- --openshift-sar={"namespace":"${OPENSHIFT_PROJECT}","resource":"pods","verb":"get"}
- --openshift-sar={"namespace":"${SAR_PROJECT}","resource":"pods","verb":"get"}
# Disabled for now: --pass-user-bearer-token as this requires extra permission which only
# can be given by a cluster-admin
env:
Expand Down Expand Up @@ -1075,6 +1088,8 @@ objects:
value: ${MAX_INTEGRATIONS_PER_USER}
- name: INTEGRATION_STATE_CHECK_INTERVAL
value: ${INTEGRATION_STATE_CHECK_INTERVAL}
- name: CONTROLLERS_EXPOSE_VIA3SCALE
value: ${CONTROLLERS_EXPOSE_VIA3SCALE}
image: ' '

imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -1110,8 +1125,10 @@ objects:
resources:
limits:
memory: ${SERVER_MEMORY_LIMIT}
cpu: 750m
requests:
memory: 256Mi
cpu: 450m
volumes:
- name: config-volume
configMap:
Expand All @@ -1123,7 +1140,7 @@ objects:
- syndesis-server
from:
kind: ImageStreamTag
name: fuse-ignite-server:1.4
name: fuse-ignite-server:1.5
namespace: ${IMAGE_STREAM_NAMESPACE}
type: ImageChange

Expand Down Expand Up @@ -1188,7 +1205,7 @@ objects:
apiBaseUrl: ${OPENSHIFT_MASTER}/oapi/v1
namespace: ${NAMESPACE}
imageStreamNamespace: ${IMAGE_STREAM_NAMESPACE}
builderImageStreamTag: fuse-ignite-s2i:1.4
builderImageStreamTag: fuse-ignite-s2i:1.5
deploymentMemoryRequestMi: 200
deploymentMemoryLimitMi: 512
mavenOptions: "-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m"
Expand Down Expand Up @@ -1593,6 +1610,20 @@ objects:
type: ImageChange

- type: ConfigChange
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: syndesis-upgrade
labels:
app: syndesis
syndesis.io/app: syndesis
syndesis.io/type: infrastructure
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: ${UPGRADE_VOLUME_CAPACITY}
- apiVersion: template.openshift.io/v1
kind: Template
metadata:
Expand All @@ -1615,22 +1646,32 @@ objects:
openshift.io/documentation-url: "https://syndesis.io"
openshift.io/support-url: "https://access.redhat.com"
parameters:
- name: SYNDESIS_VERSION
description: 'The version to upgrade to or "latest" for the newest version'
value: latest
- name: UPGRADE_REGISTRY
description: 'Registry from where to pick up the upgrade pod'
value: docker.io
required: true
message: |-
Syndesis upgrade process started
objects:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: syndesis-upgrade
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: ${UPGRADE_VOLUME_CAPACITY}
- apiVersion: v1
kind: Pod
metadata:
name: syndesis-upgrade-${SYNDESIS_VERSION}
name: syndesis-upgrade-1.2-1
spec:
serviceAccountName: syndesis-operator
containers:
- name: upgrade
image: fuse7/fuse-ignite-upgrade:1.1-2
image: ${UPGRADE_REGISTRY}/fuse7/fuse-ignite-upgrade:1.2-1
env:
- name: SYNDESIS_UPGRADE_PROJECT
valueFrom:
Expand All @@ -1647,5 +1688,5 @@ objects:
volumes:
- name: backup-dir
persistentVolumeClaim:
claimName: syndesis-db
claimName: syndesis-upgrade
restartPolicy: Never

0 comments on commit 2aed319

Please sign in to comment.