adamant-kite-43734
09/03/2024, 7:08 PMwooden-engine-7388
09/04/2024, 3:14 AMmachine-pools
to inspect the other pools. Or you could make use of the pool-id
to create/maintain your own copies of the data entered and use that to set your own defaults.gifted-breakfast-73755
09/04/2024, 3:42 AMgifted-breakfast-73755
09/04/2024, 9:07 PM+
button to create a second machine pool the data()
function gets called in my extension's pkg/triton/machine-config/triton.vue
file and I'm stepping through the debugger inspecting this
and this.value
but I'm not seeing machine-pools
nor machinePools
. Is that where I should be looking?gifted-breakfast-73755
09/04/2024, 9:24 PMthis.$attrs["machine-pools"]
gifted-breakfast-73755
09/04/2024, 10:05 PMthis.$attrs["machine-pools"][0].config
even after entering the data so I must be looking in the wrong place...wooden-engine-7388
09/05/2024, 1:56 PMwooden-engine-7388
09/05/2024, 2:08 PMgifted-breakfast-73755
09/05/2024, 3:07 PMthis.value
soon enough. I based it on the OpenStack example but I’ll look at the built-in DigitalOcean machine-config code. Thanks for the confirmation that I’m on the right track.gifted-breakfast-73755
09/05/2024, 3:24 PMv-model:value="value.monitoring"
whereas I’m using v-model="package"
which doesn’t make it into value
yet so that’s probably my issue. I’ll try that approach.gifted-breakfast-73755
09/05/2024, 7:42 PMgifted-breakfast-73755
09/05/2024, 7:47 PMthis.credential
(https://github.com/rancher/dashboard/blob/3fae34cc922776775a3effea42b10e6a4f3044f8/shell/machine-config/digitalocean.vue#L35) but it looks like DigitalOcean only uses it to set the defaultRegion
if it's not already set. I see that DigitalOcean credentials also have an access token so I'm wondering why I'm not seeing any code in there to grab the access token from the cloud credential and set it in this.value
such as this.value.accessToken = this.credential.digitaloceancredentialConfig.accessToken;
...gifted-breakfast-73755
09/05/2024, 7:48 PMthis.credential
(https://github.com/rancher/ui-plugin-examples/blob/main/pkg/node-driver/machine-config/openstack.vue#L73) but then also queries the secret (not sure why this is needed since you can get the data from the credential) and sets this.password
rather than this.value.password
and then has a comment in syncValue()
that says // Note: We don't need to provide password as this is picked up via the credential
(https://github.com/rancher/ui-plugin-examples/blob/main/pkg/node-driver/machine-config/openstack.vue#L197).gifted-breakfast-73755
09/05/2024, 7:49 PMthis.value
or whether there is some magic done behind the scenes and I don't need to...gifted-breakfast-73755
09/05/2024, 7:56 PMthis.value
it doesn't appear to work. When I create the cluster and inspect the TritonMachineTemplate
I see spec.template.spec
has the machine-config fields I filled out and there is spec.template.spec.common.cloudCredentialSecretName
which references a secret that has all the data from the cloud credentials but none of them seem to get passed automatically to my custom node driver so I guess I need to explicitly set them?gifted-breakfast-73755
09/30/2024, 4:52 PM