forked from joeholley/supergloo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregister_appmesh.go
17 lines (15 loc) · 1.27 KB
/
register_appmesh.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package flagutils
import (
"github.com/solo-io/supergloo/cli/pkg/options"
"github.com/spf13/pflag"
)
func RegisterAwsAppMeshFlags(set *pflag.FlagSet, register *options.RegisterAppMesh) {
set.Var(®ister.Secret, "secret", "secret holding AWS access credentials. Format must be NAMESPACE.NAME")
set.StringVar(®ister.Region, "region", "", "AWS region the AWS App Mesh control plane resources (Virtual Nodes, Virtual Routers, etc.) will be created in")
set.StringVar(®ister.EnableAutoInjection, "auto-inject", "true", "determines whether auto-injection will be enabled for this mesh")
set.Var(®ister.ConfigMap, "configmap", "config map that contains the patch to be applied to the pods matching the selector. Format must be NAMESPACE.NAME")
set.Var(®ister.PodSelector.SelectedLabels, "select-labels", "auto-inject pods with these labels. Format must be KEY=VALUE")
set.StringSliceVar(®ister.PodSelector.SelectedNamespaces, "select-namespaces", nil, "auto-inject pods matching these labels")
set.StringVar(®ister.VirtualNodeLabel, "virtual-node-label", "", "If auto-injection is enabled, "+
"the value of the pod label with this key will be used to calculate the value of APPMESH_VIRTUAL_NODE_NAME environment variable that is set on the injected sidecar proxy container.")
}