To add a new provider, update the charts/Makefile and create a Kustomize configuration for the provider.
You need to create a new target in charts/Makefile, similar to build-cluster-api-aws-chart for the AWS provider:
build-cluster-api-aws-chart: PROJECT = cluster-api-provider-aws
...
.PHONY: build-cluster-api-aws-chart
build-cluster-api-aws-chart:
WKDIR=$(WKDIR) ORGREPO=$(ORGREPO) PROJECT=$(PROJECT) BRANCH=$(BRANCH) ../scripts/build.sh
OCP_VERSION=$(OCP_VERSION) SYNC2CHARTS=$(SYNC2CHARTS) BUILTDIR="$(BUILTDIR)" PROJECT=$(PROJECT) ../scripts/sync2chart.shThen, add this target (e.g., build-cluster-api-aws-chart) as a dependency for the build target:
build: build-cluster-api-chart build-cluster-api-aws-chart build-cluster-api-azure-chartYou need to create a kustomization.yaml file in the config/$PROJECT directory, similar to config/cluster-api-provider-aws/kustomization.yaml for the AWS provider.
Additionally, you may include an env file in the config/$PROJECT directory with <KEY>=<value> pairs to override default values for variables in source resource templates, like config/cluster-api-provider-aws/env for the AWS provider.