Skip to content

Commit

Permalink
[k8s-extension] Update extension CLI to v1.4.4 (Azure#6716)
Browse files Browse the repository at this point in the history
* Kubernetes Data Protection Extension CLI (AzureArcForKubernetes#173)

* First draft for Data Protection K8s backup extension (Pending internal review)

* Removing tracing

* Minor changes to improve azdev style

* Internal PR review feedback

Co-authored-by: Rishabh Raj <[email protected]>

* {AKS - ARC} fix: Update DCR creation to Clusters resource group instead of workspace (AzureArcForKubernetes#175)

* fix: Update DCR creation to Clusters resource group instead of workspace

* .

* .

* casing check

* Add self-signed cert to fix PR gate for azureml extension

* adding the api version to the operation definition in the client factory

* bump k8s-extension version to 1.3.6

* adding tests for all 4 extension types calls

* adding to test config file

* updating the api version for extension types to be the correct version expected by the service

* add test case for flux extension (AzureArcForKubernetes#184)

* bump k8s-extension version to 1.3.6

* bump k8s-extension version to 1.3.6

* adding upstream test for extension types

* updating history.rst

* [Dapr] Prompt user for existing Dapr installation during extension create (AzureArcForKubernetes#188)

* Add more validations and user prompt for existing installation scenario

Signed-off-by: Shubham Sharma <[email protected]>

* Add Dapr test'

Signed-off-by: Shubham Sharma <[email protected]>

* Handle stateful set

Signed-off-by: Shubham Sharma <[email protected]>

* Update default handling

Signed-off-by: Shubham Sharma <[email protected]>

* Fix HA handling

Signed-off-by: Shubham Sharma <[email protected]>

* Add placement service todo

Signed-off-by: Shubham Sharma <[email protected]>

* Add non-interactive mode

Signed-off-by: Shubham Sharma <[email protected]>

* Fix lint

Signed-off-by: Shubham Sharma <[email protected]>

* Update tests

Signed-off-by: Shubham Sharma <[email protected]>

* Reset configuration for StatefulSet during k8s upgrade

Signed-off-by: Shubham Sharma <[email protected]>

* Fix lint

Signed-off-by: Shubham Sharma <[email protected]>

* Retrigger tests

Signed-off-by: Shubham Sharma <[email protected]>

* Add changes to manage ha and placement params

Signed-off-by: Shubham Sharma <[email protected]>

* Update message

Signed-off-by: Shubham Sharma <[email protected]>

* nits

Signed-off-by: Shubham Sharma <[email protected]>

Signed-off-by: Shubham Sharma <[email protected]>

* bump k8s-extension version to 1.3.7

* [Dapr] Disable applying CRDs during a downgrade (AzureArcForKubernetes#193)

* Add logging

Signed-off-by: Shubham Sharma <[email protected]>

* Lint

Signed-off-by: Shubham Sharma <[email protected]>

* Update log

Signed-off-by: Shubham Sharma <[email protected]>

* Revert applyCrds when not downgrading

Signed-off-by: Shubham Sharma <[email protected]>

* Update logic for removing hooks.applyCrds

Signed-off-by: Shubham Sharma <[email protected]>

* Revert logic

Signed-off-by: Shubham Sharma <[email protected]>

* Handle explicit hooks configuration

Signed-off-by: Shubham Sharma <[email protected]>

* Update comment

Signed-off-by: Shubham Sharma <[email protected]>

* re-trigger pipeline

Signed-off-by: Shubham Sharma <[email protected]>

Signed-off-by: Shubham Sharma <[email protected]>

* ContainerInsights extension -  Add dataCollectionSettings configuration settings (AzureArcForKubernetes#200)

* data collection settings

* add support for dataCollectionSettings

* fix indention

* avoid duplicate use of json loads

* remove whitespaces

* fix pr feedback

* Upgrade Python version from 3.6 to 3.7 (AzureArcForKubernetes#203)

* Upgrade Python version from 3.6 to 3.10

Upgrade to 3.10 for the job that runs Wheel, PyLint, Flake, etc., since 3.6 is not supported anymore by hosted-agent-software.

* Upgrade to Python 3.10 from 3.6

Upgrade to 3.10 as 3.6 is not supported

* Switch PyLink to 1.9.4

Switch PyLink to 1.9.4 from 1.9.5, as 1.9.5 is not supported with Python 3.10

* Use Python 3.7 for Static Analysis

Use 3.7, as 3.10 does not support certain properties used by astpeephole.py that is used by Static Analysis tools

* Try unpinned version of PyLint

PyLint 1.9.5 doesn't work with Python 3.7.  So, trying to see if it automatically pulls the latest compatible version.

* Run pylint as a separate command

* Update pylintrc (AzureArcForKubernetes#204)

* Update pylintrc

* Update k8s-custom-pipelines.yml

* Disable PyLint (AzureArcForKubernetes#205)

Disable PyLint for now, as the new version has breaking changes and requires lot more fixes

* Disable PyLint on CI scripts

* Fixes for script errors

* Upgrade Static Analysis Python version

Upgrade the Python version for Static Analysis to 3.10, from 3.7, now that PyLint is disabled

* Try 3.9, as 3.10 has breaking changes for Flake8

* Remove version pinning for flake8

Try Python 3.10, without pinning flake8 to a version

* Update k8s-custom-pipelines.yml

* Use Python 3.8.1 & flake8 6.0.0

* Use Python 3.8 instead of 3.8.1

* Update k8s-custom-pipelines.yml

* Update .flake8

Update to reflect breaking change in flake8 6.0

* Update source_code_static_analysis.py

Scope static analysis tools to only k8s-extension module's source in our branch.

* Update k8s-custom-pipelines.yml

* Update k8s-custom-pipelines.yml

* Update k8s-custom-pipelines.yml

* Update pool name in StaticAnalysis

To mirror what is in main of azure-cli-extensions

* Update k8s-custom-pipelines.yml

* Fix indentation

* Update k8s-custom-pipelines.yml

* Update k8s-custom-pipelines.yml

* Revert changes

* Revert changes

* Revert changes to source_code_static_analysis.py

* Update source_code_static_analysis.py

* Revert changes

* Use Ubuntu 20.4 for BuiltTestPublish stage

* Switch to ubuntu-20.04 from latest

Co-authored-by: Rishik Hombal <[email protected]>

* [Dapr] Do not apply CRD hook when version is unchanged or auto-upgrade is being disabled (AzureArcForKubernetes#201)

* Update logic

Signed-off-by: Shubham Sharma <[email protected]>

* re-trigger pipeline

Signed-off-by: Shubham Sharma <[email protected]>

* re-trigger pipeline

Signed-off-by: Shubham Sharma <[email protected]>

Signed-off-by: Shubham Sharma <[email protected]>
Co-authored-by: NarayanThiru <[email protected]>

* add dummy key for amalogs as well

* bump k8s-extension version to 1.3.8

* Adding GA api version 2022-11-01 exposing isSystemExtension and support for plan info

* Seperate args for plan name, product and publisher

* updating cassete file

* updating HISTORY.rst

* Deprecate longer parameter names when accepting config settings (AzureArcForKubernetes#213)

Co-authored-by: deeksha345 <[email protected]>

* Release 1.3.9

* make containerinsights dcr name consistent (AzureArcForKubernetes#211)

Co-authored-by: Bavneet Singh <[email protected]>

* [Dapr] Update version comparison logic to use semver based comparison (AzureArcForKubernetes#219)

* Update semver comparison

Signed-off-by: Shubham Sharma <[email protected]>

* Add log

Signed-off-by: Shubham Sharma <[email protected]>

---------

Signed-off-by: Shubham Sharma <[email protected]>

* bump k8s-extension version to 1.4.0 (AzureArcForKubernetes#220)

* Revert "bump k8s-extension version to 1.4.0 (AzureArcForKubernetes#220)" (AzureArcForKubernetes#222)

This reverts commit ffb8a95.

* [k8s-extension] Update extension CLI to v1.4.0

* update release history

* fix openservice mesh cli testcase issue

* Zetia/fix ssl secret flag (AzureArcForKubernetes#224)

* fix bug: update operation doesn't respect sslSecret parameter

* fix bug: update operation doesn't respect sslSecret parameter

* fix typo

* feat: public preview support for microsoft.azuremonitor.containers.metrics in ARC clusters (managed prometheus) (AzureArcForKubernetes#227)

* remove redundant extension test (AzureArcForKubernetes#230)

* ci MSI default for arc cluster (AzureArcForKubernetes#231)

* bump k8s-extension version to 1.4.2

* ContainerInsights extension - Extend dataCollectionSettings config settings with streams field (AzureArcForKubernetes#232)

* extend containerinsights datacollection settings with streams field

* bug fix

* fix lint issues

* fix pr feedback

* fix pr feedback

* fix lint error

* Generated files for 2023-05-01-preview

* Support for 2023-05-01-preview

* Rename get to show

* Added ExtensionType api test cases

* ContainerInsights extension - Extend dataCollectionSettings with containerlogv2 (AzureArcForKubernetes#237)

* Fix for Liniting issues

* Fixing test cases

* comment failing test cases

* [k8s-extension] add kind tag in DCR creation (AzureArcForKubernetes#240)

* Use semver package (AzureArcForKubernetes#241)

Signed-off-by: Shubham Sharma <[email protected]>

* Reverting commented test cases

* Add support to skip provisioning of prerequisites for Azure Monitor K8s extensions (AzureArcForKubernetes#234)

* {ARC} fix: update logic to sanitize cluster name for dc* objects (AzureArcForKubernetes#242)

* Fix osm-arc version check for CI tags (AzureArcForKubernetes#244)

Signed-off-by: nshankar <[email protected]>
Co-authored-by: nshankar <[email protected]>

* New cassette file

* Remove unused propeties from table format

* bump k8s-extension version 1.4.3

* Add old commands back with deprecated status

* Fix linting issues

* Reverting changes for extensions type api

* change the location for test runs and arc clusters

* [k8s-extension] create new cli release - v1.4.3 (AzureArcForKubernetes#250)

* Revert "[k8s-extension] create new cli release - v1.4.3 (AzureArcForKubernetes#250)" (AzureArcForKubernetes#251)

This reverts commit 584815d.

* [k8s-extension] Update extension CLI to v1.4.3

* Drop relay sdk (AzureArcForKubernetes#254)

* update readme

* remove useless snippets (AzureArcForKubernetes#256)

* [k8s-extension] Update extension CLI to v1.4.4

---------

Signed-off-by: Shubham Sharma <[email protected]>
Signed-off-by: nshankar <[email protected]>
Co-authored-by: Rishabh Raj <[email protected]>
Co-authored-by: Rishabh Raj <[email protected]>
Co-authored-by: bragi92 <[email protected]>
Co-authored-by: Yue Yu <[email protected]>
Co-authored-by: Deeksha Sharma <[email protected]>
Co-authored-by: deeksha345 <[email protected]>
Co-authored-by: Shubham Sharma <[email protected]>
Co-authored-by: Bavneet Singh <[email protected]>
Co-authored-by: Ganga Mahesh Siddem <[email protected]>
Co-authored-by: NarayanThiru <[email protected]>
Co-authored-by: Rishik Hombal <[email protected]>
Co-authored-by: Amol Agrawal <[email protected]>
Co-authored-by: Amol Agrawal <[email protected]>
Co-authored-by: Arif Lakhani <[email protected]>
Co-authored-by: Arif-lakhani <[email protected]>
Co-authored-by: Zeliang Tian <[email protected]>
Co-authored-by: Long Wan <[email protected]>
Co-authored-by: ms-hujia <[email protected]>
Co-authored-by: Niranjan Shankar <[email protected]>
Co-authored-by: nshankar <[email protected]>
Co-authored-by: necusjz <[email protected]>
  • Loading branch information
22 people authored Sep 4, 2023
1 parent f5fe9d5 commit 7178af3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/k8s-extension/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Release History

1.4.4
++++++++++++++++++
* drop `azure-mgmt-relay` sdk dependency for Azure Monitor K8s extensions
* drop 'azure-mgmt-relay' sdk dependency

1.4.3
++++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion src/k8s-extension/azext_k8s_extension/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"azext.minCliCoreVersion": "2.50.0"
"azext.minCliCoreVersion": "2.51.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def Update(self, cmd, resource_group_name, cluster_name, auto_upgrade_minor_vers
cmd, subscription_id, resource_group_name, cluster_name, '', self.RELAY_HC_AUTH_NAME, True)
configuration_protected_settings[self.RELAY_SERVER_CONNECTION_STRING] = relay_connection_string
logger.info("Get relay connection string succeeded.")
except HttpOperationError as ex:
except azure.core.exceptions.HttpResponseError as ex:
if ex.response.status_code == 404:
raise ResourceNotFoundError("Relay server not found. "
"Check {} for more information.".format(self.TSG_LINK)) from ex
Expand Down Expand Up @@ -632,8 +632,7 @@ def _get_relay_connection_str(
"namespace_name": relay_namespace_name,
"hybrid_connection_name": hybrid_connection_name,
"name": auth_rule_name})

except HttpOperationError as e:
except azure.core.exceptions.HttpResponseError as e:
if e.response.status_code != 404 or get_key_only:
raise e
# create namespace
Expand Down

0 comments on commit 7178af3

Please sign in to comment.