Skip to content

Add just file for replacement of make#48

Open
TheBigLee wants to merge 1 commit intomasterfrom
feature/just_file_support
Open

Add just file for replacement of make#48
TheBigLee wants to merge 1 commit intomasterfrom
feature/just_file_support

Conversation

@TheBigLee
Copy link
Member

Add justfile to replace makefiles

Signed-off-by: Nicolas Bigler <nicolas.bigler@vshn.ch>
Copy link
Contributor

@Kidswiss Kidswiss left a comment

Choose a reason for hiding this comment

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

Please adjust the CI pipeline to use the new justfile.

Copy link
Contributor

@mikeshootzz mikeshootzz left a comment

Choose a reason for hiding this comment

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

Also: how do we handle having both Make and Justfiles? If we intend to switch I would remove the Makefiles, so we don't increase our buildfile-madness

#!/usr/bin/env bash
set -euo pipefail
export KUBECONFIG={{kind_kubeconfig}}
if ! ({{vcluster_bin}} list | grep controlplane); then
Copy link
Contributor

Choose a reason for hiding this comment

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

The Makefile checks both for an existing vcluster and whether the vcluster variable is enabled, while the justfile only checks for existence. This will cause vcluster to be created unconditionally, ignoring the default-disabled behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants