• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14from absl import flags
15
16# GCP
17KUBE_CONTEXT = flags.DEFINE_string("kube_context",
18                                   default=None,
19                                   help="Kubectl context to use")
20GCP_SERVICE_ACCOUNT = flags.DEFINE_string(
21    "gcp_service_account",
22    default=None,
23    help="GCP Service account for GKE workloads to impersonate")
24TD_BOOTSTRAP_IMAGE = flags.DEFINE_string(
25    "td_bootstrap_image",
26    default=None,
27    help="Traffic Director gRPC Bootstrap Docker image")
28
29# Test app
30SERVER_IMAGE = flags.DEFINE_string("server_image",
31                                   default=None,
32                                   help="Server Docker image name")
33CLIENT_IMAGE = flags.DEFINE_string("client_image",
34                                   default=None,
35                                   help="Client Docker image name")
36DEBUG_USE_PORT_FORWARDING = flags.DEFINE_bool(
37    "debug_use_port_forwarding",
38    default=False,
39    help="Development only: use kubectl port-forward to connect to test app")
40
41flags.mark_flags_as_required([
42    "gcp_service_account",
43    "kube_context",
44    "td_bootstrap_image",
45    "server_image",
46    "client_image",
47])
48