rancher-sandbox / cluster-api-provider-harvester

A Cluster API Infrastructure Provider for Harvester
Apache License 2.0
21 stars 6 forks source link

Feature: Improving clusterctl generate command to use already defined env-vars. #44

Closed PatrickLaabs closed 2 months ago

PatrickLaabs commented 2 months ago

Describe the solution you'd like: Improving the cmd from

clusterctl generate cluster --from https://github.com/rancher-sandbox/cluster-api-provider-harvester/blob/v0.1.2/templates/cluster-template-rke2.yaml -n example-rk test-rk > harvester-rke2-clusterctl.yaml

to

clusterctl generate cluster --from https://github.com/rancher-sandbox/cluster-api-provider-harvester/blob/v0.1.2/templates/cluster-template-rke2.yaml -n ${CLUSTER_NAMESPACE} ${CLUSTER_NAME} > harvester-rke2-clusterctl.yaml

Why do you want this feature:

Part of the stream-lining for a user to easier get started with the provider and remove redundancies.

Anything else you would like to add: