<commit_before>---

# s3, git, time, github-release, registry-image,
# pool - serialize access to external systems
# git - can also push
resources:
  - name: 24h
    type: time
    source: {interval: 24h}

  - name: istio-installer
    type: git
    source:
      uri: "https://github.com/istio-ecosystem/istio-installer"
  - name: istio-release-1.1
    type: git
    source:
      uri: "https://github.com/istio/istio"
      branch: release-1.1
      
jobs:
  - name: install
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
    - get: istio-installer
      trigger: true

    - task: install-1-1-daily
      params: &params-1-1-daily
        TAG: release-1.1-latest-daily
        HUB: gcr.io/istio-release
        KUBECONFIG: ((KUBECONFIG))
        # Remove overly generous resource request to avoid unnecessarily scaling up k8s nodes
        RESOURCES_FLAGS: "--set global.resources.requests.cpu=0m --set resources.requests.cpu=0 --set resources.requests.memory=0 --set global.proxy.resources.requests.cpu=0 --set global.proxy.resources.requests.memory=0"
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            for step in cleanup install_crds install_system install_control install_ingress install_telemetry; do
                echo "***** STEP $step *****"
                istio-installer/bin/install.sh $step
            done
    
  - name: test-after-install
    serial_groups: [ cluster ]
    plan:
    - get: istio-installer
      passed: [ install ]
      trigger: true
    - get: istio-release-1.1
      trigger: false
    - get: 24h
      trigger: true
      passed: [install]
    - task: install-bookinfo
      params:
        KUBECONFIG: ((KUBECONFIG))
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-release-1.1
            path: src/github.com/istio/istio
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            istio-installer/bin/test.sh --skip-cleanup src/github.com/istio/istio/

  - name: install-1.1.0
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
      passed: [test-after-install]
    - get: istio-installer
      trigger: true
      passed: [test-after-install]

    - task: install-1-1-0
      params: &install-params-1-1-0
        TAG: 1.1.0
        HUB: istio
        KUBECONFIG: ((KUBECONFIG))
        RESOURCES_FLAGS: "--set global.resources.requests.cpu=0m --set resources.requests.cpu=0 --set resources.requests.memory=0 --set global.proxy.resources.requests.cpu=0 --set global.proxy.resources.requests.memory=0"
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            for step in cleanup install_crds install_system install_control install_ingress install_telemetry; do
                echo "***** STEP $step *****"
                istio-installer/bin/install.sh $step
            done
    
  - name: test-after-install-1.1.0
    serial_groups: [ cluster ]
    plan:
    - get: istio-installer
      passed: [ install-1.1.0 ]
      trigger: true
    - get: istio-release-1.1
      trigger: false
    - get: 24h
      trigger: true
      passed: [install-1.1.0]
    - task: install-bookinfo
      params:
        KUBECONFIG: ((KUBECONFIG))
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-release-1.1
            path: src/github.com/istio/istio
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            istio-installer/bin/test.sh --skip-cleanup src/github.com/istio/istio/

  - name: update
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
      passed: [test-after-install-1.1.0]
    - get: istio-installer
      passed: [test-after-install-1.1.0]
      trigger: true
    - task: update-1-1-daily
      config:
        platform: linux
        params: *params-1-1-daily
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            for step in install_crds install_system install_control install_ingress install_telemetry switch_istio_control; do
                echo "***** STEP $step *****"
                istio-installer/bin/install.sh $step --update
            done
  
  - name: test-after-update
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
      passed: [update]
    - get: istio-installer
      passed: [update]
      trigger: true
    - get: istio-release-1.1
    - task: install-bookinfo
      params:
        KUBECONFIG: ((KUBECONFIG))
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-release-1.1
            path: src/github.com/istio/istio
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            istio-installer/bin/test.sh --skip-cleanup src/github.com/istio/istio/
<commit_msg>Remove old control-instance in test pipeline.<commit_after>---

# s3, git, time, github-release, registry-image,
# pool - serialize access to external systems
# git - can also push
resources:
  - name: 24h
    type: time
    source: {interval: 24h}

  - name: istio-installer
    type: git
    source:
      uri: "https://github.com/istio-ecosystem/istio-installer"
  - name: istio-release-1.1
    type: git
    source:
      uri: "https://github.com/istio/istio"
      branch: release-1.1
      
jobs:
  - name: install
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
    - get: istio-installer
      trigger: true

    - task: install-1-1-daily
      params: &params-1-1-daily
        TAG: release-1.1-latest-daily
        HUB: gcr.io/istio-release
        KUBECONFIG: ((KUBECONFIG))
        # Remove overly generous resource request to avoid unnecessarily scaling up k8s nodes
        RESOURCES_FLAGS: "--set global.resources.requests.cpu=0m --set resources.requests.cpu=0 --set resources.requests.memory=0 --set global.proxy.resources.requests.cpu=0 --set global.proxy.resources.requests.memory=0"
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            for step in cleanup install_crds install_system install_control install_ingress install_telemetry; do
                echo "***** STEP $step *****"
                istio-installer/bin/install.sh $step
            done
    
  - name: test-after-install
    serial_groups: [ cluster ]
    plan:
    - get: istio-installer
      passed: [ install ]
      trigger: true
    - get: istio-release-1.1
      trigger: false
    - get: 24h
      trigger: true
      passed: [install]
    - task: install-bookinfo
      params:
        KUBECONFIG: ((KUBECONFIG))
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-release-1.1
            path: src/github.com/istio/istio
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            istio-installer/bin/test.sh --skip-cleanup src/github.com/istio/istio/

  - name: install-1.1.0
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
      passed: [test-after-install]
    - get: istio-installer
      trigger: true
      passed: [test-after-install]

    - task: install-1-1-0
      params: &install-params-1-1-0
        TAG: 1.1.0
        HUB: istio
        KUBECONFIG: ((KUBECONFIG))
        RESOURCES_FLAGS: "--set global.resources.requests.cpu=0m --set resources.requests.cpu=0 --set resources.requests.memory=0 --set global.proxy.resources.requests.cpu=0 --set global.proxy.resources.requests.memory=0"
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            for step in cleanup install_crds install_system install_control install_ingress install_telemetry; do
                echo "***** STEP $step *****"
                istio-installer/bin/install.sh $step
            done
    
  - name: test-after-install-1.1.0
    serial_groups: [ cluster ]
    plan:
    - get: istio-installer
      passed: [ install-1.1.0 ]
      trigger: true
    - get: istio-release-1.1
      trigger: false
    - get: 24h
      trigger: true
      passed: [install-1.1.0]
    - task: install-bookinfo
      params:
        KUBECONFIG: ((KUBECONFIG))
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-release-1.1
            path: src/github.com/istio/istio
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            istio-installer/bin/test.sh --skip-cleanup src/github.com/istio/istio/

  - name: update
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
      passed: [test-after-install-1.1.0]
    - get: istio-installer
      passed: [test-after-install-1.1.0]
      trigger: true
    - task: update-1-1-daily
      config:
        platform: linux
        params: *params-1-1-daily
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            export REMOVE_OLD_CONTROL=true
            for step in install_crds install_system install_control install_ingress install_telemetry switch_istio_control; do
                echo "***** STEP $step *****"
                istio-installer/bin/install.sh $step --update
            done
  
  - name: test-after-update
    serial_groups: [ cluster ]
    plan:
    - get: 24h
      trigger: true
      passed: [update]
    - get: istio-installer
      passed: [update]
      trigger: true
    - get: istio-release-1.1
    - task: install-bookinfo
      params:
        KUBECONFIG: ((KUBECONFIG))
      config:
        platform: linux
        image_resource:
          type: docker-image
          source:
            repository: gcr.io/peripli/istio-base
        inputs:
          - name: istio-release-1.1
            path: src/github.com/istio/istio
          - name: istio-installer
        run:
          path: /bin/sh
          args:
          - -ec
          - |
            echo "$KUBECONFIG" > /tmp/kubeconfig.yaml
            export KUBECONFIG=/tmp/kubeconfig.yaml
            istio-installer/bin/test.sh --skip-cleanup src/github.com/istio/istio/

{'fraction_non_alphanumeric': 0.1069392718704872, 'fraction_numerical': 0.012312837272934559, 'mean_word_length': 1.6096786989289964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6781843', 'n_tokens_mistral': 4231, 'n_tokens_neox': 4122, 'n_words': 855}