Skip to content

Commit

Permalink
Release 0.6.7 (#173)
Browse files Browse the repository at this point in the history
* Closes issue #171. Changing api version based on k8s version

* Closes #171. Update to documentation for changed probe details

* Closes #170 and #171.  Updated release notes and chart definition
  • Loading branch information
tsigle authored Jul 28, 2021
1 parent c65ef92 commit 99ad472
Show file tree
Hide file tree
Showing 8 changed files with 146 additions and 87 deletions.
6 changes: 3 additions & 3 deletions charts/ping-devops/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
apiVersion: v2
name: ping-devops
########################################################################
# 0.6.6 - Refer to http://helm.pingidentity.com/release-notes/#release-066
# 0.6.7 - Refer to http://helm.pingidentity.com/release-notes/#release-067
########################################################################
version: 0.6.6
description: Ping Identity product chart with integration
version: 0.6.7
description: Ping Identity helm charts - 07/28/21
type: application
home: https://helm.pingidentity.com/
icon: https://helm.pingidentity.com/img/logos/ping.png
Expand Down
4 changes: 4 additions & 0 deletions charts/ping-devops/templates/pinglib/_ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
{{- $fullName := include "pinglib.fullname" . -}}
{{- $defaultTlsSecret := $v.ingress.defaultTlsSecret -}}
{{- $defaultDomain := $v.ingress.defaultDomain -}}
{{- if semverCompare ">1.18" $top.Capabilities.KubeVersion.Version }}
apiVersion: networking.k8s.io/v1
{{- else }}
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:
{{ include "pinglib.metadata.labels" . | nindent 2 }}
Expand Down
19 changes: 1 addition & 18 deletions charts/ping-devops/templates/pinglib/_workload.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,7 @@ spec:
{{- end }}

{{/*--------------------- Probes ---------------------*/}}
{{- with $v.probes }}
livenessProbe:
exec:
command: [ {{ .liveness.command }} ]
initialDelaySeconds: {{ .liveness.initialDelaySeconds }}
periodSeconds: {{ .liveness.periodSeconds }}
timeoutSeconds: {{ .liveness.timeoutSeconds }}
successThreshold: {{ .liveness.successThreshold }}
failureThreshold: {{ .liveness.failureThreshold }}
readinessProbe:
exec:
command: [ {{ .readiness.command }} ]
initialDelaySeconds: {{ .readiness.initialDelaySeconds }}
periodSeconds: {{ .readiness.periodSeconds }}
timeoutSeconds: {{ .readiness.timeoutSeconds }}
successThreshold: {{ .readiness.successThreshold }}
failureThreshold: {{ .readiness.failureThreshold }}
{{- end }}
{{- toYaml $v.container.probes | nindent 8 }}

{{/*--------------------- Resources ------------------*/}}
resources: {{ toYaml $v.container.resources | nindent 10 }}
Expand Down
84 changes: 49 additions & 35 deletions charts/ping-devops/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,29 +314,39 @@ global:
# exec:
# command: ["/bin/sh", "-c", "echo Start Complete > /tmp/message"]

############################################################
# Probes
#
# Probes have a number of fields that you can use to more precisely control the
# behavior of liveness and readiness checks.
#
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
############################################################
probes:
liveness:
command: /opt/liveness.sh
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
readiness:
command: /opt/liveness.sh
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
############################################################
# Probes
#
# Probes have a number of fields that you can use to more precisely control the
# behavior of liveness and readiness checks.
#
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
############################################################
probes:
livenessProbe:
exec:
command:
- /opt/liveness.sh
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
readinessProbe:
exec:
command:
- /opt/readiness.sh
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
startupProbe:
exec:
command:
- /opt/liveness.sh
periodSeconds: 10
failureThreshold: 90

############################################################
# Licensing
Expand Down Expand Up @@ -422,11 +432,13 @@ ldap-sdk-tools:
container:
command: "tail -f /dev/null"

probes:
liveness:
command: echo
readiness:
command: echo
probes:
livenessProbe:
exec:
command: echo
readinessProbe:
exec:
command: echo

#############################################################
# pingfederate-admin values
Expand Down Expand Up @@ -611,6 +623,15 @@ pingdirectory:
memory: 8Gi

terminationGracePeriodSeconds: 300

probes:
readinessProbe:
periodSeconds: 30
failureThreshold: 4
startupProbe:
periodSeconds: 10
failureThreshold: 180

# Example affinity for typical directory installation
#
# affinity:
Expand Down Expand Up @@ -682,13 +703,6 @@ pingdirectory:
hosts:
- pingdirectory._defaultDomain_

probes:
liveness:
failureThreshold: 120
readiness:
periodSeconds: 30
failureThreshold: 4


#############################################################
# pingdirectoryproxy values
Expand Down
33 changes: 33 additions & 0 deletions docs/config/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,37 @@ global:
affinity: {}
terminationGracePeriodSeconds: 30
securityContext: {}
probes:
livenessProbe:
exec:
command:
- /opt/liveness.sh
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
readinessProbe:
exec:
command:
- /opt/readiness.sh
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
startupProbe:
exec:
command:
- /opt/liveness.sh
periodSeconds: 10
failureThreshold: 90
```
## Probes Configuration
[Kubernetes Probes resources](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
to be added to workloads (i.e. Deployments/StatefulSets).
The definition of parameters can be found at
[probe definitions](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes)
30 changes: 0 additions & 30 deletions docs/config/probes.md

This file was deleted.

56 changes: 56 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
# Release Notes

## Release 0.6.7 (July 28, 2021)

* [Issue #170](https://github.com/pingidentity/helm-charts/issues/170) Update Ingress resource kind

If kubernetes vesion is >1.18, setting the ingress apiVersion to `v1`. Otherwise, current
default will be used `v1beta1`.

* [Issue #171](https://github.com/pingidentity/helm-charts/issues/171) Reevaluate Lifecycle probes

Adding startupProble as well as re-organizing how the probes are defined, allowing the deployer to use standard k8s probe definitions out of the box.

1. Moving the probes section under global.container
2. Changing names: (liveness --> livenessProbe, readiness --> readinessProbe)
3. Adding startupProbe

The new default looks like:

```yaml
############################################################
# Probes
#
# Probes have a number of fields that you can use to more precisely control the
# behavior of liveness and readiness checks.
#
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
############################################################
probes:
livenessProbe:
exec:
command:
- /opt/liveness.sh
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
readinessProbe:
exec:
command:
- /opt/readiness.sh
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
startupProbe:
exec:
command:
- /opt/liveness.sh
periodSeconds: 10
failureThreshold: 90
```
!!! note "Breaking Changes"
This is a breaking change if anyone has overriding probes in their own values file. The fix is simply move their definition of their probes to live under global.container or the (productName).container, as well as adding "Probe" to the definition.
## Release 0.6.6 (July 7, 2021)
* [Issue #160](https://github.com/pingidentity/helm-charts/issues/160) Change default image tag to 2106
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ nav:
- Image: "config/image.md"
- Ingress: "config/ingress.md"
- License: "config/license.md"
- Probes: "config/probes.md"
- PrivateCerts: "config/private-cert.md"
- Service: "config/service.md"
- Vault: "config/vault.md"
Expand Down

0 comments on commit 99ad472

Please sign in to comment.