Uploaded image for project: 'OpenShift Windows Containers'
  1. OpenShift Windows Containers
  2. WINC-1221

WMCO generates hosts.toml file content

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • WMCO 10.16.0
    • None
    • None
    • Strategic Product Work
    • 5
    • False
    • None
    • False
    • OCPSTRAT-619 - Support Windows Containers in disconnected environments
    • WINC - Sprint 252, WINC - Sprint 253

      As an OpenShift Windows admin, I would like the WMCO to create config files compatible with containerd, so that my cluster's mirror settings are applied to Windows nodes.

      Description

      This story covers generating host.toml files based on a cluster's mirror registry settings. This will involve introducing a "registry controller" to WMCO which watches to ImageDigestMirrorSet and ImageTagMirrorSet resources. The controller should generate a set of containerd config files when cluster settings are updated.

      We can utilize [registry runtime-utils](https://github.com/openshift/runtime-utils/blob/master/pkg/registries/registries.go) to easily process and merge the contents of the IDMS/ITMS resources, [as MCO does](https://github.com/openshift/machine-config-operator/blob/master/pkg/controller/container-runtime-config/helpers.go#L407). This will help us to generate config file content from a unified object representing the cluster's mirror registry configuration state.

      Acceptance Criteria

      • WMCO watches IDMS/ITMS resources
      • WMCO translates cluster's image mirror settings to containerd compatible hosts.toml files
      • Unit testing for the registry controller must cover both the file content and verifying that it is reactive to changes in IDMS/ITMS resources

              mohashai Mohammad Shaikh
              mohashai Mohammad Shaikh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: