Skip to content

Commit 55d4af0

Browse files
committed
Add support for additional podspec details
1 parent d8c790d commit 55d4af0

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

charts/single-container/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.1
18+
version: 0.1.2
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/single-container/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ spec:
4747
port: http
4848
resources:
4949
{{- toYaml .Values.resources | nindent 12 }}
50+
{{- if .Values.podspec }}
51+
{{- toYaml .Values.podspec | nindent 10 }}
52+
{{- end }}
5053
{{- with .Values.nodeSelector }}
5154
nodeSelector:
5255
{{- toYaml . | nindent 8 }}

charts/single-container/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ serviceAccount:
2323
# If not set and create is true, a name is generated using the fullname template
2424
name: ""
2525

26+
podspec: {}
27+
# env:
28+
# - name: BlobStorage
29+
# valueFrom:
30+
# secretKeyRef:
31+
# key: BlobStorage
32+
# name: environment-settings
33+
2634
podAnnotations: {}
2735

2836
podSecurityContext: {}

list-resources-in-ns.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Param (
2+
[String]
3+
$namespace
4+
)
5+
6+
$apiResources = $(kubectl api-resources --verbs=list --namespaced -o name)
7+
8+
foreach ($resource in $apiResources) {
9+
kubectl get --show-kind --ignore-not-found -n $namespace $resource -o name
10+
}

0 commit comments

Comments
 (0)