Skip to content

Commit

Permalink
Update master Tue Mar 6 04:30:17 UTC 2018 (IBM#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
morstad authored and GitHub Enterprise committed Mar 6, 2018
1 parent 8922bc3 commit f09349a
Show file tree
Hide file tree
Showing 11 changed files with 118 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

The `IBM/charts` repository provides [helm](https://github.com/kubernetes/helm) charts for IBM and Third Party middleware.
The `IBM/charts` repository provides [helm](https://github.com/kubernetes/helm) charts provided by IBM.

The repository is organized as follows:

Expand Down
Binary file modified repo/stable/ibm-db2oltp-dev-1.1.3.tgz
Binary file not shown.
Binary file added repo/stable/ibm-swift-sample-1.1.0.tgz
Binary file not shown.
18 changes: 14 additions & 4 deletions repo/stable/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,12 @@ entries:
version: 0.1.0
ibm-db2oltp-dev:
- apiVersion: v1
created: 2018-02-23T05:44:39.155283959Z
created: 2018-03-06T04:30:17.465498122Z
description: IBM Db2 Developer-C Edition 11.1.2.2 iFix002
digest: bfba478778d0411826be5e2ab9d9fd3ac6c668aaed1fed726c958e0d8cf8ed12
digest: e9fed9b870f3931857be080ab108abe843bfeaa1c1ef93cc80457b6ec0a32ea4
engine: gotpl
home: https://www.ibm.com/analytics/us/en/db2/
icon: https://raw.githubusercontent.com/IBMPrivateCloud/charts/master/logo/db2logoicp-01.png
icon: https://raw.githubusercontent.com/IBM/charts/master/logo/db2logoicp-01.png
keywords:
- db2
- database
Expand Down Expand Up @@ -1628,6 +1628,16 @@ entries:
- https://raw.githubusercontent.com/IBM/charts/master/repo/stable/ibm-spectrum-symphony-1.0.0.tgz
version: 1.0.0
ibm-swift-sample:
- apiVersion: v1
created: 2018-03-06T04:30:17.466094845Z
description: A Swift sample application.
digest: a9f74a93036797d327ef1f5e248928222b814cc06eab9625321558e68c0a83d8
icon: https://raw.githubusercontent.com/IBM-Swift/kitura.io/master/assets/appIcon%402x.png
name: ibm-swift-sample
tillerVersion: '>=2.6.0'
urls:
- https://raw.githubusercontent.com/IBM/charts/master/repo/stable/ibm-swift-sample-1.1.0.tgz
version: 1.1.0
- apiVersion: v1
created: 2018-03-01T23:35:55.582793487Z
description: A Swift sample application.
Expand Down Expand Up @@ -1780,4 +1790,4 @@ entries:
urls:
- https://raw.githubusercontent.com/IBM/charts/master/repo/stable/ibm-websphere-liberty-1.0.0.tgz
version: 1.0.0
generated: 2018-03-01T23:35:55.581934718Z
generated: 2018-03-06T04:30:17.453678699Z
2 changes: 1 addition & 1 deletion stable/ibm-db2oltp-dev/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- database
- sql
home: https://www.ibm.com/analytics/us/en/db2/
icon: https://raw.githubusercontent.com/IBMPrivateCloud/charts/master/logo/db2logoicp-01.png
icon: https://raw.githubusercontent.com/IBM/charts/master/logo/db2logoicp-01.png
maintainers:
- name: IBM Analytics
sources:
Expand Down
7 changes: 7 additions & 0 deletions stable/ibm-swift-sample/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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
.git/
.gitignore
cv-tests/
2 changes: 1 addition & 1 deletion stable/ibm-swift-sample/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
description: A Swift sample application.
name: ibm-swift-sample
version: 1.0.0
version: 1.1.0
icon: https://raw.githubusercontent.com/IBM-Swift/kitura.io/master/assets/appIcon%402x.png
tillerVersion: ">=2.6.0"
44 changes: 44 additions & 0 deletions stable/ibm-swift-sample/templates/_affinity.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{{/* affinity - https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ */}}

{{- define "nodeaffinity" }}
#https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
{{- include "nodeAffinityRequiredDuringScheduling" . }}
preferredDuringSchedulingIgnoredDuringExecution:
{{- include "nodeAffinityPreferredDuringScheduling" . }}
{{- end }}

{{- define "nodeAffinityRequiredDuringScheduling" }}
#If you specify multiple nodeSelectorTerms associated with nodeAffinity types,
#then the pod can be scheduled onto a node if one of the nodeSelectorTerms is satisfied.
#
#If you specify multiple matchExpressions associated with nodeSelectorTerms,
#then the pod can be scheduled onto a node only if all matchExpressions can be satisfied.
#
#valid operators: In, NotIn, Exists, DoesNotExist, Gt, Lt
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
{{- range $key, $val := .Values.arch }}
{{- if gt ($val | trunc 1 | int) 0 }}
- {{ $key }}
{{- end }}
{{- end }}
{{- end }}

{{- define "nodeAffinityPreferredDuringScheduling" }}
{{- range $key, $val := .Values.arch }}
{{- if gt ($val | trunc 1 | int) 0 }}
- weight: {{ $val | trunc 1 | int }}
preference:
matchExpressions:
- key: beta.kubernetes.io/arch
operator: In
values:
- {{ $key }}
{{- end }}
{{- end }}
{{- end }}
8 changes: 8 additions & 0 deletions stable/ibm-swift-sample/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ spec:
labels:
app: "{{ .Chart.Name }}-selector"
spec:
affinity:
{{- include "nodeaffinity" . | indent 6 }}
containers:
- name: "{{ .Chart.Name }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -35,6 +37,12 @@ spec:
port: {{ .Values.service.servicePort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{ .Values.livenessProbe.periodSeconds}}
readinessProbe:
httpGet:
path: /health
port: {{ .Values.service.servicePort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{ .Values.livenessProbe.periodSeconds}}
resources:
requests:
cpu: "{{ .Values.image.resources.requests.cpu }}"
Expand Down
39 changes: 39 additions & 0 deletions stable/ibm-swift-sample/values-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ image:
type: "string"
immutable: true
required: true

service:
__metadata:
label: "Service configuration"
Expand Down Expand Up @@ -49,3 +50,41 @@ service:
type: "string"
immutable: true
required: true

arch:
__metadata:
label: "Architecture scheduling preferences"
amd64:
__metadata:
name: "amd64"
label: "amd64"
description: "Architecture preference for target worker node."
type: "string"
immutable: false
required: true
options:
- label: "0 - Do not use"
value: "0 - Do not use"
- label: "1 - Least preferred"
value: "1 - Least preferred"
- label: "2 - No Preference"
value: "2 - No Preference"
- label: "3 - Most preferred"
value: "3 - Most preferred"
s390x:
__metadata:
name: "s390x"
label: "s390x scheduling preference"
description: "Architecture preference for target worker node."
type: "string"
immutable: false
required: true
options:
- label: "0 - Do not use"
value: "0 - Do not use"
- label: "1 - Least preferred"
value: "1 - Least preferred"
- label: "2 - No Preference"
value: "2 - No Preference"
- label: "3 - Most preferred"
value: "3 - Most preferred"
3 changes: 3 additions & 0 deletions stable/ibm-swift-sample/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ hpa:
metrics:
cpu:
targetAverageUtilization: 100m
arch:
amd64: "3 - Most preferred"
s390x: "2 - No preference"

0 comments on commit f09349a

Please sign in to comment.