metadata:
  annotations:
    prow.k8s.io/context: ""
    prow.k8s.io/job: periodic-update-pingcap-monitoring-lts-8.5
  creationTimestamp: "2025-04-04T23:00:16Z"
  generation: 7
  labels:
    created-by-prow: "true"
    prow.k8s.io/build-id: "1908293571736244224"
    prow.k8s.io/context: ""
    prow.k8s.io/id: 92e565a2-11a8-11f0-bebb-96e16cfa81f4
    prow.k8s.io/job: periodic-update-pingcap-monitoring-lts-8.5
    prow.k8s.io/refs.base_ref: release-8.5
    prow.k8s.io/refs.org: pingcap
    prow.k8s.io/refs.repo: monitoring
    prow.k8s.io/type: periodic
  name: 92e565a2-11a8-11f0-bebb-96e16cfa81f4
  namespace: apps
  resourceVersion: "1339620151"
  uid: c9638642-3cb1-40b0-92a9-1beec9e7203d
spec:
  agent: kubernetes
  cluster: default
  decoration_config:
    gcs_configuration:
      bucket: gs://prow-tidb-logs
      path_strategy: explicit
    gcs_credentials_secret: gcs-credentials
    utility_images:
      clonerefs: gcr.io/k8s-prow/clonerefs:v20230601-43eb1068e4
      entrypoint: gcr.io/k8s-prow/entrypoint:v20230601-43eb1068e4
      initupload: gcr.io/k8s-prow/initupload:v20230601-43eb1068e4
      sidecar: gcr.io/k8s-prow/sidecar:v20230601-43eb1068e4
  extra_refs:
  - base_ref: release-8.5
    clone_depth: 1
    org: pingcap
    repo: monitoring
    skip_submodules: true
  job: periodic-update-pingcap-monitoring-lts-8.5
  namespace: prow-test-pods
  pod_spec:
    containers:
    - args:
      - "if go run ./cmd/monitoring.go --tag $TARGET --config monitoring.yaml --token
        $(cat /etc/github/token); then\n  git add monitor-snapshot/$TARGET\n  # should
        ignore the file: monitor-snapshot/$TARGET/ansible-monitor.tar.gz, it will
        be different in every compressing.\n  if git diff --cached --exit-code --name-status
        monitor-snapshot/$TARGET/operator; then\n    echo \"\U0001F937 No changes
        happened.\"\n    exit 0\n  fi\nelse\n  echo \"❌ tool run failed!\"\n  exit
        1\nfi\n\n# commit and push the changes\ngit config user.email \"ti-community-prow-bot@tidb.io\"\ngit
        config user.name  \"ti-chi-bot\"\n\n# install `gh` tool\ntype -p curl >/dev/null
        || ( apt update &&  apt install curl -y)\ncurl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg
        |  dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \\\n&& chmod go+r
        /usr/share/keyrings/githubcli-archive-keyring.gpg \\\n&& echo \"deb [arch=$(dpkg
        --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg]
        https://cli.github.com/packages stable main\" |  tee /etc/apt/sources.list.d/github-cli.list
        > /dev/null \\\n&& apt update \\\n&& apt install gh -y\n\n# login and setup
        git\ngh auth login --with-token < /etc/github/token\ngh auth setup-git\n\n#
        commit and push the changes.\nhead_branch=\"fix/${TARGET}/update-snapshot-files\"\ngit
        checkout -b \"$head_branch\"\ncommit_msg=\"chore(monitor-snapshot/$TARGET):
        update files from upstreams\"\ngit commit -m \"$commit_msg\"\ngit remote add
        origin https://github.com/pingcap/monitoring.git\ngit remote -v\ngit push
        -f --set-upstream origin \"$head_branch\"\n\n# create pull request\ngh pr
        create \\\n  --base $TARGET \\\n  --head \"$head_branch\" \\\n  --title \"$commit_msg\"
        \\\n  --body \"Auto generated by bot periodics.\"\n\n# wait 120 seconds, let
        the bot deal firstly.\nsleep 120\n\n# add lgtm and approved labels.\nprUrl=$(gh
        pr list \\\n  --repo pingcap/monitoring \\\n  --base $TARGET \\\n  --head
        \"$head_branch\" \\\n  --state open \\\n  --json \"url\" \\\n  --jq .[].url)\ngh
        pr edit --add-label lgtm --add-label approved $prUrl\n"
      command:
      - bash
      - -ce
      env:
      - name: TARGET
        value: release-8.5
      image: golang:1.23.2
      name: check
      resources:
        limits:
          cpu: "1"
          memory: 4Gi
      volumeMounts:
      - mountPath: /etc/github
        name: github-token
        readOnly: true
    volumes:
    - name: github-token
      secret:
        secretName: github-token
  prowjob_defaults:
    tenant_id: GlobalDefaultID
  report: true
  type: periodic
status:
  build_id: "1908293571736244224"
  completionTime: "2025-04-04T23:02:00Z"
  description: Job succeeded.
  pendingTime: "2025-04-04T23:00:16Z"
  pod_name: 92e565a2-11a8-11f0-bebb-96e16cfa81f4
  prev_report_states:
    gcsk8sreporter: success
    gcsreporter: success
  startTime: "2025-04-04T23:00:16Z"
  state: success
  url: https://prow.tidb.net/view/gs/prow-tidb-logs/logs/periodic-update-pingcap-monitoring-lts-8.5/1908293571736244224