|
41 | 41 | localityZone = flag.String("locality-zone", "", "the locality zone to use, instead of retrieving it from the metadata server. Useful when not running on GCP and/or for testing") |
42 | 42 | includeV3Features = flag.Bool("include-v3-features-experimental", true, "whether or not to generate configs which works with the xDS v3 implementation in TD. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
43 | 43 | includePSMSecurity = flag.Bool("include-psm-security-experimental", true, "whether or not to generate config required for PSM security. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
44 | | - secretsDir = flag.String("secrets-dir-experimental", "/var/run/secrets/workload-spiffe-credentials", "path to a directory containing TLS certificates and keys required for PSM security. Used only if --include-psm-security-experimental is set. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
| 44 | + secretsDir = flag.String("secrets-dir", "/var/run/secrets/workload-spiffe-credentials", "path to a directory containing TLS certificates and keys required for PSM security") |
45 | 45 | includeDeploymentInfo = flag.Bool("include-deployment-info-experimental", false, "whether or not to generate config which contains deployment related information. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
46 | 46 | gkeClusterName = flag.String("gke-cluster-name-experimental", "", "GKE cluster name to use, instead of retrieving it from the metadata server. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
47 | 47 | gkePodName = flag.String("gke-pod-name-experimental", "", "GKE pod name to use, instead of reading it from $HOSTNAME or /etc/hostname file. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
|
52 | 52 |
|
53 | 53 | func main() { |
54 | 54 | nodeMetadata := make(map[string]string) |
55 | | - flag.CommandLine.Var(newStringMapVal(&nodeMetadata), "node-metadata-experimental", "additional metadata of the form key=value to be included in the node configuration. This flag is EXPERIMENTAL and may be changed or removed in a later release.") |
| 55 | + flag.Var(newStringMapVal(&nodeMetadata), "node-metadata", |
| 56 | + "additional metadata of the form key=value to be included in the node configuration") |
| 57 | + |
| 58 | + flag.Var(flag.Lookup("secrets-dir").Value, "secrets-dir-experimental", |
| 59 | + "alias of secrets-dir. This flag is EXPERIMENTAL and will be removed in a later release") |
| 60 | + flag.Var(flag.Lookup("node-metadata").Value, "node-metadata-experimental", |
| 61 | + "alias of node-metadata. This flag is EXPERIMENTAL and will be removed in a later release") |
56 | 62 |
|
57 | 63 | flag.Parse() |
58 | 64 | if *gcpProjectNumber == 0 { |
|
0 commit comments