Skip to content

Commit

Permalink
[yaml syntax] Fix syntax of YAML files to pass CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
jstourac committed Oct 17, 2023
1 parent 000b6fe commit 9ce6d01
Show file tree
Hide file tree
Showing 38 changed files with 527 additions and 498 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/auto-add-issue-to-project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: Auto Add Issues to Tracking boards
on:
on: # yamllint disable-line rule:truthy
issues:
types:
- opened
Expand All @@ -21,4 +22,4 @@ jobs:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/opendatahub-io/projects/45
github-token: ${{ steps.app-token.outputs.token }}
github-token: ${{ steps.app-token.outputs.token }}
25 changes: 13 additions & 12 deletions .github/workflows/notebooks-digest-updater-upstream.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
# The aim of this GitHub workflow is to update the params.env file with the latest digest.
on:
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
branch:
required: true
description: "Provide the name of the branch you want to update ex main, vYYYYx etc: "
# Put the scheduler on comment until automate the full release procedure
# schedule:
# - cron: "0 0 * * 5" #Scheduled every Friday
# Put the scheduler on comment until automate the full release procedure
# schedule:
# - cron: "0 0 * * 5" #Scheduled every Friday
env:
DIGEST_UPDATER_BRANCH: digest-updater-${{ github.run_id }}
BRANCH_NAME: ${{ github.event.inputs.branch || 'main' }}
Expand Down Expand Up @@ -39,7 +40,7 @@ jobs:
git push --set-upstream origin ${{ env.DIGEST_UPDATER_BRANCH }}
update-n-version:
needs: [ initialize ]
needs: [initialize]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -53,8 +54,8 @@ jobs:
- name: Checkout upstream notebooks repo
uses: actions/checkout@v3
with:
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N }}
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N }}

- name: Retrieve latest weekly commit hash from the release branch
id: hash-n
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
git fetch origin ${{ env.DIGEST_UPDATER_BRANCH }} && git pull origin ${{ env.DIGEST_UPDATER_BRANCH }} && git add manifests/base/params.env && git commit -m "Update images for release N via ${{ env.DIGEST_UPDATER_BRANCH }} GitHub action" && git push origin ${{ env.DIGEST_UPDATER_BRANCH }}
update-n-1-version:
needs: [ initialize, update-n-version ]
needs: [initialize, update-n-version]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -102,8 +103,8 @@ jobs:
- name: Checkout upstream notebooks repo
uses: actions/checkout@v3
with:
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N_1 }}
repository: opendatahub-io/notebooks.git
ref: ${{ env.RELEASE_VERSION_N_1 }}

- name: Retrieve latest weekly commit hash from the release branch
id: hash-n-1
Expand Down Expand Up @@ -138,7 +139,7 @@ jobs:
# Creates the Pull Request
open-pull-request:
needs: [ update-n-version, update-n-1-version ]
needs: [update-n-version, update-n-1-version]
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand All @@ -149,7 +150,7 @@ jobs:
- name: pull-request
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ env.DIGEST_UPDATER_BRANCH }}
source_branch: ${{ env.DIGEST_UPDATER_BRANCH }}
destination_branch: ${{ env.BRANCH_NAME}}
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: "automated pr"
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/piplock-renewal-2023a.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks
---
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks

name: Weekly Pipfile.locks renewal on [2023a] branch

on:
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1
schedule:
- cron: "0 22 * * 1"
workflow_dispatch: # for manual trigger workflow from GH Web UI
on: # yamllint disable-line rule:truthy
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1
schedule:
- cron: "0 22 * * 1"
workflow_dispatch: # for manual trigger workflow from GH Web UI

jobs:
build:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/piplock-renewal-2023b.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks
---
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks

name: Weekly Pipfile.locks renewal on [2023b] branch

on:
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1
schedule:
- cron: "0 22 * * 1"
workflow_dispatch: # for manual trigger workflow from GH Web UI
on: # yamllint disable-line rule:truthy
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1
schedule:
- cron: "0 22 * * 1"
workflow_dispatch: # for manual trigger workflow from GH Web UI

jobs:
build:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
Expand Down Expand Up @@ -43,4 +44,4 @@ jobs:
git config --global user.name "GitHub Actions"
git add .
git commit -m "Update the pipfile.lock via the weekly workflow action"
git push
git push
9 changes: 5 additions & 4 deletions .github/workflows/pr-merge-image-delete.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: Delete quay image of PR once merged
on:
on: # yamllint disable-line rule:truthy
push:
branches:
- 'main'
Expand Down Expand Up @@ -69,15 +70,15 @@ jobs:
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-datascience-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-pytorch-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-trustyai-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-datascience-anaconda-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-datascience-anaconda-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:cuda-jupyter-minimal-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:cuda-jupyter-datascience-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:cuda-jupyter-tensorflow-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:runtime-minimal-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:runtime-datascience-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:runtime-pytorch-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:runtime-cuda-tensorflow-ubi8-python-3.8-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-minimal-ubi9-python-3.9-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-datascience-ubi9-python-3.9-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:jupyter-pytorch-ubi9-python-3.9-pr-${{ env.PR }}
Expand All @@ -91,4 +92,4 @@ jobs:
skopeo delete docker://${QUAY_IMAGE_REPO}:runtime-cuda-tensorflow-ubi9-python-3.9-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:codeserver-c9s-python-3.9-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:rstudio-c9s-python-3.9-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:cuda-rstudio-c9s-python-3.9-pr-${{ env.PR }}
skopeo delete docker://${QUAY_IMAGE_REPO}:cuda-rstudio-c9s-python-3.9-pr-${{ env.PR }}
1 change: 1 addition & 0 deletions base/anaconda-python-3.8/environment.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: /opt/app-root
channels:
- defaults
Expand Down
31 changes: 16 additions & 15 deletions codeserver/c9s-python-3.9/kustomize/base/pod.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
---
apiVersion: v1
kind: Pod
metadata:
name: pod
labels:
labels:
app: codeserver-image
spec:
containers:
- name: codeserver
image: codeserver-workbench
command: [ "/bin/sh", "-c", "while true ; do date; sleep 5; done;" ]
imagePullPolicy: Always
ports:
- containerPort: 8585
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
containers:
- name: codeserver
image: codeserver-workbench
command: ["/bin/sh", "-c", "while true ; do date; sleep 5; done;"]
imagePullPolicy: Always
ports:
- containerPort: 8585
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
3 changes: 2 additions & 1 deletion jupyter/datascience/anaconda-python-3.8/environment.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: /opt/app-root
channels:
- conda-forge
Expand Down Expand Up @@ -363,4 +364,4 @@ dependencies:
- zipp=3.15.0=pyhd8ed1ab_0
- zlib=1.2.13=h5eee18b_0
- zstd=1.5.2=ha4553b6_0
prefix: /opt/app-root
prefix: /opt/app-root
47 changes: 24 additions & 23 deletions manifests/base/jupyter-datascience-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
Expand All @@ -13,26 +14,26 @@ spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.9"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.26"},{"name":"Kafka-Python","version":"2.0"},{"name":"Kfp-tekton","version":"1.5"},{"name":"Matplotlib","version":"3.6"},{"name":"Numpy","version":"1.24"},{"name":"Pandas","version":"1.5"},{"name":"Scikit-learn","version":"1.2"},{"name":"Scipy","version":"1.10"},{"name":"Elyra","version":"3.15"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
opendatahub.io/workbench-image-recommended: 'true'
from:
kind: DockerImage
name: $(odh-generic-data-science-notebook-image-n)
name: "2023.1"
referencePolicy:
type: Source
# N-1 Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.8"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.17"},{"name":"Kafka-Python","version":"2.0"},{"name":"Matplotlib","version":"3.4"},{"name":"Numpy","version":"1.19"},{"name":"Pandas","version":"1.2"},{"name":"Scikit-learn","version":"0.24"},{"name":"Scipy","version":"1.6"}]'
openshift.io/imported-from: quay.io/opendatahub/notebooks
from:
kind: DockerImage
name: $(odh-generic-data-science-notebook-image-n-1)
name: "1.2"
referencePolicy:
type: Source
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.9"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.26"},{"name":"Kafka-Python","version":"2.0"},{"name":"Kfp-tekton","version":"1.5"},{"name":"Matplotlib","version":"3.6"},{"name":"Numpy","version":"1.24"},{"name":"Pandas","version":"1.5"},{"name":"Scikit-learn","version":"1.2"},{"name":"Scipy","version":"1.10"},{"name":"Elyra","version":"3.15"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
opendatahub.io/workbench-image-recommended: 'true'
from:
kind: DockerImage
name: $(odh-generic-data-science-notebook-image-n)
name: "2023.1"
referencePolicy:
type: Source
# N-1 Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.8"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.17"},{"name":"Kafka-Python","version":"2.0"},{"name":"Matplotlib","version":"3.4"},{"name":"Numpy","version":"1.19"},{"name":"Pandas","version":"1.2"},{"name":"Scikit-learn","version":"0.24"},{"name":"Scipy","version":"1.6"}]'
openshift.io/imported-from: quay.io/opendatahub/notebooks
from:
kind: DockerImage
name: $(odh-generic-data-science-notebook-image-n-1)
name: "1.2"
referencePolicy:
type: Source
45 changes: 23 additions & 22 deletions manifests/base/jupyter-habana-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
Expand All @@ -14,25 +15,25 @@ spec:
lookupPolicy:
local: true
tags:
# 1.11.0 Version of the image n
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.8"},{"name":"Habana","version":"1.11"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.26"},{"name":"Kafka-Python","version":"2.0"},{"name":"Kfp-tekton","version":"1.5"},{"name":"Matplotlib","version":"3.6"},{"name":"Numpy","version":"1.23"},{"name":"Pandas","version":"1.5"},{"name":"Scikit-learn","version":"1.2"},{"name":"Scipy","version":"1.10"},{"name":"Tensorflow","version":"2.12.1"},{"name":"PyTorch","version":"2.0.1"},{"name":"Elyra","version":"3.15"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
from:
kind: DockerImage
name: $(odh-habana-notebook-image-n)
name: "2023.2"
referencePolicy:
type: Source
# 1.10.0 Version of the image n-1
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.8"},{"name":"Habana","version":"1.10"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.26"},{"name":"Kafka-Python","version":"2.0"},{"name":"Kfp-tekton","version":"1.5"},{"name":"Matplotlib","version":"3.6"},{"name":"Numpy","version":"1.23"},{"name":"Pandas","version":"1.5"},{"name":"Scikit-learn","version":"1.2"},{"name":"Scipy","version":"1.10"},{"name":"Tensorflow","version":"2.12.0"},{"name":"PyTorch","version":"2.0.1"},{"name":"Elyra","version":"3.15"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
from:
kind: DockerImage
name: $(odh-habana-notebook-image-n-1)
name: "2023.1"
referencePolicy:
type: Source
# 1.11.0 Version of the image n
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.8"},{"name":"Habana","version":"1.11"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.26"},{"name":"Kafka-Python","version":"2.0"},{"name":"Kfp-tekton","version":"1.5"},{"name":"Matplotlib","version":"3.6"},{"name":"Numpy","version":"1.23"},{"name":"Pandas","version":"1.5"},{"name":"Scikit-learn","version":"1.2"},{"name":"Scipy","version":"1.10"},{"name":"Tensorflow","version":"2.12.1"},{"name":"PyTorch","version":"2.0.1"},{"name":"Elyra","version":"3.15"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
from:
kind: DockerImage
name: $(odh-habana-notebook-image-n)
name: "2023.2"
referencePolicy:
type: Source
# 1.10.0 Version of the image n-1
- annotations:
opendatahub.io/notebook-software: '[{"name":"Python","version":"v3.8"},{"name":"Habana","version":"1.10"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"Boto3","version":"1.26"},{"name":"Kafka-Python","version":"2.0"},{"name":"Kfp-tekton","version":"1.5"},{"name":"Matplotlib","version":"3.6"},{"name":"Numpy","version":"1.23"},{"name":"Pandas","version":"1.5"},{"name":"Scikit-learn","version":"1.2"},{"name":"Scipy","version":"1.10"},{"name":"Tensorflow","version":"2.12.0"},{"name":"PyTorch","version":"2.0.1"},{"name":"Elyra","version":"3.15"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
from:
kind: DockerImage
name: $(odh-habana-notebook-image-n-1)
name: "2023.1"
referencePolicy:
type: Source
33 changes: 17 additions & 16 deletions manifests/base/jupyter-minimal-gpu-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
Expand All @@ -14,26 +15,26 @@ spec:
lookupPolicy:
local: true
tags:
# N Version of the image
- annotations:
# N Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"CUDA","version":"11.8"},{"name":"Python","version":"v3.9"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"JupyterLab","version":"3.5"},{"name":"Notebook","version":"6.5"}]'
openshift.io/imported-from: quay.io/opendatahub/workbench-images
opendatahub.io/workbench-image-recommended: 'true'
from:
kind: DockerImage
name: $(odh-minimal-gpu-notebook-image-n)
name: "2023.1"
referencePolicy:
type: Source
# N-1 Version of the image
- annotations:
from:
kind: DockerImage
name: $(odh-minimal-gpu-notebook-image-n)
name: "2023.1"
referencePolicy:
type: Source
# N-1 Version of the image
- annotations:
opendatahub.io/notebook-software: '[{"name":"CUDA","version":"11.4"},{"name":"Python","version":"v3.8"}]'
opendatahub.io/notebook-python-dependencies: '[{"name":"JupyterLab","version":"3.2"},{"name":"Notebook","version":"6.4"}]'
openshift.io/imported-from: quay.io/opendatahub/notebooks
from:
kind: DockerImage
name: $(odh-minimal-gpu-notebook-image-n-1)
name: "1.2"
referencePolicy:
type: Source
from:
kind: DockerImage
name: $(odh-minimal-gpu-notebook-image-n-1)
name: "1.2"
referencePolicy:
type: Source
Loading

0 comments on commit 9ce6d01

Please sign in to comment.