Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This repository periodically synchronizes all official Kubeflow components from
| Istio | common/istio | [1.26.1](https://github.com/istio/istio/releases/tag/1.26.1) | 750m | 2364Mi | 0GB |
| Knative | common/knative/knative-serving <br /> common/knative/knative-eventing | [v1.16.2](https://github.com/knative/serving/releases/tag/knative-v1.16.2) <br /> [v1.16.4](https://github.com/knative/eventing/releases/tag/knative-v1.16.4) | 1450m | 1038Mi | 0GB |
| Cert Manager | common/cert-manager | [1.16.1](https://github.com/cert-manager/cert-manager/releases/tag/v1.16.1) | 3m | 128Mi | 0GB |
| Dex | common/dex | [2.41.1](https://github.com/dexidp/dex/releases/tag/v2.41.1) | 3m | 27Mi | 0GB |
| Dex | common/dex | [2.43.1](https://github.com/dexidp/dex/releases/tag/v2.43.1) | 3m | 27Mi | 0GB |
| OAuth2-Proxy | common/oauth2-proxy | [7.7.1](https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.7.1) | 3m | 27Mi | 0GB |
| **Total** | | | **4372m** | **12198Mi** | **65GB** |

Expand Down
2 changes: 1 addition & 1 deletion common/dex/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
spec:
serviceAccountName: dex
containers:
- image: ghcr.io/dexidp/dex:v2.41.1
- image: ghcr.io/dexidp/dex:v2.43.1
name: dex
command: ["dex", "serve", "/etc/dex/cfg/config.yaml"]
ports:
Expand All @@ -43,7 +43,7 @@
valueFrom:
fieldRef:
fieldPath: metadata.namespace
#readinessProbe:

Check warning on line 46 in common/dex/base/deployment.yaml

View workflow job for this annotation

GitHub Actions / format_YAML_files

46:9 [comments-indentation] comment not indented like content

Check warning on line 46 in common/dex/base/deployment.yaml

View workflow job for this annotation

GitHub Actions / format_YAML_files

46:10 [comments] missing starting space in comment
# httpGet:
# path: /healthz
# port: 5556
Expand Down
42 changes: 42 additions & 0 deletions scripts/synchronize-dex-manifests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
# This script helps to create a PR to update the Dex manifests

SCRIPT_DIRECTORY=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source "${SCRIPT_DIRECTORY}/library.sh"

setup_error_handling

COMPONENT_NAME="dex"
DEX_RELEASE="v2.43.1" # Must be a release
BRANCH_NAME=${BRANCH_NAME:=synchronize-${COMPONENT_NAME}-manifests-${DEX_RELEASE?}}

MANIFESTS_DIRECTORY=$(dirname $SCRIPT_DIRECTORY)
DESTINATION_DIRECTORY=$MANIFESTS_DIRECTORY/common/${COMPONENT_NAME}

create_branch "$BRANCH_NAME"

check_uncommitted_changes

echo "Updating Dex image tag to ${DEX_RELEASE}..."

if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i "" "s|ghcr.io/dexidp/dex:v[0-9.]*|ghcr.io/dexidp/dex:${DEX_RELEASE}|g" \
$DESTINATION_DIRECTORY/base/deployment.yaml
else
sed -i "s|ghcr.io/dexidp/dex:v[0-9.]*|ghcr.io/dexidp/dex:${DEX_RELEASE}|g" \
$DESTINATION_DIRECTORY/base/deployment.yaml
fi

if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i "" '/| Dex | common\/dex |/s|\[.*\](https://github.com/dexidp/dex/releases/tag/v.*)|['"${DEX_RELEASE#v}"'](https://github.com/dexidp/dex/releases/tag/'"${DEX_RELEASE}"')|' \
${MANIFESTS_DIRECTORY}/README.md
else
sed -i '/| Dex | common\/dex |/s|\[.*\](https://github.com/dexidp/dex/releases/tag/v.*)|['"${DEX_RELEASE#v}"'](https://github.com/dexidp/dex/releases/tag/'"${DEX_RELEASE}"')|' \
${MANIFESTS_DIRECTORY}/README.md
fi

commit_changes "$MANIFESTS_DIRECTORY" "Update common/dex manifests to ${DEX_RELEASE}" \
"$DESTINATION_DIRECTORY" \
"README.md"

echo "Synchronization completed successfully."
Loading