# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Example ConfigMap for apigee-remote-service-envoy configuration in SaaS.
# You must update the tenant values appropriately.
# Note: Alternatively, you can use the generated config from the CLI directly.
#       Direct the output to `config.yaml` and run the follow command on it:
#       `kubectl -n apigee create configmap apigee-remote-service-envoy --from-file=config.yaml`
apiVersion: v1
kind: ConfigMap
metadata:
  name: apigee-remote-service-envoy
  namespace: apigee
data:
  config.yaml: |
    tenant:
      management_api: https://istioservices.apigee.net/edgemicro
      remote_service_api: https://theganyo1-eval-test.apigee.net/istio-auth
      org_name: theganyo1-eval
      env_name: test
      key: NotReal
      secret: NotReal
    products:
      refresh_rate: 2m
    analytics:
      file_limit: 1024
      collection_interval: 10s
    auth:
      api_key_cache_duration: 30m
      api_key_claim:
