Skip to content

Commit

Permalink
add unspecified options
Browse files Browse the repository at this point in the history
  • Loading branch information
timmy-wright committed Nov 5, 2024
1 parent d584c78 commit b5df8d3
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 57 deletions.
111 changes: 60 additions & 51 deletions pkg/proto/aksnodeconfig/v1/bootstrappingconfig.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions pkg/proto/aksnodeconfig/v1/bootstrappingconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,30 @@ message BootstrappingConfig {
optional string custom_aad_client_id = 5;

enum BootstrappingAuthMethod {
BAM_UNSPECIFIED = 0;

// This is the default K8s bootstrap authentication method - a time limited bootstrap token. It's stored as a secret
// with a particular type in the API server.
//nolint:gosec // this is a const string to use in switch statements, not hardcoded credentials
BOOTSTRAP_TOKEN = 0;
BOOTSTRAP_TOKEN = 1;
// Secure TLS bootstrapping is a process where the node can use signed metadata from the Azure IMDS service to authenticate
// against the api server
SECURE_TLS_BOOTSTRAPPING = 1;
SECURE_TLS_BOOTSTRAPPING = 2;
// Nodes running outside Azure can use the Azure Arc MSI to authenticate to an API server. This only works when the cluster is
// using AAD authentication.
ARC_MSI = 2;
ARC_MSI = 3;
// Nodes running inside Azure can use the Azure Arc MSI to authenticate to an API server. This only works when the cluster is
// using AAD authentication.
AZURE_MSI = 3;
AZURE_MSI = 4;
}

enum ClusterJoinMethod {
CJM_UNSPECIFIED = 0;

// The default behaviour is for the node to make a certificate signing request (CSR) and then
// use that CSR for ongoing communication.
GENERATE_CSR = 0;
GENERATE_CSR = 1;
// In some cases, the node will use the bootstrapping auth to register itself as a node and for ongoing communications.
USE_BOOTSTRAPPING_AUTH = 1;
USE_BOOTSTRAPPING_AUTH = 2;
}
}

0 comments on commit b5df8d3

Please sign in to comment.