Skip to content

Commit

Permalink
Start using prescriptions from pickle file
Browse files Browse the repository at this point in the history
  • Loading branch information
fridex committed Sep 14, 2021
1 parent f4748cb commit 78a5a8c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 61 deletions.
12 changes: 1 addition & 11 deletions adviser/base/argo-workflows/advise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,6 @@ spec:
secretKeySecret:
name: argo-artifact-repository-secrets
key: secretKey
initContainers:
- name: prescriptions
image: prescriptions:latest
command:
- /bin/sh
- -c
- cp --recursive /opt/app-root/src/prescriptions/* /mnt/prescriptions/
mirrorVolumeMounts: true
container:
name: advise
image: adviser:latest
Expand All @@ -133,7 +125,7 @@ spec:
- name: THOTH_ADVISER_BLOCKED_UNITS
value: "SecurityIndicatorStep"
- name: THOTH_ADVISER_PRESCRIPTION
value: "/mnt/prescriptions/"
value: "/opt/app-root/src/prescriptions.pickle"
- name: THOTH_ADVISER_REQUIREMENTS
value: "input/Pipfile"
- name: THOTH_ADVISER_REQUIREMENTS_LOCKED
Expand Down Expand Up @@ -221,8 +213,6 @@ spec:
volumeMounts:
- name: workdir
mountPath: /mnt/workdir
- name: prescriptions
mountPath: /mnt/prescriptions
resources:
limits:
cpu: 1.1
Expand Down
8 changes: 0 additions & 8 deletions adviser/base/imagestream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,3 @@ metadata:
spec:
lookupPolicy:
local: true
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: prescriptions
spec:
lookupPolicy:
local: true
14 changes: 0 additions & 14 deletions adviser/overlays/cnv-prod/imagestreamtag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,3 @@ spec:
importPolicy: {}
referencePolicy:
type: Local
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: prescriptions
spec:
tags:
- name: latest
from:
kind: DockerImage
name: quay.io/thoth-station/prescriptions:v0.7.0
importPolicy: {}
referencePolicy:
type: Local
14 changes: 0 additions & 14 deletions adviser/overlays/ocp4-stage/imagestreamtag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,3 @@ spec:
importPolicy: {}
referencePolicy:
type: Local
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: prescriptions
spec:
tags:
- name: latest
from:
kind: DockerImage
name: quay.io/thoth-station/prescriptions:v0.7.0
importPolicy: {}
referencePolicy:
type: Local
14 changes: 0 additions & 14 deletions adviser/overlays/test/imagestreamtag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,3 @@ spec:
importPolicy: {}
referencePolicy:
type: Source
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: prescriptions
spec:
tags:
- name: latest
from:
kind: DockerImage
name: quay.io/thoth-station/prescriptions:v0.7.0
importPolicy: {}
referencePolicy:
type: Source

0 comments on commit 78a5a8c

Please sign in to comment.