# Copyright © 2017,2019 Amdocs, AT&T , Bell Canada
#
# 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.

#################################################################
#
# These overrides will affect all helm charts (ie. applications)
# that are listed below and are 'enabled'.
#
#
# This is specifically for the environments which take time to
# deploy ONAP. This increase in timeouts prevents false restarting of
# the pods during startup configuration.
#
# These timers have been tuned by the ONAP integration team. They
# have been tested and validated in the ONAP integration lab (Intel/Windriver lab).
# They are however indicative and may be adapted to your environment as they
# depend on the performance of the infrastructure you are installing ONAP on.
#
# Please note that these timers must remain reasonable, in other words, if
# your infrastructure is not performant enough, extending the timers to very
# large value may not fix all installation issues on over subscribed hardware.
#
#################################################################
aaf:
  aaf-cs:
    liveness:
      initialDelaySeconds: 240
    readiness:
      initialDelaySeconds: 240
  aaf-gui:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
  aaf-oauth:
    liveness:
      initialDelaySeconds: 300
    readiness:
      initialDelaySeconds: 300
  aaf-service:
    liveness:
      initialDelaySeconds: 300
    readiness:
      initialDelaySeconds: 300
aai:
  liveness:
    initialDelaySeconds: 120
  aai-champ:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
  aai-data-router:
    liveness:
      initialDelaySeconds: 120
  aai-sparky-be:
    liveness:
      initialDelaySeconds: 120
  aai-spike:
    liveness:
      initialDelaySeconds: 120
  aai-cassandra:
    liveness:
      periodSeconds: 120
    readiness:
      periodSeconds: 60
appc:
  mariadb-galera:
    liveness:
      initialDelaySeconds: 180
      periodSeconds: 60
cassandra:
  liveness:
    initialDelaySeconds: 120
    periodSeconds: 120
  readiness:
    initialDelaySeconds: 120
    periodSeconds: 60
clamp:
  liveness:
    initialDelaySeconds: 60
  readiness:
    initialDelaySeconds: 60
  clamp-mariadb:
    liveness:
      initialDelaySeconds: 30
    readiness:
      initialDelaySeconds: 30
dcaegen2:
  dcae-cloudify-manager:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
dmaap:
  dmaap-bus-controller:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
  message-router:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
  dmaap-dr-prov:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
    mariadb:
      liveness:
        initialDelaySeconds: 180
        periodSeconds: 60
  dmaap-dr-node:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
mariadb-galera:
  liveness:
    initialDelaySeconds: 180
    periodSeconds: 60
  mariadb-galera-server:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
modeling:
  mariadb-galera:
    liveness:
      initialDelaySeconds: 180
      periodSeconds: 60
oof:
  oof-has:
    music:
      music-cassandra:
        liveness:
          periodSeconds: 120
        readiness:
          periodSeconds: 60
portal:
  portal-app:
    liveness:
      initialDelaySeconds: 60
    readiness:
      initialDelaySeconds: 60
  portal-cassandra:
    liveness:
      periodSeconds: 120
    readiness:
      periodSeconds: 60
sdc:
  sdc-fe:
    liveness:
      initialDelaySeconds: 120
      periodSeconds: 60
      timeoutSeconds: 15
    readiness:
      initialDelaySeconds: 120
      periodSeconds: 60
      timeoutSeconds: 15
  sdc-be:
    liveness:
      initialDelaySeconds: 120
      periodSeconds: 60
      timeoutSeconds: 15
    readiness:
      initialDelaySeconds: 120
      periodSeconds: 60
      timeoutSeconds: 15
  sdc-cs:
    liveness:
      initialDelaySeconds: 120
      periodSeconds: 120
    readiness:
      initialDelaySeconds: 120
      periodSeconds: 60
  sdc-es:
    liveness:
      initialDelaySeconds: 60
    readiness:
      initialDelaySeconds: 120
  sdc-onboarding-be:
    liveness:
      initialDelaySeconds: 120
      periodSeconds: 60
      timeoutSeconds: 15
    readiness:
      initialDelaySeconds: 120
      periodSeconds: 60
      timeoutSeconds: 15
sdnc:
  liveness:
    initialDelaySeconds: 60
  readiness:
    initialDelaySeconds: 60
  dmaap-listener:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
  mariadb-galera:
    liveness:
      initialDelaySeconds: 180
      periodSeconds: 60
  sdnc-ansible-server:
    readiness:
      initialDelaySeconds: 120
  ueb-listener:
    liveness:
      initialDelaySeconds: 60
    readiness:
      initialDelaySeconds: 60
so:
  liveness:
    initialDelaySeconds: 120
  mariadb:
    liveness:
      initialDelaySeconds: 900
    readiness:
      initialDelaySeconds: 900
uui:
  uui-server:
    liveness:
      initialDelaySeconds: 120
    readiness:
      initialDelaySeconds: 120
vfc:
  mariadb-galera:
    liveness:
      initialDelaySeconds: 180
      periodSeconds: 60