From a792d35ad18e938f33247d3b8fd30e444d74f5b2 Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Wed, 28 Feb 2018 10:31:32 -0600 Subject: [PATCH] Add resource declaration to deckhand job-ks-service chart template This adds resource declarations to the keystone service job container for deckhand. It also updates .gitignore to specifically exclude tarballs and requirements lock files instead of all contents in charts/deckhand Change-Id: Ide80834cf636dfc96d207a19f2248fd75aea5ca7 --- .gitignore | 4 ++-- charts/deckhand/templates/job-ks-service.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2487ffce..3b41547c 100644 --- a/.gitignore +++ b/.gitignore @@ -107,8 +107,8 @@ ENV/ .mypy_cache/ # makefile build/lint artifacts -/charts/deckhand/* - +/charts/deckhand/*.tgz +/charts/deckhand/*.lock # git Changelog AUTHORS diff --git a/charts/deckhand/templates/job-ks-service.yaml b/charts/deckhand/templates/job-ks-service.yaml index 6fc83925..94f98d64 100644 --- a/charts/deckhand/templates/job-ks-service.yaml +++ b/charts/deckhand/templates/job-ks-service.yaml @@ -39,6 +39,7 @@ spec: - name: {{ $osServiceType }}-ks-service-registration image: {{ $envAll.Values.images.tags.ks_service }} imagePullPolicy: {{ $envAll.Values.images.pull_policy }} +{{ tuple $envAll $envAll.Values.pod.resources.jobs.ks_service | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} command: - /tmp/ks-service.sh volumeMounts: