server/deployments/template-values-server.yaml (34 lines of code) (raw):
# Default values for server.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
nameOverride: ""
fullnameOverride: servicehubval-mygreeterv3-server
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations:
azure.workload.identity/client-id: __AZURESDK_WORKLOAD_IDENTITY_CLIENT_ID__ # in make file, generate another file that will replace client id
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
command:
- /server
args:
- start
- --json-log
- --remote-addr=""
- --enable-azureSDK-calls=true
- --database-server-url=mygreeterv3-{{.resourcesName}}-{{.location}}-sql-server.database.windows.net
- --database-name=mygreeterv3-{{.resourcesName}}-sql-database
- --database-port=1433
- --subscription-id={{.subscriptionId}}
- --service-bus-hostname=servicehubval-{{.resourcesName}}-{{.location}}-sb-ns.servicebus.windows.net
- --service-bus-queue-name=servicehubval-{{.resourcesName}}-queue
- --opcon-addr=servicehubval-operationcontainer-server.servicehubval-operationcontainer-server:50251
# Info used for authorization policy
allowedPrincipals:
- cluster.local/ns/servicehubval-mygreeterv3-client/sa/servicehubval-mygreeterv3-client
allowedRequests:
- /MyGreeter/SayHello
- /MyGreeter/CreateResourceGroup
- /MyGreeter/ReadResourceGroup
- /MyGreeter/UpdateResourceGroup
- /MyGreeter/ListResourceGroups
- /MyGreeter/DeleteResourceGroup
- /MyGreeter/StartLongRunningOperation
- /v1/hello
- /v1/resourcegroups/*
- /v1/resourcegroups