StarlingX OIDC Authentication App
Go to file
Joaci Morais 2930b099f2 Fix oidc-auth-apps upgrade.
This commit fixes two issues:

1 - In meta_data.yml the BASE_SRCREV was pointing to a stx.8.0
commit, not allowing the secret-observer helm-chart version to be
automatically detected.

2 - During upgrade the new dex pod was stuck in a pending status and
never been allow to be scheduled due a podAntiAffinity rule.

This rule was ineffective because of a missing label issue fixed by
this commit:
https://review.opendev.org/c/starlingx/oidc-auth-armada-app/+/913336
The bug being fixed here is a side effect of the above commit.

The dex deployment object rollingUpdate strategy was 25% on both
maxUnavailable and maxSurge which for one replica would result in 0,
not allowing any pod to be scheduled. The maxUnavailable of 1, allows
the old pod to be terminated before being replaced by the new one.

was:

strategy:
  rollingUpdate:
    maxUnavailable: 25%
    maxSurge: 25%
  type: RollingUpdate

now:

strategy:
  rollingUpdate:
    maxUnavailable: 1
    maxSurge: 1
  type: RollingUpdate

The strategy is similar to the what is done by cert-manager pods
and this will allow the pod to be scheduled.

Test Plan:

PASS: Deploy a stx.8.0 AIO-SX, build the OIDC tarball bumped-up,
perform the oidc-auth-app upgrade process manually. Check
if oidc-auth-app was successfully upgraded and if its pods are
running.

PASS: Deploy a stx.8.0 AIO-SX, configure the OIDC app, built an
ISO for stx.9.0, perform a full upgrade process from stx.8.0 to
stx.9.0 Check if oidc-auth-app was successfully upgraded.

Closes-Bug: 2067929

Change-Id: If432644e2781ad1dcbdf2b364203637b0329893c
Signed-off-by: Joaci Morais <joaci.demorais@windriver.com>
2024-06-04 13:53:38 -03:00
helm-charts Fix oidc-auth-apps upgrade. 2024-06-04 13:53:38 -03:00
oidc-auth-tools Add default parameters to oidc-auth command 2023-07-28 13:36:18 -03:00
python3-k8sapp-oidc Application versioning based on build release 2023-12-28 18:39:47 -03:00
stx-oidc-auth-helm Fix oidc-auth-apps upgrade. 2024-06-04 13:53:38 -03:00
stx-oidc-client/debian reduce size of stx-oidc-client image 2022-10-03 17:35:36 -04:00
.gitignore Update app Zuul Check Jobs. 2023-12-18 09:08:54 -07:00
.gitreview Added .gitreview 2019-12-06 17:46:31 +00:00
.zuul.yaml Correct trigger for metadata job in .zuul.yaml 2024-02-06 09:44:27 -07:00
bindep.txt Add python3.9 support 2021-09-09 10:48:57 -04:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:10:36 -04:00
debian_iso_image.inc oidc-auth-armada-app: update debian_iso_image.inc 2022-11-22 14:16:12 +08:00
debian_pkg_dirs Auto-increment chart versions 2024-03-05 13:45:03 -07:00
debian_stable_docker_images.inc move oidc-client docker image to Debian 2022-09-29 13:31:18 +00:00
requirements.txt Add Dex as a platform managed application 2020-01-07 14:13:34 -05:00
test-requirements.txt Update app Zuul Check Jobs. 2023-12-18 09:08:54 -07:00
tox.ini Update app Zuul Check Jobs. 2023-12-18 09:08:54 -07:00