From a6043c588b002cbebf464ae8cf1ba52290f04148 Mon Sep 17 00:00:00 2001 From: Luke Van Seters Date: Tue, 18 Jan 2022 18:50:38 -0500 Subject: [PATCH] Remove prices cronjob --- Tiltfile | 4 -- k8s/mev-inspect-prices/.helmignore | 23 ------- k8s/mev-inspect-prices/Chart.yaml | 24 ------- k8s/mev-inspect-prices/templates/_helpers.tpl | 62 ------------------- k8s/mev-inspect-prices/templates/cronjob.yaml | 35 ----------- k8s/mev-inspect-prices/values.yaml | 7 --- 6 files changed, 155 deletions(-) delete mode 100644 k8s/mev-inspect-prices/.helmignore delete mode 100644 k8s/mev-inspect-prices/Chart.yaml delete mode 100644 k8s/mev-inspect-prices/templates/_helpers.tpl delete mode 100644 k8s/mev-inspect-prices/templates/cronjob.yaml delete mode 100644 k8s/mev-inspect-prices/values.yaml diff --git a/Tiltfile b/Tiltfile index 1d4bc22..5b8d1dc 100644 --- a/Tiltfile +++ b/Tiltfile @@ -58,10 +58,6 @@ k8s_resource( resource_deps=["postgresql-postgresql", "redis-master"], ) -# uncomment to enable price monitor -# k8s_yaml(helm('./k8s/mev-inspect-prices', name='mev-inspect-prices')) -# k8s_resource(workload="mev-inspect-prices", resource_deps=["postgresql-postgresql"]) - local_resource( 'pg-port-forward', serve_cmd='kubectl port-forward --namespace default svc/postgresql 5432:5432', diff --git a/k8s/mev-inspect-prices/.helmignore b/k8s/mev-inspect-prices/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/k8s/mev-inspect-prices/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/k8s/mev-inspect-prices/Chart.yaml b/k8s/mev-inspect-prices/Chart.yaml deleted file mode 100644 index 5083c60..0000000 --- a/k8s/mev-inspect-prices/Chart.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v2 -name: mev-inspect-prices -description: A Helm chart for Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "1.16.0" diff --git a/k8s/mev-inspect-prices/templates/_helpers.tpl b/k8s/mev-inspect-prices/templates/_helpers.tpl deleted file mode 100644 index 1d8a659..0000000 --- a/k8s/mev-inspect-prices/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "mev-inspect-prices.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "mev-inspect-prices.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "mev-inspect-prices.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "mev-inspect-prices.labels" -}} -helm.sh/chart: {{ include "mev-inspect-prices.chart" . }} -{{ include "mev-inspect-prices.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "mev-inspect-prices.selectorLabels" -}} -app.kubernetes.io/name: {{ include "mev-inspect-prices.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "mev-inspect-prices.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "mev-inspect-prices.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} diff --git a/k8s/mev-inspect-prices/templates/cronjob.yaml b/k8s/mev-inspect-prices/templates/cronjob.yaml deleted file mode 100644 index 900d0ab..0000000 --- a/k8s/mev-inspect-prices/templates/cronjob.yaml +++ /dev/null @@ -1,35 +0,0 @@ -apiVersion: batch/v1 -kind: CronJob -metadata: - name: {{ include "mev-inspect-prices.fullname" . }} -spec: - schedule: "0 */1 * * *" - successfulJobsHistoryLimit: 0 - jobTemplate: - spec: - template: - spec: - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - args: - - run - - fetch-all-prices - env: - - name: POSTGRES_HOST - valueFrom: - secretKeyRef: - name: mev-inspect-db-credentials - key: host - - name: POSTGRES_USER - valueFrom: - secretKeyRef: - name: mev-inspect-db-credentials - key: username - - name: POSTGRES_PASSWORD - valueFrom: - secretKeyRef: - name: mev-inspect-db-credentials - key: password - restartPolicy: Never diff --git a/k8s/mev-inspect-prices/values.yaml b/k8s/mev-inspect-prices/values.yaml deleted file mode 100644 index 77238c0..0000000 --- a/k8s/mev-inspect-prices/values.yaml +++ /dev/null @@ -1,7 +0,0 @@ -image: - repository: mev-inspect-py - pullPolicy: IfNotPresent - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: ""