Skip to content

Conversation

@jhmadhav
Copy link
Collaborator


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az connectedk8s

  • Before deleting each CRD, it now checks for the addonmanager.kubernetes.io/mode: Reconcile label
  • If the label is present, the CRD is skipped to prevent extensionconfig from going into terminating state
  • Also fixed a pre-existing bug where communicate() was called twice on a Popen object

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

labels = crd_json.get("metadata", {}).get("labels", {})
if labels.get("addonmanager.kubernetes.io/mode") == "Reconcile":
# Skip deletion for CRDs managed by AKS addon manager
continue

Choose a reason for hiding this comment

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

do we want to completely skip the delete? i assumed its selective skip for those with the label

for crds in consts.CRD_FOR_FORCE_DELETE:
full_crds = f"{crds}.{cloud_based_domain}"

# Check if CRD has the addonmanager.kubernetes.io/mode: Reconcile label

Choose a reason for hiding this comment

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

once tested , can you please add snapshots of the state of CRDs to the pr description as well for reference.

Copy link

@atchutbarli atchutbarli left a comment

Choose a reason for hiding this comment

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

can you please add the test results as well

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.

3 participants