Remove syncing of images (#93)
* Remove syncing of images * Use mirror for images from Docker Hub
This commit is contained in:
parent
6f8400bb19
commit
2a132eb122
4
.github/workflows/lint.yaml
vendored
4
.github/workflows/lint.yaml
vendored
@ -44,11 +44,11 @@ jobs:
|
||||
kubernetesVersion: 1.27.2
|
||||
machineImageId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||
controlPlane:
|
||||
machineFlavor: vm.ska.cpu.general.small
|
||||
machineFlavor: xxxx
|
||||
machineCount: 1
|
||||
nodeGroups:
|
||||
- machineCount: 2
|
||||
machineFlavor: vm.ska.cpu.general.small
|
||||
machineFlavor: xxxx
|
||||
name: test-group1
|
||||
|
||||
- name: Run chart-testing (lint)
|
||||
|
7
.github/workflows/main.yaml
vendored
7
.github/workflows/main.yaml
vendored
@ -12,18 +12,13 @@ jobs:
|
||||
lint:
|
||||
uses: ./.github/workflows/lint.yaml
|
||||
|
||||
sync_images:
|
||||
needs: [lint]
|
||||
uses: ./.github/workflows/sync-images.yaml
|
||||
secrets: inherit
|
||||
|
||||
ensure_capi_images:
|
||||
needs: [lint]
|
||||
uses: ./.github/workflows/ensure-capi-images.yaml
|
||||
secrets: inherit
|
||||
|
||||
test:
|
||||
needs: [sync_images, ensure_capi_images]
|
||||
needs: [ensure_capi_images]
|
||||
uses: ./.github/workflows/test.yaml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
10
.github/workflows/pr.yaml
vendored
10
.github/workflows/pr.yaml
vendored
@ -18,13 +18,7 @@ jobs:
|
||||
lint:
|
||||
uses: ./.github/workflows/lint.yaml
|
||||
|
||||
# Only run image sync and test on the main repo
|
||||
sync_images:
|
||||
needs: [lint]
|
||||
uses: ./.github/workflows/sync-images.yaml
|
||||
secrets: inherit
|
||||
if: github.repository == 'stackhpc/capi-helm-charts'
|
||||
|
||||
# Only run tests on the main repo
|
||||
ensure_capi_images:
|
||||
needs: [lint]
|
||||
uses: ./.github/workflows/ensure-capi-images.yaml
|
||||
@ -32,7 +26,7 @@ jobs:
|
||||
if: github.repository == 'stackhpc/capi-helm-charts'
|
||||
|
||||
test:
|
||||
needs: [sync_images, ensure_capi_images]
|
||||
needs: [ensure_capi_images]
|
||||
uses: ./.github/workflows/test.yaml
|
||||
secrets: inherit
|
||||
with:
|
||||
|
49
.github/workflows/sync-images.yaml
vendored
49
.github/workflows/sync-images.yaml
vendored
@ -1,49 +0,0 @@
|
||||
name: sync images
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
sync_images:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
component:
|
||||
- calico
|
||||
- ccm-openstack
|
||||
- cilium
|
||||
- cluster-autoscaler
|
||||
- csi-cinder
|
||||
- ingress-nginx
|
||||
- kube-prometheus-stack
|
||||
- kubernetes-dashboard
|
||||
- loki-stack
|
||||
- mellanox-network-operator
|
||||
- metrics-server
|
||||
- nfd
|
||||
- nvidia-gpu-operator
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install skopeo
|
||||
run: sudo apt-get -y update && sudo apt-get install -y skopeo
|
||||
|
||||
- name: Check component manifest for changes
|
||||
uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
manifest:
|
||||
- skopeo-manifests/${{ matrix.component }}.yml
|
||||
|
||||
- name: Sync component images
|
||||
if: ${{ steps.changes.outputs.manifest == 'true' }}
|
||||
run: |-
|
||||
skopeo sync \
|
||||
--src yaml \
|
||||
--dest docker \
|
||||
--dest-creds ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} \
|
||||
--scoped \
|
||||
--all \
|
||||
skopeo-manifests/${{ matrix.component }}.yml \
|
||||
ghcr.io/stackhpc/capi
|
11
.github/workflows/test.yaml
vendored
11
.github/workflows/test.yaml
vendored
@ -160,13 +160,16 @@ jobs:
|
||||
auth:
|
||||
project_id: ${{ secrets.PROJECT_ID }}
|
||||
verify: false
|
||||
registryMirrors:
|
||||
docker.io:
|
||||
- ${{ secrets.DOCKER_HUB_MIRROR_URL }}
|
||||
controlPlane:
|
||||
machineFlavor: vm.ska.cpu.general.small
|
||||
machineFlavor: ${{ secrets.CONTROL_PLANE_FLAVOR }}
|
||||
machineCount: 1
|
||||
nodeGroups:
|
||||
- machineCount: 2
|
||||
machineFlavor: vm.ska.cpu.general.small
|
||||
name: test-group1
|
||||
- name: md-0
|
||||
machineFlavor: ${{ secrets.NODE_GROUP_FLAVOR }}
|
||||
machineCount: 2
|
||||
|
||||
#####
|
||||
# For the smoke test, we do a clean deployment of the latest supported version
|
||||
|
@ -2,11 +2,8 @@
|
||||
|
||||
global:
|
||||
# The prefix to use for images
|
||||
# Assumes the images have been synced using Skopeo using the configuration file
|
||||
# in this repository with the "--scoped" flag
|
||||
# This setting is shared with the parent cluster
|
||||
# By default, use the mirrors on GitHub packages
|
||||
imagePrefix: ghcr.io/stackhpc/capi/
|
||||
imagePrefix:
|
||||
|
||||
# The name of the Cluster API cluster
|
||||
# if not given, the release name is used
|
||||
|
@ -2,11 +2,8 @@
|
||||
|
||||
global:
|
||||
# The prefix to use for images
|
||||
# Assumes the images have been synced using Skopeo using the configuration file
|
||||
# in this repository with the "--scoped" flag
|
||||
# This setting is shared with the addons
|
||||
# By default, use the mirrors on GitHub packages
|
||||
imagePrefix: ghcr.io/stackhpc/capi/
|
||||
imagePrefix:
|
||||
|
||||
# The name of an existing secret containing a clouds.yaml and optional cacert
|
||||
cloudCredentialsSecretName:
|
||||
|
@ -1,23 +0,0 @@
|
||||
docker.io:
|
||||
images:
|
||||
calico/apiserver:
|
||||
- v3.24.5
|
||||
calico/cni:
|
||||
- v3.24.5
|
||||
calico/csi:
|
||||
- v3.24.5
|
||||
calico/kube-controllers:
|
||||
- v3.24.5
|
||||
calico/node:
|
||||
- v3.24.5
|
||||
calico/node-driver-registrar:
|
||||
- v3.24.5
|
||||
calico/pod2daemon-flexvol:
|
||||
- v3.24.5
|
||||
calico/typha:
|
||||
- v3.24.5
|
||||
|
||||
quay.io:
|
||||
images:
|
||||
tigera/operator:
|
||||
- v1.28.5
|
@ -1,4 +0,0 @@
|
||||
docker.io:
|
||||
images:
|
||||
k8scloudprovider/openstack-cloud-controller-manager:
|
||||
- v1.25.0
|
@ -1,18 +0,0 @@
|
||||
quay.io:
|
||||
images:
|
||||
cilium/certgen:
|
||||
- v0.1.8
|
||||
cilium/cilium:
|
||||
- v1.12.5
|
||||
cilium/clustermesh-apiserver:
|
||||
- v1.12.5
|
||||
cilium/hubble-relay:
|
||||
- v1.12.5
|
||||
cilium/hubble-ui-backend:
|
||||
- v0.9.2
|
||||
cilium/hubble-ui:
|
||||
- v0.9.2
|
||||
cilium/operator:
|
||||
- v1.12.5
|
||||
cilium/startup-script:
|
||||
- d69851597ea019af980891a4628fb36b7880ec26
|
@ -1,4 +0,0 @@
|
||||
k8s.gcr.io:
|
||||
images:
|
||||
autoscaling/cluster-autoscaler:
|
||||
- v1.26.1
|
@ -1,19 +0,0 @@
|
||||
docker.io:
|
||||
images:
|
||||
k8scloudprovider/cinder-csi-plugin:
|
||||
- v1.25.0
|
||||
|
||||
k8s.gcr.io:
|
||||
images:
|
||||
sig-storage/csi-attacher:
|
||||
- v3.4.0
|
||||
sig-storage/csi-node-driver-registrar:
|
||||
- v2.5.0
|
||||
sig-storage/csi-provisioner:
|
||||
- v3.1.0
|
||||
sig-storage/csi-resizer:
|
||||
- v1.4.0
|
||||
sig-storage/csi-snapshotter:
|
||||
- v5.0.1
|
||||
sig-storage/livenessprobe:
|
||||
- v2.6.0
|
@ -1,8 +0,0 @@
|
||||
registry.k8s.io:
|
||||
images:
|
||||
defaultbackend-amd64:
|
||||
- 1.5
|
||||
ingress-nginx/controller:
|
||||
- v1.5.1
|
||||
ingress-nginx/kube-webhook-certgen:
|
||||
- v20220916-gd32f8c343
|
@ -1,28 +0,0 @@
|
||||
docker.io:
|
||||
images:
|
||||
grafana/grafana:
|
||||
- 9.3.6
|
||||
|
||||
quay.io:
|
||||
images:
|
||||
kiwigrid/k8s-sidecar:
|
||||
- 1.22.0
|
||||
prometheus/alertmanager:
|
||||
- v0.25.0
|
||||
prometheus/node-exporter:
|
||||
- v1.5.0
|
||||
prometheus/prometheus:
|
||||
- v2.42.0
|
||||
prometheus-operator/prometheus-config-reloader:
|
||||
- v0.63.0
|
||||
prometheus-operator/prometheus-operator:
|
||||
- v0.63.0
|
||||
thanos/thanos:
|
||||
- v0.30.2
|
||||
|
||||
registry.k8s.io:
|
||||
images:
|
||||
ingress-nginx/kube-webhook-certgen:
|
||||
- v20221220-controller-v1.5.1-58-g787ea74b6
|
||||
kube-state-metrics/kube-state-metrics:
|
||||
- v2.8.0
|
@ -1,6 +0,0 @@
|
||||
docker.io:
|
||||
images:
|
||||
kubernetesui/dashboard:
|
||||
- v2.7.0
|
||||
kubernetesui/metrics-scraper:
|
||||
- v1.0.8
|
@ -1,6 +0,0 @@
|
||||
docker.io:
|
||||
images:
|
||||
grafana/loki:
|
||||
- 2.6.1
|
||||
grafana/promtail:
|
||||
- 2.7.0
|
@ -1,36 +0,0 @@
|
||||
#####
|
||||
# This file defines images that are required for deployments of the CAPI Helm charts,
|
||||
# allowing them to be synchronised to another repository using skopeo
|
||||
|
||||
# In particular, they are synchronised to ghcr.io/stackhpc/capi, which is used in the
|
||||
# CAPI Helm charts by default
|
||||
#####
|
||||
|
||||
docker.io:
|
||||
images:
|
||||
mellanox/nv-peer-mem-driver-1.1-0:
|
||||
- amd64-ubuntu20.04
|
||||
|
||||
ghcr.io:
|
||||
images:
|
||||
k8snetworkplumbingwg/multus-cni:
|
||||
- v3.8
|
||||
k8snetworkplumbingwg/plugins:
|
||||
- v0.8.7-amd64
|
||||
k8snetworkplumbingwg/sriov-network-device-plugin:
|
||||
- v3.5.1
|
||||
k8snetworkplumbingwg/whereabouts:
|
||||
- v0.5.2-amd64
|
||||
mellanox/ib-kubernetes:
|
||||
- v1.0.2
|
||||
|
||||
nvcr.io:
|
||||
images:
|
||||
nvidia/cloud-native/ipoib-cni:
|
||||
- v1.1.0
|
||||
nvidia/cloud-native/k8s-rdma-shared-dev-plugin:
|
||||
- v1.3.2
|
||||
nvidia/cloud-native/network-operator:
|
||||
- v1.4.0
|
||||
nvidia/mellanox/mofed:
|
||||
- 5.8-1.0.1.1.2-ubuntu20.04-amd64
|
@ -1,4 +0,0 @@
|
||||
k8s.gcr.io:
|
||||
images:
|
||||
metrics-server/metrics-server:
|
||||
- v0.6.2
|
@ -1,4 +0,0 @@
|
||||
registry.k8s.io:
|
||||
images:
|
||||
nfd/node-feature-discovery:
|
||||
- v0.12.0
|
@ -1,39 +0,0 @@
|
||||
#####
|
||||
# This file defines images that are required for deployments of the CAPI Helm charts,
|
||||
# allowing them to be synchronised to another repository using skopeo
|
||||
|
||||
# In particular, they are synchronised to ghcr.io/stackhpc/capi, which is used in the
|
||||
# CAPI Helm charts by default
|
||||
#####
|
||||
|
||||
nvcr.io:
|
||||
images:
|
||||
nvidia/cloud-native/dcgm:
|
||||
- 3.1.3-1-ubuntu20.04
|
||||
nvidia/cloud-native/gpu-operator-validator:
|
||||
- v22.9.1
|
||||
nvidia/cloud-native/k8s-driver-manager:
|
||||
- v0.5.1
|
||||
nvidia/cloud-native/k8s-mig-manager:
|
||||
- v0.5.0-ubuntu20.04
|
||||
nvidia/cloud-native/nvidia-fs:
|
||||
- 2.14.13-ubuntu20.04
|
||||
nvidia/cloud-native/vgpu-device-manager:
|
||||
- v0.2.0
|
||||
nvidia/cuda:
|
||||
- 11.7.1-base-ubi8
|
||||
- 11.8.0-base-ubi8
|
||||
nvidia/driver:
|
||||
- 525.60.13-ubuntu20.04
|
||||
nvidia/gpu-feature-discovery:
|
||||
- v0.7.0-ubi8
|
||||
nvidia/gpu-operator:
|
||||
- v22.9.1
|
||||
nvidia/kubevirt-gpu-device-plugin:
|
||||
- v1.2.1
|
||||
nvidia/k8s/container-toolkit:
|
||||
- v1.11.0-ubuntu20.04
|
||||
nvidia/k8s/dcgm-exporter:
|
||||
- 3.1.3-3.1.2-ubuntu20.04
|
||||
nvidia/k8s-device-plugin:
|
||||
- v0.13.0-ubi8
|
Loading…
Reference in New Issue
Block a user