sigs.k8s.io/cluster-api@v1.7.1/docs/book/src/clusterctl/commands/generate-provider.md (about)

     1  # clusterctl generate provider
     2  
     3  Generate templates for provider components.
     4  
     5  clusterctl fetches the provider components from the provider repository and performs variable substitution.
     6  
     7  Variable values are either sourced from the clusterctl config file or
     8  from environment variables
     9  
    10  Usage: `clusterctl generate provider [flags]`
    11  
    12  Current usage of the command is as follows:
    13  ```bash
    14  # Generates a yaml file for creating provider with variable values using
    15  # components defined in the provider repository.
    16  clusterctl generate provider --infrastructure aws
    17  
    18  # Generates a yaml file for creating provider for a specific version with variable values using
    19  # components defined in the provider repository.
    20  clusterctl generate provider --infrastructure aws:v0.4.1
    21  
    22  # Displays information about a specific infrastructure provider.
    23  # If applicable, prints out the list of required environment variables.
    24  clusterctl generate provider --infrastructure aws --describe
    25  
    26  # Displays information about a specific version of the infrastructure provider.
    27  clusterctl generate provider --infrastructure aws:v0.4.1 --describe
    28  
    29  # Generates a yaml file for creating provider for a specific version.
    30  # No variables will be processed and substituted using this flag
    31  clusterctl generate provider --infrastructure aws:v0.4.1 --raw
    32  ```