PyratLabs / ansible-role-k3s

Ansible role for installing k3s as either a standalone server or HA cluster.
BSD 3-Clause "New" or "Revised" License
640 stars 135 forks source link

Fixes #197 fix length indentation in registry.yaml #198

Closed Jonaprince closed 2 years ago

Jonaprince commented 2 years ago

Fix the issue of bad indentation in rewrite rules when using registry pull through cache

Fix length indentation in registry.yaml

Summary

Fixes #197

Issue type

Test instructions

Deploy k3s with this values into your inventory:

k3s_registries:
  mirrors:
    docker.io:
      endpoint:
        - "http://registry.example.com"
      rewrite:
        "(.*)": "docker-hub/$1"

Acceptance Criteria

Produced file /etc/rancher/k3s/registries.yaml contains following content:


mirrors:
  docker.io:
    endpoint:
    - http://registry.example.com
    rewrite:
      (.*): docker-hub/$1