Skip to content

Update AKS setup docs to use latest versions by default#332

Open
hossain-rayhan wants to merge 1 commit intodocumentdb:mainfrom
hossain-rayhan:rayhan/fix-aks-setup-doc
Open

Update AKS setup docs to use latest versions by default#332
hossain-rayhan wants to merge 1 commit intodocumentdb:mainfrom
hossain-rayhan:rayhan/fix-aks-setup-doc

Conversation

@hossain-rayhan
Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Rayhan Hossain <rhossain@microsoft.com>
Copilot AI review requested due to automatic review settings April 1, 2026 16:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the AKS playground cluster creation script defaults to align with newer Kubernetes/operator expectations and adjusts the operator installation flow/documentation around version pinning.

Changes:

  • Bumped the default AKS Kubernetes version to 1.35.0.
  • Removed hard-pinned operator chart/image version configuration and replaced it with commented “pin if desired” guidance.
  • Updated the Helm OCI install logging/messages and removed some explicit --set overrides from the operator install command.

Comment on lines 411 to 415
if [ $? -eq 0 ]; then
success "DocumentDB operator installed successfully from ${OPERATOR_GITHUB_ORG}/documentdb-operator:${OPERATOR_CHART_VERSION}"
success "DocumentDB operator installed successfully from oci://ghcr.io/${OPERATOR_GITHUB_ORG}/documentdb-operator"
else
error "Failed to install DocumentDB operator from OCI registry. Please verify:
error "Failed to install DocumentDB operator. Please verify:
- Your GitHub token has 'read:packages' scope
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if [ $? -eq 0 ] block won’t run on helm install failure because the script uses set -e at the top; the shell will exit immediately on a non-zero status. Wrap the install in if helm install ...; then ... else ... fi (or temporarily disable set -e around it) so the intended error message is actually emitted.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

@WentingWu666666 WentingWu666666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Helm chart at oci://ghcr.io/documentdb/documentdb-operator is publicly accessible I verified that helm pull oci://ghcr.io/documentdb/documentdb-operator --version 0.2.0 succeeds without any authentication.

This means the GITHUB_TOKEN / GITHUB_USERNAME requirement and the helm registry login step (lines 374-394) are unnecessary and add friction for users. They'd need to create a GitHub PAT with read:packages scope just to install a public chart.

Suggestion: remove the auth block entirely, or make it optional (e.g., only required when OPERATOR_GITHUB_ORG is overridden to a private fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants