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.5.0 with updated api-version to 2022-03-01 for GA #4587

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 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
fb0beab
Make dependencies none when not specified
jonathan-innis Mar 29, 2022
68a9411
Remove unneeded files
jonathan-innis Mar 30, 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
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.5.0
++++++++++++++++++
* Update models to 2022-03-01 for GA
* Remove unneeded warning for HTTPS urls

1.4.1
++++++++++++++++++
* [BREAKING CHANGE] `--access-key` changed to `--bucket-access-key`
Expand Down
18 changes: 7 additions & 11 deletions src/k8s-configuration/azext_k8s_configuration/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

import argparse
from azure.cli.core.azclierror import InvalidArgumentValueError
from .vendored_sdks.v2022_01_01_preview.models import (
from .vendored_sdks.v2022_03_01.models import (
KustomizationDefinition,
KustomizationPatchDefinition,
DependsOnDefinition,
)
from .validators import validate_kustomization
from . import consts
Expand All @@ -18,26 +17,27 @@

class InternalKustomizationDefinition(KustomizationDefinition):
def __init__(self, **kwargs):
self.name = kwargs.get("name", "")
super().__init__(**kwargs)

# This call is after the call to super() to override the init method
# making the self.name field null
self.name = kwargs.get("name", "")

def to_KustomizationDefinition(self):
k_dict = dict(self.__dict__)
del k_dict["name"]
del k_dict["additional_properties"]
return KustomizationDefinition(**k_dict)

def to_KustomizationPatchDefinition(self):
k_dict = dict(self.__dict__)
del k_dict["name"]
del k_dict["additional_properties"]
return KustomizationPatchDefinition(**k_dict)


class KustomizationAddAction(argparse._AppendAction):
def __call__(self, parser, namespace, values, option_string=None):
validate_kustomization(values)
model_dependency = []
dependencies = None
sync_interval = None
retry_interval = None
timeout = None
Expand All @@ -47,10 +47,6 @@ def __call__(self, parser, namespace, values, option_string=None):
key, value = item.split("=", 1)
if key in consts.DEPENDENCY_KEYS:
dependencies = parse_dependencies(value)
for dep in dependencies:
model_dependency.append(
DependsOnDefinition(kustomization_name=dep)
)
elif key in consts.SYNC_INTERVAL_KEYS:
sync_interval = value
elif key in consts.RETRY_INTERVAL_KEYS:
Expand All @@ -67,7 +63,7 @@ def __call__(self, parser, namespace, values, option_string=None):
parser,
namespace,
InternalKustomizationDefinition(
depends_on=model_dependency,
depends_on=dependencies,
sync_interval_in_seconds=parse_duration(sync_interval),
retry_interval_in_seconds=parse_duration(retry_interval),
timeout_in_seconds=parse_duration(timeout),
Expand Down
3 changes: 0 additions & 3 deletions src/k8s-configuration/azext_k8s_configuration/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def load_command_table(self, _):
"k8s-configuration flux",
k8s_configuration_fluxconfig_client,
custom_command_type=flux_configuration_custom_type,
is_preview=True,
) as g:
g.custom_command("create", "create_config", supports_no_wait=True)
g.custom_command("update", "update_config", supports_no_wait=True)
Expand All @@ -52,7 +51,6 @@ def load_command_table(self, _):
"k8s-configuration flux kustomization",
k8s_configuration_fluxconfig_client,
custom_command_type=flux_configuration_custom_type,
is_preview=True,
) as g:
g.custom_command("create", "create_kustomization", supports_no_wait=True)
g.custom_command("update", "update_kustomization", supports_no_wait=True)
Expand All @@ -72,7 +70,6 @@ def load_command_table(self, _):
"k8s-configuration flux deployed-object",
k8s_configuration_fluxconfig_client,
custom_command_type=flux_configuration_custom_type,
is_preview=True,
) as g:
g.custom_command(
"list",
Expand Down
8 changes: 3 additions & 5 deletions src/k8s-configuration/azext_k8s_configuration/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

# API VERSIONS -----------------------------------------

SOURCE_CONTROL_API_VERSION = "2021-03-01"
FLUXCONFIG_API_VERSION = "2022-01-01-preview"
EXTENSION_API_VERSION = "2021-09-01"
SOURCE_CONTROL_API_VERSION = "2022-03-01"
FLUXCONFIG_API_VERSION = "2022-03-01"
EXTENSION_API_VERSION = "2022-03-01"

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

Expand Down Expand Up @@ -161,8 +161,6 @@
FLUX_EXTENSION_CREATING_ERROR = "Error! 'Microsoft.Flux' extension is currently installing on the cluster. Unable to proceed with Flux v2 configuration install."
FLUX_EXTENSION_CREATING_HELP = "Try again in a few minutes when the 'Microsoft.Flux' extension installation has completed."

HTTP_URL_NO_AUTH_WARNING = "Warning! https url is being used without https auth params, ensure the repository url provided is not a private repo"

NO_KUSTOMIZATIONS_WARNING = "Warning! No kustomizations were specified for this configuration. A kustomization will be generated with the default name 'kustomization-1'."
DEFAULT_KUSTOMIZATION_NAME = "kustomization-1"

Expand Down
10 changes: 3 additions & 7 deletions src/k8s-configuration/azext_k8s_configuration/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def __get_fluxconfig_table_row(result):
("scope", result["scope"]),
("provisioningState", result["provisioningState"]),
("complianceState", result["complianceState"]),
("lastSourceUpdatedAt", result["lastSourceUpdatedAt"]),
("statusUpdatedAt", result["statusUpdatedAt"]),
("sourceUpdatedAt", result["sourceUpdatedAt"]),
]
)

Expand All @@ -58,16 +59,11 @@ def fluxconfig_kustomization_show_table_format(results):


def __get_fluxconfig_kustomization_table_row(key, value):
deps = []
for dep in value.get("dependsOn") or []:
if dep.get("kustomizationName"):
deps.append(dep["kustomizationName"])

return OrderedDict(
[
("name", key),
("path", value["path"]),
("dependsOn", ",".join(deps)),
("dependsOn", ",".join(value.get("dependsOn") or [])),
("syncInterval", format_duration(value["syncIntervalInSeconds"])),
("timeout", format_duration(value["timeoutInSeconds"])),
("prune", value["prune"]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@
validate_url_with_params,
)
from .. import consts
from ..vendored_sdks.v2022_01_01_preview.models import (
from ..vendored_sdks.v2022_03_01.models import (
FluxConfiguration,
FluxConfigurationPatch,
GitRepositoryDefinition,
GitRepositoryPatchDefinition,
BucketDefinition,
BucketPatchDefinition,
RepositoryRefDefinition,
KustomizationDefinition,
KustomizationPatchDefinition,
DependsOnDefinition,
SourceKindType,
)
from ..vendored_sdks.v2021_09_01.models import Extension, Identity
from ..vendored_sdks.v2022_03_01.models import Extension, Identity

logger = get_logger(__name__)

Expand Down Expand Up @@ -384,17 +384,10 @@ def create_kustomization(
consts.CREATE_KUSTOMIZATION_EXIST_HELP,
)

# Add the dependencies in their model to the kustomization
model_dependencies = None
if dependencies:
model_dependencies = []
for dep in parse_dependencies(dependencies):
model_dependencies.append(DependsOnDefinition(kustomization_name=dep))

kustomization = {
kustomization_name: KustomizationPatchDefinition(
path=path,
depends_on=model_dependencies,
depends_on=parse_dependencies(dependencies),
timeout_in_seconds=parse_duration(timeout),
sync_interval_in_seconds=parse_duration(sync_interval),
retry_interval_in_seconds=parse_duration(retry_interval),
Expand Down Expand Up @@ -451,17 +444,10 @@ def update_kustomization(
consts.UPDATE_KUSTOMIZATION_NO_EXIST_HELP,
)

# Add the dependencies in their model to the kustomization
model_dependencies = None
if dependencies:
model_dependencies = []
for dep in parse_dependencies(dependencies):
model_dependencies.append(DependsOnDefinition(kustomization_name=dep))

kustomization = {
kustomization_name: KustomizationPatchDefinition(
path=path,
depends_on=model_dependencies,
depends_on=parse_dependencies(dependencies),
timeout_in_seconds=parse_duration(timeout),
sync_interval_in_seconds=parse_duration(sync_interval),
retry_interval_in_seconds=parse_duration(retry_interval),
Expand Down Expand Up @@ -1015,7 +1001,7 @@ def generate_patch_update_func(self, swapped_kind):

def bucket_patch_updater(config):
if any(kwarg is not None for kwarg in self.kwargs.values()):
config.bucket = BucketDefinition(
config.bucket = BucketPatchDefinition(
url=self.url,
bucket_name=self.bucket_name,
timeout_in_seconds=parse_duration(self.timeout),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)
from .. import consts

from ..vendored_sdks.v2021_03_01.models import (
from ..vendored_sdks.v2022_03_01.models import (
HelmOperatorProperties,
SourceControlConfiguration,
)
Expand Down
Loading