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.4.1 with fixed help text #4328

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 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
9051a75
Fix filepath suggestion from CLI team
jonathan-innis Nov 15, 2021
1ba6a35
Fix unneeded file edit
jonathan-innis Nov 15, 2021
1258fb4
Add a Deployed Object List to the Flux CLI (#91)
jonathan-innis Nov 29, 2021
0892f52
Bump version
jonathan-innis Nov 29, 2021
9a953a2
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Nov 29, 2021
5f7e128
Update deployed object format (#93)
jonathan-innis Nov 30, 2021
235065f
Fix help text for consistency
jonathan-innis Nov 30, 2021
8aedb4e
Enable Bucket Support in the CLI (#92)
jonathan-innis Dec 9, 2021
e6f28f7
Bucket Testing for E2E Testing (#96)
jonathan-innis Dec 10, 2021
603dec5
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Jan 3, 2022
c07cf2f
Bump version
jonathan-innis Jan 3, 2022
77a958d
Fix help text and parameter naming for bucket (#100)
jonathan-innis Jan 15, 2022
8e772b2
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Jan 15, 2022
d64797b
Fix default help text for parameters (#101)
jonathan-innis Jan 17, 2022
c142161
Remove unneeded files
jonathan-innis Jan 17, 2022
c3b4e4c
Edit history with breaking change
jonathan-innis Jan 18, 2022
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
7 changes: 7 additions & 0 deletions src/k8s-configuration/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

1.4.1
++++++++++++++++++
* [BREAKING CHANGE] `--access-key` changed to `--bucket-access-key`
* [BREAKING CHANGE] `--secret-key` changed to `--bucket-secret-key`
* [BREAKING CHANGE] `--insecure` changed to `--bucket-insecure`
* Fix help text for bucket parameters

1.4.0
++++++++++++++++++
* Add `--kind bucket` for creation of S3 bucket as source for fluxConfigurations
Expand Down
7 changes: 6 additions & 1 deletion src/k8s-configuration/azext_k8s_configuration/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
--name myconfig --scope cluster --namespace my-namespace \\
--kind bucket --url https://bucket-provider.minio.io \\
--bucket-name my-bucket --kustomization name=my-kustomization \\
--access-key my-access-key --secret-key my-secret-key
--bucket-access-key my-access-key --bucket-secret-key my-secret-key
"""

helps[
Expand All @@ -108,6 +108,11 @@
--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
- name: Update a Flux v2 Kubernetse configuration with Bucket Source Kind to connect insecurely
text: |-
az k8s-configuration flux update --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--bucket-insecure
"""

helps[
Expand Down
12 changes: 6 additions & 6 deletions src/k8s-configuration/azext_k8s_configuration/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,21 @@ def load_arguments(self, _):
help="File path to known_hosts contents containing public SSH keys required to access private Git instances",
)
c.argument(
"access_key",
"bucket_access_key",
arg_group="Bucket Auth",
help="Access Key Id used to authenticate with the bucket url",
help="Access Key ID used to authenticate with the bucket",
)
c.argument(
"secret_key",
"bucket_secret_key",
arg_group="Bucket Auth",
help="Secret Key used to authenticate with the bucket url",
help="Secret Key used to authenticate with the bucket",
)
c.argument(
"bucket_name",
help="Name of the S3 bucket at the given url to connect to",
help="Name of the S3 bucket to sync",
)
c.argument(
"insecure",
"bucket_insecure",
arg_type=get_three_state_flag(),
help="Communicate with a bucket without TLS",
)
jonathan-innis marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
6 changes: 3 additions & 3 deletions src/k8s-configuration/azext_k8s_configuration/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@
"bucket_name",
"sync_interval",
"timeout",
"access_key",
"secret_key",
"insecure",
"bucket_access_key",
"bucket_secret_key",
"bucket_insecure",
"local_auth_ref",
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def create_config(
https_ca_cert_file=None,
known_hosts=None,
known_hosts_file=None,
access_key=None,
secret_key=None,
insecure=False,
bucket_access_key=None,
bucket_secret_key=None,
bucket_insecure=False,
suspend=False,
kustomization=None,
no_wait=False,
Expand Down Expand Up @@ -175,9 +175,9 @@ def create_config(
https_ca_cert_file=https_ca_cert_file,
known_hosts=known_hosts,
known_hosts_file=known_hosts_file,
access_key=access_key,
secret_key=secret_key,
insecure=insecure,
bucket_access_key=bucket_access_key,
bucket_secret_key=bucket_secret_key,
bucket_insecure=bucket_insecure,
)

# This update func is a generated update function that modifies
Expand All @@ -193,7 +193,7 @@ def create_config(

# Get the protected settings and validate the private key value
protected_settings = get_protected_settings(
ssh_private_key, ssh_private_key_file, https_key, secret_key
ssh_private_key, ssh_private_key_file, https_key, bucket_secret_key
)
if protected_settings and consts.SSH_PRIVATE_KEY_KEY in protected_settings:
validate_private_key(protected_settings["sshPrivateKey"])
Expand Down Expand Up @@ -256,9 +256,9 @@ def update_config(
https_ca_cert_file=None,
known_hosts=None,
known_hosts_file=None,
access_key=None,
secret_key=None,
insecure=None,
bucket_access_key=None,
bucket_secret_key=None,
bucket_insecure=None,
suspend=None,
kustomization=None,
no_wait=False,
Expand Down Expand Up @@ -293,9 +293,9 @@ def update_config(
https_ca_cert_file=https_ca_cert_file,
known_hosts=known_hosts,
known_hosts_file=known_hosts_file,
access_key=access_key,
secret_key=secret_key,
insecure=insecure,
bucket_access_key=bucket_access_key,
bucket_secret_key=bucket_secret_key,
bucket_insecure=bucket_insecure,
)

# This update func is a generated update function that modifies
Expand Down Expand Up @@ -324,7 +324,7 @@ def update_config(

# Get the protected settings and validate the private key value
protected_settings = get_protected_settings(
ssh_private_key, ssh_private_key_file, https_key, secret_key
ssh_private_key, ssh_private_key_file, https_key, bucket_secret_key
)
if protected_settings and consts.SSH_PRIVATE_KEY_KEY in protected_settings:
validate_private_key(protected_settings["sshPrivateKey"])
Expand Down Expand Up @@ -968,15 +968,17 @@ def __init__(self, **kwargs):
self.bucket_name = kwargs.get("bucket_name")
self.timeout = kwargs.get("timeout")
self.sync_interval = kwargs.get("sync_interval")
self.access_key = kwargs.get("access_key")
self.secret_key = kwargs.get("secret_key")
self.bucket_access_key = kwargs.get("bucket_access_key")
self.bucket_secret_key = kwargs.get("bucket_secret_key")
self.local_auth_ref = kwargs.get("local_auth_ref")
self.insecure = kwargs.get("insecure")
self.bucket_insecure = kwargs.get("bucket_insecure")

def validate(self):
super().validate_required_params(**self.kwargs)
validate_bucket_url(self.url)
if not ((self.access_key and self.secret_key) or self.local_auth_ref):
if not (
(self.bucket_access_key and self.bucket_secret_key) or self.local_auth_ref
):
raise RequiredArgumentMissingError(
consts.REQUIRED_BUCKET_VALUES_MISSING_ERROR,
consts.REQUIRED_BUCKET_VALUES_MISSING_HELP,
Expand All @@ -995,9 +997,9 @@ def bucket_updater(config):
bucket_name=self.bucket_name,
timeout_in_seconds=parse_duration(self.timeout),
sync_interval_in_seconds=parse_duration(self.sync_interval),
access_key=self.access_key,
access_key=self.bucket_access_key,
local_auth_ref=self.local_auth_ref,
insecure=self.insecure,
insecure=self.bucket_insecure,
)
config.source_kind = SourceKindType.BUCKET
return config
Expand All @@ -1018,9 +1020,9 @@ def bucket_patch_updater(config):
bucket_name=self.bucket_name,
timeout_in_seconds=parse_duration(self.timeout),
sync_interval_in_seconds=parse_duration(self.sync_interval),
access_key=self.access_key,
access_key=self.bucket_access_key,
local_auth_ref=self.local_auth_ref,
insecure=self.insecure,
insecure=self.bucket_insecure,
)
if swapped_kind:
self.validate()
Expand All @@ -1032,7 +1034,7 @@ def bucket_patch_updater(config):


def get_protected_settings(
ssh_private_key, ssh_private_key_file, https_key, secret_key
ssh_private_key, ssh_private_key_file, https_key, bucket_secret_key
):
protected_settings = {}
ssh_private_key_data = get_data_from_key_or_file(
Expand All @@ -1046,8 +1048,8 @@ def get_protected_settings(
if https_key:
protected_settings[consts.HTTPS_KEY_KEY] = to_base64(https_key)

if secret_key:
protected_settings[consts.BUCKET_SECRET_KEY_KEY] = to_base64(secret_key)
if bucket_secret_key:
protected_settings[consts.BUCKET_SECRET_KEY_KEY] = to_base64(bucket_secret_key)

# Return the protected settings dict if there are any values there
return protected_settings if len(protected_settings) > 0 else None
42 changes: 22 additions & 20 deletions src/k8s-configuration/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,49 @@

from codecs import open
from setuptools import setup, find_packages

try:
from azure_bdist_wheel import cmdclass
except ImportError:
from distutils import log as logger

logger.warn("Wheel is not available, disabling bdist_wheel hook")

VERSION = '1.4.0'
VERSION = "1.4.1"

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: MIT License',
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
]

DEPENDENCIES = ["pycryptodome~=3.9.8"]

with open('README.rst', 'r', encoding='utf-8') as f:
with open("README.rst", "r", encoding="utf-8") as f:
README = f.read()
with open('HISTORY.rst', 'r', encoding='utf-8') as f:
with open("HISTORY.rst", "r", encoding="utf-8") as f:
HISTORY = f.read()

setup(
name='k8s-configuration',
name="k8s-configuration",
version=VERSION,
description='Microsoft Azure Command-Line Tools K8s-configuration Extension',
description="Microsoft Azure Command-Line Tools K8s-configuration Extension",
# TODO: Update author and email, if applicable
author='Microsoft Corporation',
author_email='[email protected]',
url='https://github.com/Azure/azure-cli-extensions/tree/master/src/k8s-configuration',
long_description=README + '\n\n' + HISTORY,
license='MIT',
author="Microsoft Corporation",
author_email="[email protected]",
url="https://github.com/Azure/azure-cli-extensions/tree/master/src/k8s-configuration",
long_description=README + "\n\n" + HISTORY,
license="MIT",
classifiers=CLASSIFIERS,
packages=find_packages(),
install_requires=DEPENDENCIES,
package_data={'azext_k8s_configuration': ['azext_metadata.json']},
package_data={"azext_k8s_configuration": ["azext_metadata.json"]},
)