Skip to content

Commit

Permalink
Remove prometheus migrate logic
Browse files Browse the repository at this point in the history
Bug: T362102
  • Loading branch information
vivian-rook committed Apr 12, 2024
1 parent ecf876b commit d5e45a4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
15 changes: 0 additions & 15 deletions ansible/files/prometheus-data.sh

This file was deleted.

5 changes: 0 additions & 5 deletions ansible/paws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
name: metrics
kind: Namespace
state: present
register: prometheus

- name: Prometheus
kubernetes.core.helm:
Expand All @@ -95,10 +94,6 @@
template: "templates/prometheus-ingress.yaml.j2"
namespace: metrics

- name: Pull in previous prometheus data
ansible.builtin.script: files/prometheus-data.sh
when: prometheus.changed

- name: Add jupyterhub chart repo
kubernetes.core.helm_repository:
name: jupyterhub
Expand Down
4 changes: 0 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ fi

source secrets-${datacenter}.sh

# save current kube.config in case we need to transfer prometheus data
cp $(pwd)/tofu/kube.config /tmp/kube.config.previous || true # if it isn't there just keep going

python3 -m venv .venv/deploy
source .venv/deploy/bin/activate
pip install ansible==8.1.0 kubernetes==26.1.0
Expand All @@ -54,7 +51,6 @@ cd tofu
AWS_ACCESS_KEY_ID=${ACCESS_KEY} AWS_SECRET_ACCESS_KEY=${SECRET_KEY} tofu init -backend-config=${datacenter}-backend.conf
AWS_ACCESS_KEY_ID=${ACCESS_KEY} AWS_SECRET_ACCESS_KEY=${SECRET_KEY} tofu apply -var datacenter=${datacenter}
export KUBECONFIG=$(pwd)/kube.config
cp $(pwd)/kube.config /tmp/kube.config.current

if [ "${tofuonly}" = '1' ]
then
Expand Down

0 comments on commit d5e45a4

Please sign in to comment.