-
Notifications
You must be signed in to change notification settings - Fork 50
Alicloud: enable customized image sharing #427
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't remove the comment...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't remove the comment...
controllers/provider-alicloud/pkg/controller/worker/machines.go
Outdated
Show resolved
Hide resolved
controllers/provider-alicloud/pkg/controller/worker/machines.go
Outdated
Show resolved
Hide resolved
controllers/provider-alicloud/pkg/controller/worker/machines.go
Outdated
Show resolved
Hide resolved
controllers/provider-alicloud/pkg/controller/worker/machines.go
Outdated
Show resolved
Hide resolved
controllers/provider-alicloud/pkg/controller/worker/machines.go
Outdated
Show resolved
Hide resolved
controllers/provider-alicloud/pkg/controller/worker/machines.go
Outdated
Show resolved
Hide resolved
Hi @rfranzke , I have moved the code to infrastructure controller control loop. Build and tests have passed as well. Could you please help review? Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it makes sense also to add docs about the image sharing/custom images in controllers/provider-alicloud/docs/usage-as-end-user.md
/controllers/provider-alicloud/docs/usage-as-operator.md
?
controllers/provider-alicloud/pkg/controller/infrastructure/actuator.go
Outdated
Show resolved
Hide resolved
Yes, good point indeed! Will add it too. |
One more question - shouldn't we preserve also the existing public image scenario somehow? Currently I try to pass a worker workers:
- autoScalerMax: 1
autoScalerMin: 1
machineImage:
name: coreos-alicloud
version: 2023.4.0
machineType: ecs.c5.large referencing the public CoreOS image. And the infra fails to reconcile because I didn't specified the |
Sorry for the late reply, I somehow missed your later comments... |
Hi @ialidzhikov @rfranzke , I have made some refactoring and added related documents for customized image sharing. Could you please do another round of review? Thanks a lot! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm now, very nice PR, thank you!
@ialidzhikov could you check again as well? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
@@ -0,0 +1,9 @@ | |||
apiVersion: v1 | |||
kind: Secret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If .Values.config.machineImageOwnerSecret is not set, let's not create the secret.
machineImageOwnerSecret: | ||
name: machine-image-owner | ||
accessKeyID: ZHVtbXk= | ||
accessKeySecret: ZHVtbXk= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mark them off. Otherwise, it will be used as an default value.
// MachineImages is the default list of machine images. | ||
MachineImages []config.MachineImage | ||
// MachineImageOwnerSecretRef is the secret reference which contains credential of AliCloud subaccount for customized images. | ||
MachineImageOwnerSecretRef corev1.SecretReference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As MachineImageOwnerSecretRef could be a nil, please define it as *corev1.SecretReference
@EmoinLanyu , could you please check @jia-jerry's comments? Thanks! |
I've changed them locally and have been testing it, but was occupied by other stuff so didn't create a PR. Anyway, thanks for the reminder, will do asap! :=) |
Hi @ialidzhikov , done, please check #483, thanks! |
What this PR does / why we need it:
Alicloud currently does not actively support latest operating system images. To reduce & avoid security risks, we are using customized images for Shoot creation. Customized images need to be first shared with Shoot's alicloud account before it can consume it.
This PR provide automatic sharing mechanism in extension-provider-alicloud.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: