name: "Configure Containers DNS Search Logic"
description: "Configure the containers' DNS seach property in target namespace.**Depends on kubectl and aws-cli installed in advance.**"
author: YochaLyc

inputs:
  namespace:
    required: true
    description: "The target namespace to modify DNS."
  downstreamNamespace:
    required: false
    default: "nightly-ms"
    description: "The namespace to route the dev traffic to."

runs:
  using: "composite"
  steps:
    - name: Configure Containers DNS Search Logic
      working-directory: cicd-core/components/env-dev/dev-container-dns-modification
      run: |
        bash container-dns-modification.sh ${{ inputs.namespace }} ${{ inputs.downstreamNamespace }}
      shell: bash
