Skip to content

Decouple kind commend dependency to create a local-cluster #388

@titanlien

Description

@titanlien

I would like to create a local-cluster by the other commend, for instance, k3d.
Then I can reply on the following func in local-setup/scripts/check-environment.sh to by pass check_kind_cluster()

check_local_cluster() {
    # Check if local cluster is already running
    if [ $(kubectl cluster-info) -gt 0 ]; then
        echo -e "${COL}[$(date '+%H:%M:%S')] Local cluster already running, using existing ${COL_RES}"
        return 0  # Return 0 to indicate cluster exists
    fi
    return 1  # Return 1 to indicate cluster doesn't exist
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions