Closed DnPlas closed 1 year ago
No need to cherry-pick https://github.com/canonical/training-operator/commit/e6b921d4b221ef28e0ae554b41fc6250edef3660 into track/1.6
. It has been done in https://github.com/canonical/training-operator/pull/118
No need to cherry-pick https://github.com/canonical/training-operator/pull/127 into track/1.6
that fix was handled by #118 as well.
No need to cherry-pick in https://github.com/canonical/training-operator/commit/93f53e822e5371265a5c96af007af61f4c0e03e7 into track/1.6
. Already backported by https://github.com/canonical/training-operator/pull/133
Yes as pointed out by Ivan:
Description
The goal of this task is to make all images configurable so that when this charm is deployed in an airgapped environment, all image resources are pulled from an arbitrary local container image registry (avoiding pulling images from the internet). This serves as a tracking issue for the required changes and backports to the latest stable
track/*
Github branch.TL;DR
Mark the following as done
Required changes
The following files have to be modified and/or verified to enable image configuration:
metadata.yaml
- the container image(s) of the workload containers have to be specified in this file. This only applies to sidecar charms. Example:tools/get-images.sh - is a bash script that returns a list of all the images that are used by this charm. In the case of a multi-charm repo, this is located at the root of the repo and gathers images from all charms in it.
src/charm.py - verify that nothing inside the charm code is calling a subprocess that requires internet connection.
Testing
Spin up an airgap environment following https://github.com/canonical/bundle-kubeflow/pull/682 and https://github.com/canonical/bundle-kubeflow/issues/703#issuecomment-1729826733
Build the charm making sure that all the changes for airgap are in place.
Deploy the charms manually and observe the charm go to active and idle.
Additionally, run integration tests or simulate them. For instance, creating a workload (like a PytorchJob, a SeldonDeployment, etc.).
Publishing
After completing the changes and testing, this charm has to be published to its stable risk in Charmhub. For that you must wait for the charm to be published to/edge, which is the revision to be promoted to /stable. Use the workflow dispatch for this (Actions>Release charm to other tracks...>Run workflow).
Suggested changes/backports