Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[k8s-configuration] Release v1.2.0 with Flux v2 Support #4100

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
828f9d3
Create pull.yml
jonathan-innis Mar 10, 2021
1436bfc
Update pull.yml
jonathan-innis Mar 10, 2021
6cffd96
Update azure-pipelines.yml
jonathan-innis Mar 10, 2021
db0f4bd
Initial commit of k8s-extension
jonathan-innis Mar 10, 2021
4293a80
Update CODEOWNERS
jonathan-innis Mar 10, 2021
1b39860
Update azure-pipelines.yml
jonathan-innis Mar 10, 2021
eba804c
Create pull.yml
jonathan-innis Mar 10, 2021
acc9c7e
Update pull.yml
jonathan-innis Mar 10, 2021
6507446
Update pull.yml
jonathan-innis Mar 10, 2021
a0761d9
Update pipelines file
jonathan-innis Mar 10, 2021
4c4ea52
Update k8s-configuration name
jonathan-innis Mar 10, 2021
007e0d3
Update test script params
jonathan-innis Mar 10, 2021
f461b7f
Update pipeline file
jonathan-innis Mar 10, 2021
556f545
Remove codeowners
jonathan-innis Mar 10, 2021
3e2ea64
Update pipelines file
jonathan-innis Mar 10, 2021
9bbc0e4
Update CODEOWNERS
jonathan-innis Mar 10, 2021
8d46cbc
Update private preview pipelines
jonathan-innis Mar 11, 2021
6c3ba41
Remove open service mesh from public release
jonathan-innis Mar 11, 2021
a98e996
Merge pull request #6 from Azure/master
jonathan-innis Mar 11, 2021
43c6796
Update pipeline files
jonathan-innis Mar 11, 2021
c88876f
Update custom pipelines files
jonathan-innis Mar 11, 2021
ea8aa7d
Add publish step to k8s-configuration
jonathan-innis Mar 11, 2021
f9874d6
Update pipeline to publish extension
jonathan-innis Mar 11, 2021
009a83e
Update public extension pipeline
jonathan-innis Mar 12, 2021
8e058c5
Change condition variable
jonathan-innis Mar 12, 2021
664009c
Update pipeline naming
jonathan-innis Mar 12, 2021
dea40c1
Add version to public preview/private preview
jonathan-innis Mar 12, 2021
f56d86a
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 12, 2021
69269e0
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
jonathan-innis Mar 12, 2021
e81e010
Update pipelines
jonathan-innis Mar 12, 2021
9621a48
Add different testing based on private branch
jonathan-innis Mar 12, 2021
862a035
Add annotations to extension model
jonathan-innis Mar 12, 2021
e1c3d12
Update k8s-custom-pipelines.yml
jonathan-innis Mar 15, 2021
3e309bf
Update SDKs with Updated Swagger Spec for 2020-07-01-preview (#13)
jonathan-innis Mar 16, 2021
1df2ef5
remove py2 bdist support
jonathan-innis Mar 16, 2021
054a903
Add custom table formatting
jonathan-innis Mar 16, 2021
b298252
Remove unnecessary files
jonathan-innis Mar 16, 2021
afb4046
Fix style issues
jonathan-innis Mar 16, 2021
49b7eac
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 17, 2021
a13304d
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 17, 2021
f8ebe35
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 17, 2021
aa078b0
Merge branch 'release' into k8s-extension/public
jonathan-innis Mar 17, 2021
21dff06
Fix branch based on comments
jonathan-innis Mar 17, 2021
93919f2
Update identity piece manually
jonathan-innis Mar 17, 2021
a88127a
Merge branch 'k8s-extension/public' of github.com:AzureArcForKubernet…
jonathan-innis Mar 17, 2021
7e40b3a
Don't handle defaults at the CLI level
jonathan-innis Mar 17, 2021
2bf32ac
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 17, 2021
483202c
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 17, 2021
d1befa8
Remove defaults from CLI client
jonathan-innis Mar 17, 2021
c7bd93f
Merge branch 'release' into k8s-extension/public
jonathan-innis Mar 17, 2021
076827c
Check null target namespace with namespace scope
jonathan-innis Mar 17, 2021
550eea1
Update style
jonathan-innis Mar 17, 2021
1a17f1b
Merge branch 'k8s-extension/public' of github.com:AzureArcForKubernet…
jonathan-innis Mar 17, 2021
fbab3be
Add cassandra operator and location to model
jonathan-innis Mar 17, 2021
a70b73d
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 18, 2021
9aade9f
Stage Public Version of k8s-extension 0.2.0 for official release (#15)
jonathan-innis Mar 18, 2021
7f79cfb
Remove custom pipelines file
jonathan-innis Mar 18, 2021
1337996
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 19, 2021
34be63a
Merge branch 'release' into k8s-configuration
jonathan-innis Mar 19, 2021
f6e68e9
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 20, 2021
113fde8
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 20, 2021
f57af40
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 20, 2021
e75f329
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 23, 2021
5668c54
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 23, 2021
a47b63a
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 23, 2021
6c4e0e6
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 24, 2021
9ec9b44
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 24, 2021
bb88024
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 24, 2021
9f06b49
Update extension description, remove private const
jonathan-innis Mar 24, 2021
a063594
Merge branch 'release' into k8s-extension/public
jonathan-innis Mar 24, 2021
eb4c58b
Update pipeline file
jonathan-innis Mar 24, 2021
20d809c
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 25, 2021
ff96aee
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 25, 2021
9524cda
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 25, 2021
16489b8
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 26, 2021
ddefae2
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 26, 2021
ee395f2
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 26, 2021
fbd331c
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 27, 2021
12dab3d
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 27, 2021
9c86220
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 27, 2021
89828c5
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Mar 31, 2021
bd90584
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 31, 2021
bed066c
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Mar 31, 2021
8011213
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 1, 2021
491c1e5
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Apr 1, 2021
4e93618
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Apr 1, 2021
cfd267d
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 2, 2021
b9d1778
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Apr 2, 2021
01867ad
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Apr 2, 2021
7a07d52
Disable check ref docs
jonathan-innis Apr 2, 2021
3290f6e
Disable refs docs
jonathan-innis Apr 2, 2021
22c8e92
Update to include better create warning logs and remove update contex…
jonathan-innis Apr 2, 2021
12212f1
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 3, 2021
010e9a8
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Apr 3, 2021
4b623b0
Merge branch 'release' of https://github.com/AzureArcForKubernetes/az…
Apr 3, 2021
6bbf418
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 11, 2021
c012f56
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 11, 2021
df82dd8
Fix k8s-extension conflict with private version
jonathan-innis Apr 14, 2021
0228851
Fix style errors
jonathan-innis Apr 14, 2021
db4c5b2
Fix filename
jonathan-innis Apr 14, 2021
f1287fe
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 18, 2021
2971d69
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 18, 2021
5077192
add customization for microsoft.azureml.kubernetes (#23)
yuyue9284 Apr 23, 2021
be9e7c3
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 25, 2021
dc0c178
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
Apr 25, 2021
3d15151
Add E2E Testing from Separate branch into internal code (#26)
jonathan-innis Apr 26, 2021
1ded405
Inference CLI validation for Scoring FE (#24)
liakaz Apr 27, 2021
53303d5
legal warning added (#27)
liakaz Apr 27, 2021
3370264
Remove deprecated method logger.warn
jonathan-innis Apr 27, 2021
4c66aef
Update k8s-custom-pipelines.yml for Azure Pipelines
jonathan-innis Apr 27, 2021
e8651f2
Update k8s-custom-pipelines.yml for Azure Pipelines
jonathan-innis Apr 27, 2021
9de1e4e
Add Azure Defender to E2E testing (#28)
jonathan-innis Apr 28, 2021
9c0317d
Add configuration testing
jonathan-innis Apr 28, 2021
4c21482
Fix pipeline failures
jonathan-innis Apr 28, 2021
3e2fb15
Make test script more intuitive
jonathan-innis Apr 29, 2021
4dca64d
Remove parameter from testing
jonathan-innis Apr 29, 2021
4fac0ec
Merge
jonathan-innis Apr 29, 2021
8bc4b2f
Add some debug
jonathan-innis Apr 29, 2021
c93e958
Fix wrong location for k8s config whl
jonathan-innis Apr 29, 2021
56e4115
Merge branch 'k8s-extension/public' into k8s-configuration
jonathan-innis Apr 29, 2021
7adb3b5
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
jonathan-innis May 3, 2021
fa1e31a
Fix pip install upgrade issue
jonathan-innis May 6, 2021
201c63c
Fix pip install upgrade issue
jonathan-innis May 6, 2021
3a14e45
Merge branch 'k8s-configuration' of github.com:AzureArcForKubernetes/…
jonathan-innis May 6, 2021
1e127fb
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Jun 28, 2021
c3f7628
Add Check for Provider Registration and Refactor (#19)
jonathan-innis Jun 28, 2021
391f592
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Jul 19, 2021
1bc3aa4
Testing increase to ubuntu-latest
jonathan-innis Jul 19, 2021
fd97374
Update k8s-configuration Models to Track2 (#63)
jonathan-innis Jul 20, 2021
e3c3e7a
Merge branch 'Azure:main' into k8s-configuration
jonathan-innis Jul 20, 2021
6b2f7dc
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Aug 27, 2021
3b5c2eb
Upgrade helm operator chart version (#75)
jonathan-innis Aug 31, 2021
dd1d1fb
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Sep 7, 2021
37bb7c0
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Sep 20, 2021
e542474
Pin helm version
jonathan-innis Sep 20, 2021
65d9554
Bump version
jonathan-innis Oct 12, 2021
8f622c6
Migrate pipeline (#90)
jonathan-innis Nov 9, 2021
d011762
Disable updates on configuration tests (#89)
jonathan-innis Nov 10, 2021
5482780
Release k8s-configuration v1.2.0 for Flux v2 Public Preview (#86)
jonathan-innis Nov 12, 2021
77d9b19
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Nov 12, 2021
0866167
Remove unneeded files
jonathan-innis Nov 12, 2021
68a7458
Fix filepath suggestion from CLI team
jonathan-innis Nov 15, 2021
65a3927
Fix unneeded file edit
jonathan-innis Nov 15, 2021
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
5 changes: 5 additions & 0 deletions src/k8s-configuration/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

1.2.0
++++++++++++++++++
* Add Flux v2 support with command subgroups
* Add update support to Flux v2 resources

1.1.1
++++++++++++++++++
* Enable helm-operator chart version 1.4.0
Expand Down
60 changes: 53 additions & 7 deletions src/k8s-configuration/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,57 @@ az extension add --name k8s-configuration
```

### Included Features
#### Kubernetes Configuration:
Kubernetes SourceControl Configuration: [more info](https://docs.microsoft.com/en-us/azure/kubernetessconfiguration/)\

#### Flux Configuration (Flux v2):
Flux Configuration (Flux v1) Configuration: [more info](https://docs.microsoft.com/en-us/azure/kubernetessconfiguration/)\
*Examples:*

##### Create a Flux Configuration (Flux v2)
```
az k8s-configuration create flux \
--resource-group groupName \
--cluster-name clusterName \
--cluster-type clusterType \
--name configurationName \
--namespace configurationNamespace \
--scope cluster
--kind git \
--url https://github.com/Azure/arc-k8s-demo \
--branch main \
--kustomization name=my-kustomization
```

##### Get a Flux Configuration (Flux v2)
```
az k8s-configuration flux show \
--resource-group groupName \
--cluster-name clusterName \
--cluster-type clusterType \
--name configurationName
```

##### Delete a Flux Configuration (Flux v2)
```
az k8s-configuration flux delete \
--resource-group groupName \
--cluster-name clusterName \
--cluster-type clusterType \
--name configurationName
```

##### List all Flux Configuration (Flux v2) on a cluster
```
az k8s-configuration flux list \
--resource-group groupName \
--cluster-name clusterName \
--cluster-type clusterType
```

#### Source Control Configuration (Flux v1):
Source Control Configuration (Flux v1) Configuration: [more info](https://docs.microsoft.com/en-us/azure/kubernetessconfiguration/)\
*Examples:*

##### Create a KubernetesConfiguration
##### Create a Source Control Configuration (Flux v1)
```
az k8s-configuration create \
--resource-group groupName \
Expand All @@ -31,7 +77,7 @@ az k8s-configuration create \
--helm-operator-params chartParameters
```

##### Get a KubernetesConfiguration
##### Get a Source Control Configuration (Flux v1)
```
az k8s-configuration show \
--resource-group groupName \
Expand All @@ -40,7 +86,7 @@ az k8s-configuration show \
--name configurationName
```

##### Delete a KubernetesConfiguration
##### Delete a Source Control Configuration (Flux v1)
```
az k8s-configuration delete \
--resource-group groupName \
Expand All @@ -49,7 +95,7 @@ az k8s-configuration delete \
--name configurationName
```

##### Update a KubernetesConfiguration
##### Update a Source Control Configuration (Flux v1)
```
az k8s-configuration create \
--resource-group groupName \
Expand All @@ -63,7 +109,7 @@ az k8s-configuration create \
--helm-operator-params chartParameters
```

##### List all KubernetesConfigurations of a cluster
##### List all Source Control Configuration (Flux v1) on a cluster
```
az k8s-configuration list \
--resource-group groupName \
Expand Down
8 changes: 4 additions & 4 deletions src/k8s-configuration/azext_k8s_configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class K8sConfigurationCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_k8s_configuration._client_factory import cf_k8s_configuration
from azext_k8s_configuration._client_factory import k8s_configuration_client
k8s_configuration_custom = CliCommandType(
operations_tmpl='azext_k8s_configuration.custom#{}',
client_factory=cf_k8s_configuration)
super(K8sConfigurationCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=k8s_configuration_custom)
client_factory=k8s_configuration_client)
super().__init__(cli_ctx=cli_ctx,
custom_command_type=k8s_configuration_custom)

def load_command_table(self, args):
from azext_k8s_configuration.commands import load_command_table
Expand Down
38 changes: 33 additions & 5 deletions src/k8s-configuration/azext_k8s_configuration/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,45 @@
# --------------------------------------------------------------------------------------------

from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
from . import consts


def cf_k8s_configuration(cli_ctx, *_):
def k8s_configuration_client(cli_ctx, **kwargs):
from azext_k8s_configuration.vendored_sdks import SourceControlConfigurationClient
return get_mgmt_service_client(cli_ctx, SourceControlConfigurationClient)
return get_mgmt_service_client(cli_ctx, SourceControlConfigurationClient, **kwargs)


def cf_k8s_configuration_operation(cli_ctx, _):
return cf_k8s_configuration(cli_ctx).source_control_configurations
def k8s_configuration_fluxconfig_client(cli_ctx, *_):
return k8s_configuration_client(cli_ctx, api_version=consts.FLUXCONFIG_API_VERSION).flux_configurations


def _resource_providers_client(cli_ctx):
def k8s_configuration_sourcecontrol_client(cli_ctx, *_):
return k8s_configuration_client(
cli_ctx,
api_version=consts.SOURCE_CONTROL_API_VERSION
).source_control_configurations


def k8s_configuration_extension_client(cli_ctx, *_):
return k8s_configuration_client(cli_ctx, api_version=consts.EXTENSION_API_VERSION).extensions


def resource_providers_client(cli_ctx):
from azure.mgmt.resource import ResourceManagementClient
return get_mgmt_service_client(cli_ctx, ResourceManagementClient).providers


def cf_resource_groups(cli_ctx, subscription_id=None):
return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES,
subscription_id=subscription_id).resource_groups


def cf_resources(cli_ctx, subscription_id=None):
return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES,
subscription_id=subscription_id).resources


def cf_log_analytics(cli_ctx, subscription_id=None):
from azure.mgmt.loganalytics import LogAnalyticsManagementClient # pylint: disable=no-name-in-module
return get_mgmt_service_client(cli_ctx, LogAnalyticsManagementClient, subscription_id=subscription_id)
25 changes: 0 additions & 25 deletions src/k8s-configuration/azext_k8s_configuration/_format.py

This file was deleted.

140 changes: 123 additions & 17 deletions src/k8s-configuration/azext_k8s_configuration/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@

from knack.help_files import helps # pylint: disable=unused-import


helps['k8s-configuration'] = """
type: group
short-summary: Commands to manage Kubernetes configuration.
short-summary: Commands to manage resources from Microsoft.KubernetesConfiguration.
"""

helps['k8s-configuration create'] = """
type: command
short-summary: Create a Kubernetes configuration.
short-summary: Create a Flux v1 Kubernetes configuration (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux create").
examples:
- name: Create a Kubernetes configuration
- name: Create a Flux v1 Kubernetes configuration
text: |-
az k8s-configuration create --resource-group MyResourceGroup --cluster-name MyClusterName \\
--cluster-type connectedClusters --name MyGitConfig --operator-instance-name OperatorInst01 \\
Expand All @@ -29,42 +28,149 @@

helps['k8s-configuration list'] = """
type: command
short-summary: List Kubernetes configurations.
short-summary: List Flux v1 Kubernetes configurations (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux list").
examples:
- name: List all Kubernetes configurations of a cluster
- name: List Flux v1 Kubernetes configuration
text: |-
az k8s-configuration list --resource-group MyResourceGroup --cluster-name MyClusterName \\
--cluster-type connectedClusters
"""

helps['k8s-configuration delete'] = """
type: command
short-summary: Delete a Kubernetes configuration.
short-summary: Delete a Flux v1 Kubernetes configuration (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux delete").
examples:
- name: Delete a Kubernetes configuration
- name: Delete a Flux v1 Kubernetes configuration
text: |-
az k8s-configuration delete --resource-group MyResourceGroup --cluster-name MyClusterName \\
--cluster-type connectedClusters --name MyConfigurationName
"""

helps['k8s-configuration show'] = """
type: command
short-summary: Show details of a Kubernetes configuration.
short-summary: Show details of a Flux v1 Kubernetes configuration (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux show").
examples:
- name: Show a Kubernetes configuration
- name: Show details of a Flux v1 Kubernetes configuration
text: |-
az k8s-configuration show --resource-group MyResourceGroup --cluster-name MyClusterName \\
--cluster-type connectedClusters --name MyConfigurationName
"""

helps['k8s-configuration update'] = """
helps['k8s-configuration flux'] = """
type: group
short-summary: Commands to manage Flux v2 Kubernetes configurations.
"""

helps['k8s-configuration flux create'] = """
type: command
short-summary: Create a Kubernetes Flux v2 Configuration.
examples:
- name: Create a Kubernetes v2 Flux Configuration
text: |-
az k8s-configuration flux create --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters \\
--name myconfig --scope cluster --namespace my-namespace \\
--kind git --url https://github.com/Azure/arc-k8s-demo \\
--branch main --kustomization name=my-kustomization
"""

helps['k8s-configuration flux update'] = """
type: command
short-summary: Update a Kubernetes Flux v2 Configuration.
examples:
- name: Update a Kubernetes v2 Flux Configuration
text: |-
az k8s-configuration flux update --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--url https://github.com/Azure/arc-k8s-demo --branch main \\
--kustomization name=my-kustomization path=./my/new-path
"""

helps['k8s-configuration flux list'] = """
type: command
short-summary: List Kubernetes Flux v2 Configurations.
examples:
- name: List all Kubernetes Flux v2 Configurations on a cluster
text: |-
az k8s-configuration flux list --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters
"""

helps['k8s-configuration flux show'] = """
type: command
short-summary: Show a Kubernetes Flux v2 Configuration.
examples:
- name: Show details of a Kubernetes Flux v2 Configuration
text: |-
az k8s-configuration flux show --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig
"""

helps['k8s-configuration flux delete'] = """
type: command
short-summary: Delete a Kubernetes Flux v2 Configuration.
examples:
- name: Delete an existing Kubernetes Flux v2 Configuration
text: |-
az k8s-configuration flux delete --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig
"""

helps['k8s-configuration flux kustomization'] = """
type: group
short-summary: Commands to manage Kustomizations associated with Flux v2 Kubernetes configurations.
"""

helps['k8s-configuration flux kustomization create'] = """
type: command
short-summary: Create a Kustomization associated with a Kubernetes Flux v2 Configuration.
examples:
- name: Create a Kustomization associated wiht a Kubernetes v2 Flux Configuration
text: |-
az k8s-configuration flux kustomization create --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--kustomization-name my-kustomization-2 --path ./my/path --prune --force
"""

helps['k8s-configuration flux kustomization update'] = """
type: command
short-summary: Update a Kustomization associated with a Kubernetes Flux v2 Configuration.
examples:
- name: Update a Kustomization associated with a Kubernetes v2 Flux Configuration
text: |-
az k8s-configuration flux kustomization update --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--kustomization-name my-kustomization --path ./my/new-path --prune --force
"""

helps['k8s-configuration flux kustomization list'] = """
type: command
short-summary: List Kustomizations associated with a Kubernetes Flux v2 Configuration.
examples:
- name: List all Kustomizations associated with a Kubernetes Flux v2 Configuration on a cluster
text: |-
az k8s-configuration flux kustomization list --resource-group my-resource-group \\
--cluster-name mycluster --name myconfig --cluster-type connectedClusters
"""

helps['k8s-configuration flux kustomization show'] = """
type: command
short-summary: Show a Kustomization associated with a Flux v2 Configuration.
examples:
- name: Show details of a Kustomization associated with a Kubernetes Flux v2 Configuration
text: |-
az k8s-configuration flux kustomization show --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--kustomization-name my-kustomization
"""

helps['k8s-configuration flux kustomization delete'] = """
type: command
short-summary: Update a Kubernetes configuration.
short-summary: Delete a Kustomization associated with a Kubernetes Flux v2 Configuration.
examples:
- name: Update an existing Kubernetes configuration
- name: Delete an existing Kustomization associated with a Kubernetes Flux v2 Configuration
text: |-
az k8s-configuration update --resource-group MyResourceGroup --cluster-name MyClusterName \\
--cluster-type connectedClusters --name MyConfigurationName --enable-helm-operator \\
--repository-url git://github.com/fluxHowTo/flux-get-started --operator-params "'--git-readonly'" \\
--helm-operator-chart-version 1.4.0 --helm-operator-params '--set helm.versions=v3'
az k8s-configuration flux kustomization delete --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--kustomization-name my-kustomization
"""
Loading