-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image sync workflow #5
base: main
Are you sure you want to change the base?
Changes from all commits
c332c8f
bd8d12f
2e4afcd
d736820
73be504
a77d8fb
47d3179
6c4e798
5f7d688
c9cfd65
c156128
3ed77fb
50ca070
80473c7
f6c940a
3021f82
17d4d89
5d18b20
e4bf910
0b93f3f
88af872
d9a0a0f
126b4df
8f06178
d33dadb
63982ca
d0d9f05
96705ca
91ad805
32f5dd2
520515b
438b2e0
ad6a682
1de9be4
0b639fd
354de67
a2a7b1d
6222b28
231f93a
d442ec6
807ac24
d5da99e
29b285a
c1a5f32
e8c502e
295f1ae
65f97ce
0b7566a
7cc3fcd
4900d5d
34aac8b
724ef7e
3d86b3f
60b39ea
6aa158d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: sync images | ||
on: push | ||
|
||
jobs: | ||
sync_images: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
component: | ||
- daskhub | ||
- jupyterhub | ||
- kubeflow | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
# TODO: Revert to main branch before merging | ||
with: | ||
ref: skopeo | ||
|
||
# Uncommment for SSH-able terminal session within runner to aid debugging | ||
# - uses: actions/checkout@v2 | ||
# - name: Setup upterm session | ||
# uses: lhotari/action-upterm@v1 | ||
|
||
- name: Check component manifest for changes | ||
uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
manifest: | ||
- skopeo-manifests/${{ matrix.component }}.yml | ||
|
||
# NOTE: Need skopeo > v1.09 to avoid this issue: | ||
# https://github.com/containers/skopeo/issues/1874 | ||
# so use containerized version | ||
|
||
- name: Sync component images | ||
id: image-sync | ||
if: ${{ steps.changes.outputs.manifest == 'true' }} | ||
run: |- | ||
docker run --entrypoint /usr/bin/env \ | ||
-v $GITHUB_WORKSPACE:/home/skopeo/azimuth-charts \ | ||
quay.io/skopeo/stable:v1.11 \ | ||
skopeo sync \ | ||
--src yaml \ | ||
--dest docker \ | ||
--dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \ | ||
--scoped \ | ||
--all \ | ||
/home/skopeo/azimuth-charts/skopeo-manifests/${{ matrix.component }}.yml \ | ||
ghcr.io/stackhpc/azimuth-charts \ | ||
|& tee sync-output.txt | ||
|
||
- name: Check output for any sync errors | ||
run: | | ||
ERR_COUNT=$(grep "level=error" sync-output.txt | wc -l) | ||
if [[ $ERR_COUNT -gt 0 ]]; then | ||
echo "Found $ERR_COUNT logged error messages in output of image sync step" | ||
exit 1 | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*/charts/* | ||
*/Chart.lock | ||
.vscode | ||
# Ignore `helm dependency build` output | ||
kubeflow-azimuth/kubeflow-azimuth-chart/** | ||
kubeflow-azimuth/kubeflow-crds/** | ||
kubeflow-azimuth/kubeflow-azimuth-chart | ||
kubeflow-azimuth/kubeflow-crds | ||
kubeflow-azimuth/kustomize-build-output.yml |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,129 @@ patches: | |
value: autoscaling/v2 | ||
target: | ||
kind: HorizontalPodAutoscaler | ||
version: v2beta2 | ||
version: v2beta2 | ||
|
||
# Use StackHPC's ghcr for relevant container images | ||
images: | ||
- name: docker.io/istio/pilot | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/istio/pilot | ||
- name: docker.io/istio/proxyv2 | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/istio/proxyv2 | ||
- name: docker.io/kubeflowkatib/katib-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflowkatib/katib-controller | ||
- name: docker.io/kubeflowkatib/katib-db-manager | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflowkatib/katib-db-manager | ||
- name: docker.io/kubeflowkatib/katib-ui | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflowkatib/katib-ui | ||
- name: docker.io/kubeflownotebookswg/centraldashboard | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/centraldashboard | ||
- name: docker.io/kubeflownotebookswg/jupyter-web-app | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/jupyter-web-app | ||
- name: docker.io/kubeflownotebookswg/kfam | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/kfam | ||
- name: docker.io/kubeflownotebookswg/notebook-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/notebook-controller | ||
- name: docker.io/kubeflownotebookswg/poddefaults-webhook | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/poddefaults-webhook | ||
- name: docker.io/kubeflownotebookswg/profile-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/profile-controller | ||
- name: docker.io/kubeflownotebookswg/tensorboard-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/tensorboard-controller | ||
- name: docker.io/kubeflownotebookswg/tensorboards-web-app | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/tensorboards-web-app | ||
- name: docker.io/kubeflownotebookswg/volumes-web-app | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/volumes-web-app | ||
- name: docker.io/metacontrollerio/metacontroller | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/metacontrollerio/metacontroller | ||
- name: gcr.io/arrikto/kubeflow/oidc-authservice | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/arrikto/kubeflow/oidc-authservice | ||
- name: gcr.io/knative-releases/knative.dev/eventing/cmd/controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/eventing/cmd/controller | ||
- name: gcr.io/knative-releases/knative.dev/eventing/cmd/webhook | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/eventing/cmd/webhook | ||
- name: gcr.io/knative-releases/knative.dev/net-istio/cmd/controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/net-istio/cmd/controller | ||
- name: gcr.io/knative-releases/knative.dev/net-istio/cmd/webhook | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/net-istio/cmd/webhook | ||
- name: gcr.io/knative-releases/knative.dev/serving/cmd/activator | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/serving/cmd/activator | ||
- name: gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/serving/cmd/autoscaler | ||
- name: gcr.io/knative-releases/knative.dev/serving/cmd/controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/serving/cmd/controller | ||
- name: gcr.io/knative-releases/knative.dev/serving/cmd/domain-mapping-webhook | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/serving/cmd/domain-mapping-webhook | ||
- name: gcr.io/knative-releases/knative.dev/serving/cmd/domain-mapping | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/serving/cmd/domain-mapping | ||
- name: gcr.io/knative-releases/knative.dev/serving/cmd/webhook | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/knative-releases/knative.dev/serving/cmd/webhook | ||
- name: gcr.io/kubebuilder/kube-rbac-proxy | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/kubebuilder/kube-rbac-proxy | ||
- name: gcr.io/kubebuilder/kube-rbac-proxy | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/kubebuilder/kube-rbac-proxy | ||
- name: gcr.io/ml-pipeline/api-server | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/api-server | ||
- name: gcr.io/ml-pipeline/cache-server | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/cache-server | ||
- name: gcr.io/ml-pipeline/frontend | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/frontend | ||
- name: gcr.io/ml-pipeline/metadata-envoy | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/metadata-envoy | ||
- name: gcr.io/ml-pipeline/metadata-writer | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/metadata-writer | ||
- name: gcr.io/ml-pipeline/minio | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/minio | ||
- name: gcr.io/ml-pipeline/mysql | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/mysql | ||
- name: gcr.io/ml-pipeline/persistenceagent | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/persistenceagent | ||
- name: gcr.io/ml-pipeline/scheduledworkflow | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/scheduledworkflow | ||
- name: gcr.io/ml-pipeline/viewer-crd-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/viewer-crd-controller | ||
- name: gcr.io/ml-pipeline/visualization-server | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/visualization-server | ||
- name: gcr.io/ml-pipeline/workflow-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/ml-pipeline/workflow-controller | ||
- name: gcr.io/tfx-oss-public/ml_metadata_store_server | ||
newName: ghcr.io/stackhpc/azimuth-charts/gcr.io/tfx-oss-public/ml_metadata_store_server | ||
- name: docker.io/kserve/kserve-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kserve/kserve-controller | ||
- name: docker.io/kserve/models-web-app | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kserve/models-web-app | ||
- name: docker.io/kubeflow/training-operator | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflow/training-operator | ||
- name: docker.io/kubeflownotebookswg/jupyter-pytorch-cuda-full | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/jupyter-pytorch-cuda-full | ||
- name: docker.io/kubeflownotebookswg/jupyter-pytorch-full | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/jupyter-pytorch-full | ||
- name: docker.io/kubeflownotebookswg/jupyter-scipy | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/jupyter-scipy | ||
- name: docker.io/kubeflownotebookswg/jupyter-tensorflow-cuda-full | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/jupyter-tensorflow-cuda-full | ||
- name: docker.io/kubeflownotebookswg/jupyter-tensorflow-full | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/kubeflownotebookswg/jupyter-tensorflow-full | ||
- name: mysql | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/library/mysql | ||
- name: python | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/library/python | ||
- name: quay.io/jetstack/cert-manager-cainjector | ||
newName: ghcr.io/stackhpc/azimuth-charts/quay.io/jetstack/cert-manager-cainjector | ||
- name: quay.io/jetstack/cert-manager-controller | ||
newName: ghcr.io/stackhpc/azimuth-charts/quay.io/jetstack/cert-manager-controller | ||
- name: quay.io/jetstack/cert-manager-webhook | ||
newName: ghcr.io/stackhpc/azimuth-charts/quay.io/jetstack/cert-manager-webhook | ||
- name: registry.k8s.io/coredns/coredns | ||
newName: ghcr.io/stackhpc/azimuth-charts/registry.k8s.io/coredns/coredns | ||
- name: registry.k8s.io/etcd | ||
newName: ghcr.io/stackhpc/azimuth-charts/registry.k8s.io/etcd | ||
- name: registry.k8s.io/kube-apiserver | ||
newName: ghcr.io/stackhpc/azimuth-charts/registry.k8s.io/kube-apiserver | ||
- name: registry.k8s.io/kube-controller-manager | ||
newName: ghcr.io/stackhpc/azimuth-charts/registry.k8s.io/kube-controller-manager | ||
- name: registry.k8s.io/kube-proxy | ||
newName: ghcr.io/stackhpc/azimuth-charts/registry.k8s.io/kube-proxy | ||
- name: registry.k8s.io/kube-scheduler | ||
newName: ghcr.io/stackhpc/azimuth-charts/registry.k8s.io/kube-scheduler | ||
- name: docker.io/tensorflow/tensorflow | ||
newName: ghcr.io/stackhpc/azimuth-charts/docker.io/tensorflow/tensorflow | ||
Comment on lines
+43
to
+165
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of these images belong to the underlying Kubernetes rather than kubeflow. We should just grep the generated kubeflow manifests for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sd109 We just need to do what this says :)