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] Update configuration CLI to v1.7.0 to support Azure Blob Storage #5472

Merged
merged 173 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from 172 commits
Commits
Show all changes
173 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
5f7930d
Edit history with breaking change
jonathan-innis Jan 18, 2022
9e78a18
Prepare GA FluxConfiguration 2022-03-01 (#103)
jonathan-innis Mar 24, 2022
1483d5d
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Mar 28, 2022
bad3392
Update changelog
jonathan-innis Mar 28, 2022
a7b2003
Make dependencies none when not specified
jonathan-innis Mar 29, 2022
3282fcc
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
jonathan-innis Apr 8, 2022
2f387db
Use KustomizationPatch instead of Kustomization for internal rep (#117)
jonathan-innis Apr 13, 2022
8b94ec4
Only test k8s-configuration in azdev test (#140)
jonathan-innis Jul 8, 2022
06eb7f8
modify codeowners for k8s-configuration (#157)
bavneetsingh16 Aug 2, 2022
234a32c
[k8s-configuration] add support for provisionedClusters (#146)
bavneetsingh16 Aug 2, 2022
959583b
Merge branch 'main' of github.com:Azure/azure-cli-extensions into rel…
Aug 2, 2022
58e17d9
bump k8s-configuration version to 1.6.0
Aug 2, 2022
79ae67e
Merge pull request #158 from AzureArcForKubernetes/release-1.6.0
bavneetsingh16 Aug 2, 2022
f12d195
CI fix[k8s-configuration]: deprecate python version 3.6 use in testin…
bavneetsingh16 Aug 19, 2022
6599cb9
Support Azure blob as source (#156)
summerhasama Sep 29, 2022
4c5238c
bump k8s-configuration version to 1.7.0
Oct 19, 2022
8035a18
Merge pull request #192 from AzureArcForKubernetes/release-1.7.0
bavneetsingh16 Oct 19, 2022
55eb07a
[k8s-configuration] Update configuration CLI to v1.7.0 to support Azu…
Oct 19, 2022
401a592
change help message
Oct 20, 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
4 changes: 4 additions & 0 deletions src/k8s-configuration/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.7.0
++++++++++++++++++
* Add support for Azure Blob Storage

1.6.0
++++++++++++++++++
* Add support for provisionedClusters
Expand Down
15 changes: 14 additions & 1 deletion src/k8s-configuration/azext_k8s_configuration/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@
--kind bucket --url https://bucket-provider.minio.io \\
--bucket-name my-bucket --kustomization name=my-kustomization \\
--bucket-access-key my-access-key --bucket-secret-key my-secret-key
- name: Create a Kubernetes v2 Flux Configuration with Azure Blob Source Kind
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 azblob --url https://mystorageaccount.blob.core.windows.net \\
--container-name my-container --kustomization name=my-kustomization \\
--account-key my-account-key
"""

helps[
Expand All @@ -108,11 +116,16 @@
--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
- name: Update a Flux v2 Kubernetes 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
- name: Update a Flux v2 Kubernetes configuration with Azure Blob Source Kind with another container name
text: |-
az k8s-configuration flux update --resource-group my-resource-group \\
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
--container-name other-container
"""

helps[
Expand Down
58 changes: 57 additions & 1 deletion src/k8s-configuration/azext_k8s_configuration/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def load_arguments(self, _):
)
c.argument(
"kind",
arg_type=get_enum_type([consts.GIT, consts.BUCKET]),
arg_type=get_enum_type([consts.GIT, consts.BUCKET, consts.AZBLOB]),
help="Source kind to reconcile",
)
c.argument(
Expand Down Expand Up @@ -178,6 +178,62 @@ def load_arguments(self, _):
help="Define kustomizations to sync sources with parameters ['name', 'path', 'depends_on', 'timeout', 'sync_interval', 'retry_interval', 'prune', 'force']",
nargs="+",
)
c.argument(
"container_name",
help="Name of the Azure Blob Storage container to sync",
)
c.argument(
"sp_client_id",
arg_group="Azure Blob Auth",
options_list=["--sp-client-id", "--service-principal-client-id"],
help="The client ID for authenticating a service principal with Azure Blob, required for this authentication method",
)
c.argument(
"sp_tenant_id",
arg_group="Azure Blob Auth",
options_list=["--sp-tenant-id", "--service-principal-tenant-id"],
help="The tenant ID for authenticating a service principal with Azure Blob, required for this authentication method",
)
c.argument(
"sp_client_secret",
arg_group="Azure Blob Auth",
options_list=["--sp-client-secret", "--service-principal-client-secret"],
help="The client secret for authenticating a service principal with Azure Blob",
)
c.argument(
"sp_client_cert",
arg_group="Azure Blob Auth",
options_list=["--sp-client-cert", "--service-principal-client-certificate"],
help="The Base64 encoded client certificate for authenticating a service principal with Azure Blob",
)
c.argument(
"sp_client_cert_password",
arg_group="Azure Blob Auth",
options_list=["--sp-cert-password", "--service-principal-client-certificate-password"],
help="The password for the client certificate used to authenticate a service principal with Azure Blob",
)
c.argument(
"sp_client_cert_send_chain",
arg_group="Azure Blob Auth",
options_list=["--sp-cert-send-chain", "--service-principal-client-certificate-send-chain"],
help="Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the client certificate",
bavneetsingh16 marked this conversation as resolved.
Show resolved Hide resolved
)
c.argument(
"account_key",
arg_group="Azure Blob Auth",
help="The Azure Blob Shared Key for authentication ",
)
c.argument(
"sas_token",
arg_group="Azure Blob Auth",
help="The Azure Blob SAS Token for authentication ",
)
c.argument(
"mi_client_id",
arg_group="Azure Blob Auth",
options_list=["--mi-client-id", "--managed-identity-client-id"],
help="The client ID of the managed identity for authentication with Azure Blob",
)

with self.argument_context("k8s-configuration flux update") as c:
c.argument(
Expand Down
51 changes: 48 additions & 3 deletions src/k8s-configuration/azext_k8s_configuration/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# API VERSIONS -----------------------------------------

SOURCE_CONTROL_API_VERSION = "2022-03-01"
FLUXCONFIG_API_VERSION = "2022-03-01"
EXTENSION_API_VERSION = "2022-03-01"
FLUXCONFIG_API_VERSION = "2022-07-01"
EXTENSION_API_VERSION = "2022-07-01"

# ERROR/HELP TEXT DEFINITIONS -----------------------------------------

Expand Down Expand Up @@ -41,7 +41,30 @@
REQUIRED_BUCKET_VALUES_MISSING_HELP = (
"Provide either both of '--secret-key' and '--access-key' or '--local-auth-ref'"
)

REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_VALUES_MISSING_ERROR = (
"Error! Service principal is invalid because it is missing value(s)"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_VALUES_MISSING_HELP = (
"Provide '--sp-client-id', '--sp-tenant-id', and either '--sp-client-secret' or '--sp-client-cert'"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_AUTH_ERROR = (
"Error! Too many authentication methods provided for service principal"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_AUTH_HELP = (
"Provide either '--sp-client-secret' or '--sp-client-cert'"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_CERT_VALUES_MISSING_ERROR = (
"Error! Service principal certificate password is invalid"
)
REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_CERT_VALUES_MISSING_HELP = (
"Provide '--sp-client-id', '--sp-tenant-id', and '--sp-client-cert' with your '--sp-cert-password"
)
REQUIRED_AZURE_BLOB_AUTH_ERROR = (
"Error! Too many authentication methods provided for Azure Blob"
)
REQUIRED_AZURE_BLOB_AUTH_HELP = (
"Specify one of the available authentication methods from the list: '--local-auth-ref', '--account-key', '--sas-token', '--mi-client-id', or service principal with '--sp-client-id', '--sp-tenant-id', and either '--sp-client-secret' or '--sp-client-cert'"
)
EXTRA_VALUES_PROVIDED_ERROR = (
"Error! Invalid properties [{}] were specified for kind '{}'"
)
Expand Down Expand Up @@ -213,6 +236,24 @@
"local_auth_ref",
}

AZUREBLOB_REQUIRED_PARAMS = {"url", "container_name"}
AZUREBLOB_VALID_PARAMS = {
"url",
"container_name",
"sync_interval",
"timeout",
"account_key",
"local_auth_ref",
"sp_tenant_id",
"sp_client_id",
"sp_client_cert",
"sp_client_cert_password",
"sp_client_secret",
"sp_client_cert_send_chain",
"sas_token",
"mi_client_id",
}

DEPENDENCY_KEYS = ["dependencies", "depends_on", "dependsOn", "depends"]
SYNC_INTERVAL_KEYS = ["interval", "sync_interval", "syncInterval"]
RETRY_INTERVAL_KEYS = ["retryInterval", "retry_interval"]
Expand All @@ -222,12 +263,16 @@
VALID_DURATION_REGEX = r"((?P<hours>\d+?)h)?((?P<minutes>\d+?)m)?((?P<seconds>\d+?)s)?"
VALID_GIT_URL_REGEX = r"^(((http|https|ssh)://)|(git@))"
VALID_BUCKET_URL_REGEX = r"^(((http|https)://))"
VALID_AZUREBLOB_URL_REGEX = r"^(((http|https)://))"

VALID_KUBERNETES_DNS_SUBDOMAIN_NAME_REGEX = r"^[a-z0-9]([\.\-a-z0-9]*[a-z0-9])?$"
VALID_KUBERNETES_DNS_NAME_REGEX = r"^[a-z0-9]([\-a-z0-9]*[a-z0-9])?$"

GIT = "git"
BUCKET = "bucket"
BUCKET_CAPS = "Bucket"
AZBLOB = "azblob"
AZURE_BLOB = "AzureBlob"
GIT_REPOSITORY = "GitRepository"

CONNECTED_CLUSTER_TYPE = "connectedclusters"
Expand Down
Loading