{% if DRYDOCK_NEWRELIC_LICENSE_KEY %}
- target:
    kind: Deployment
    name: lms
  path: plugins/drydock/k8s/newrelic.yml
{% endif -%}
{% if DRYDOCK_POD_LIFECYCLE -%}
- path: plugins/drydock/k8s/lifecycle/lms.yml
- path: plugins/drydock/k8s/lifecycle/cms.yml
{% endif -%}
{% if DRYDOCK_REGISTRY_CREDENTIALS -%}
- target:
    kind: Deployment
  path: plugins/drydock/k8s/patches/add-image-pull-secret.yml
- target:
    kind: Job
  path: plugins/drydock/k8s/patches/add-image-pull-secret.yml
- target:
    kind: CronJob
  path: plugins/drydock/k8s/patches/add-image-pull-secret-cronjob.yml
{% endif -%}
- target:
    kind: Job
    labelSelector: app.kubernetes.io/component=job
  path: plugins/drydock/k8s/patches/tutor-jobs.yml
- target:
    kind: HorizontalPodAutoscaler
  path: plugins/drydock/k8s/patches/hpa-sync-wave.yml
- target:
    kind: Deployment
    name: '{% for name in DRYDOCK_POST_INIT_DEPLOYMENTS %}{{ name }}{% if not loop.last %}|{% endif %}{% endfor %}'
  path: plugins/drydock/k8s/patches/post-init-deployments-sync-wave.yml
