Skip to content

Commit

Permalink
Allow passing indexes where package dependencies should be looked up
Browse files Browse the repository at this point in the history
  • Loading branch information
fridex committed Feb 9, 2022
1 parent 43f0b49 commit 0f4bba0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions solver/base/openshift-templates/solve_and_sync-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ parameters:
- name: THOTH_SOLVER_INDEXES
description: "A comma separated list of indexes to scan during solver run"
displayName: "Python Package Indexes"
- name: THOTH_SOLVER_DEPENDENCY_INDEXES
description: "A comma separated list of indexes to scan during solver to look up dependencies"
displayName: "Dependency Python Package Indexes"
- name: THOTH_FORCE_SYNC
description: Perform force sync - sync data even if they are reported to be existing
displayName: Perform force sync
Expand Down Expand Up @@ -110,6 +113,8 @@ objects:
value: "${THOTH_SOLVER_PACKAGES}"
- name: "THOTH_SOLVER_INDEXES"
value: "${THOTH_SOLVER_INDEXES}"
- name: "THOTH_SOLVER_DEPENDENCY_INDEXES"
value: "${THOTH_SOLVER_DEPENDENCY_INDEXES}"
- name: "THOTH_FORCE_SYNC"
value: "${THOTH_FORCE_SYNC}"
- name: ceph_bucket_prefix
Expand Down Expand Up @@ -159,6 +164,8 @@ objects:
value: "{{workflow.parameters.THOTH_SOLVER_PACKAGES}}"
- name: "THOTH_SOLVER_INDEXES"
value: "{{workflow.parameters.THOTH_SOLVER_INDEXES}}"
- name: "THOTH_SOLVER_DEPENDENCY_INDEXES"
value: "{{workflow.parameters.THOTH_SOLVER_DEPENDENCY_INDEXES}}"
- name: "THOTH_S3_ENDPOINT_URL"
value: "{{workflow.parameters.ceph_host}}"
- name: "THOTH_CEPH_BUCKET_NAME"
Expand Down Expand Up @@ -247,6 +254,8 @@ objects:
value: "{{workflow.parameters.THOTH_SOLVER_PACKAGES}}"
- name: "THOTH_SOLVER_INDEXES"
value: "{{workflow.parameters.THOTH_SOLVER_INDEXES}}"
- name: "THOTH_SOLVER_DEPENDENCY_INDEXES"
value: "{{workflow.parameters.THOTH_SOLVER_DEPENDENCY_INDEXES}}"
- name: "THOTH_S3_ENDPOINT_URL"
value: "{{workflow.parameters.ceph_host}}"
- name: "THOTH_CEPH_BUCKET_NAME"
Expand Down
3 changes: 3 additions & 0 deletions solver/overlays/test/argo-workflows/solver-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ spec:
- name: "THOTH_SOLVER_NO_TRANSITIVE"
- name: "THOTH_SOLVER_PACKAGES"
- name: "THOTH_SOLVER_INDEXES"
- name: "THOTH_SOLVER_DEPENDENCY_INDEXES"
- name: "THOTH_S3_ENDPOINT_URL"
- name: "THOTH_CEPH_BUCKET_NAME"
- name: "THOTH_CEPH_BUCKET_PREFIX"
Expand Down Expand Up @@ -92,6 +93,8 @@ spec:
value: "/mnt/workdir/{{inputs.parameters.THOTH_SOLVER_DOCUMENT_ID}}"
- name: THOTH_SOLVER_INDEXES
value: "{{inputs.parameters.THOTH_SOLVER_INDEXES}}"
- name: THOTH_SOLVER_DEPENDENCY_INDEXES
value: "{{inputs.parameters.THOTH_SOLVER_DEPENDENCY_INDEXES}}"
- name: "THOTH_DOCUMENT_ID"
value: "{{inputs.parameters.THOTH_SOLVER_DOCUMENT_ID}}"
- name: THOTH_DEPLOYMENT_NAME
Expand Down

0 comments on commit 0f4bba0

Please sign in to comment.