sidero/hack/scripts/generate-clusterctl-config.sh
Spencer Smith 9438ca8e8a
chore: fix gpg check and sfyra build
This PR fixes the gpg check as well as adds the clusterctl workaround to
make sfyra build properly.

Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
2022-03-29 11:35:26 -04:00

19 lines
566 B
Bash
Executable File

#!/bin/bash
set -eou pipefail
mkdir -p "$(dirname "${CLUSTERCTL_CONFIG}")"
cat > "${CLUSTERCTL_CONFIG}" <<EOF
providers:
- name: "talos"
url: "https://github.com/siderolabs/cluster-api-bootstrap-provider-talos/releases/latest/bootstrap-components.yaml"
type: "BootstrapProvider"
- name: "talos"
url: "https://github.com/siderolabs/cluster-api-control-plane-provider-talos/releases/latest/control-plane-components.yaml"
type: "ControlPlaneProvider"
- name: "sidero"
url: "file://${COMPONENTS_YAML}"
type: "InfrastructureProvider"
EOF