Conversation
62abd4f to
9cc63b2
Compare
|
Storage pools are a global resource so they can't be tied to a project. The bucket keys are a nested resource under a storage bucket which does have a project field. |
9cc63b2 to
1176d0f
Compare
|
I start to realize that we have the project as an attribute for resources who actually are not tight to a project. Should we remove this then? |
1176d0f to
3ec5945
Compare
Yeah, that's probably the better approach. |
c1b6e7f to
f68cb34
Compare
|
Tests seem unhappy :) |
|
@stgraber I realized this change is more complex than expected. Today we rely on Incus to implicitly use the This leads to another problem too. If the project is set in the provider after resources already exist, resources without an explicit project will not be recreated, even though their effective project has changed. That leaves us with two options:
I lean toward option 2. I prefer explicit behavior: if a specific project is desired, it should be set explicitly on the resource. What do you think? |
|
Yeah, 2) seems like the way to go. |
f68cb34 to
73b9ddd
Compare
1f636e0 to
4758b5a
Compare
|
@stgraber it looks like there is an issue with goreleaser now, which also affects the other PR created yesterday. Do you have already an idea how to fix it? |
Current Go stable (1.26) removed the win32 arm target completely (release notes) so I imagine it'll have to be added to the ignore list moving forward. Decided to just open the PR in case it's the direction you want to go in. |
Signed-off-by: Fabian Mettler <fabian@mettler.cc>
Signed-off-by: Fabian Mettler <fabian@mettler.cc>
4758b5a to
0d98538
Compare
As discussed in this PR, we have decided to remove project overwriting in the provider configuration. If we want to do this correctly, we would need to rework the provider. And we believe that it is a better API if the change to the default project is instead defined explicitly in the resources.