1
0
Fork 0

Fix Kubernetes reference yml file

This commit is contained in:
Michael 2026-01-09 10:12:04 +01:00 committed by GitHub
parent c7487c4a69
commit 2b710f05b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 56 additions and 9 deletions

View file

@ -34,3 +34,6 @@ controller-gen crd:crdVersions=v1 \
echo "# Concatenate the CRD definitions for publication and integration tests ..."
cat "${CURRENT_DIR}"/docs/content/reference/dynamic-configuration/traefik.io_*.yaml > "${CURRENT_DIR}"/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
cp -f "${CURRENT_DIR}"/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml "${CURRENT_DIR}"/integration/fixtures/k8s/01-traefik-crd.yml
# Remove leading '---' from the concatenated file (files with multiple resources should not start with ---)
sed -i '1{/^---$/d;}' "${CURRENT_DIR}"/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml