Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Add ignition support #85

Merged
merged 17 commits into from
Jul 14, 2022
Merged

Add ignition support #85

merged 17 commits into from
Jul 14, 2022

Conversation

kopiczko
Copy link
Contributor

@kopiczko kopiczko commented Jun 2, 2022

Towards giantswarm/roadmap#778

Tested scenarios:

  • Creating a fresh cluster with Ubuntu
  • Creating a fresh cluster with Flatcar
  • Converting Ubuntu cluster to a Flatcar cluster
  • Upgrading 0.13.0 Ubuntu cluster to this branch

@kopiczko kopiczko self-assigned this Jun 2, 2022
@tityosbot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kopiczko kopiczko changed the title [TEST] Ignition Add ignition support Jul 11, 2022
@kopiczko kopiczko marked this pull request as ready for review July 11, 2022 17:58
@kopiczko kopiczko requested a review from a team as a code owner July 11, 2022 17:58
@bavarianbidi
Copy link
Contributor

out of curiosity: which container-runtime is flatcar using per default? Do we have to explicity set the path to the socket?

xref: https://flatcar-linux.org/docs/latest/container-runtimes/switching-from-docker-to-containerd-for-kubernetes/

@kopiczko
Copy link
Contributor Author

@kopiczko kopiczko merged commit ba58cf5 into main Jul 14, 2022
@kopiczko kopiczko deleted the pawel-ignition branch July 14, 2022 20:04
@erkanerol
Copy link
Contributor

Good work 👍

kubeadm_file="/run/kubeadm/kubeadm.yaml"
fi

cat "${dir}/gs-kube-proxy-config.yaml" >> "${dir}/kubeadm.yaml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @kopiczko , shouldn't this be

cat "${dir}/gs-kube-proxy-config.yaml" >> "${kubeadm_file}"

?

@@ -9,7 +9,8 @@ set -o errexit
set -o nounset
set -o pipefail

readonly dir="/run/kubeadm"
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
readonly dir

# Run this script only if this is the init node.
if [[ ! -f ${dir}/kubeadm.yaml ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understood this file was present only on flatcar. Would this work on Ubuntu? If the file is not present on Ubuntu the script will do nothing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants