Skip to content

Manila: Share network#691

Open
dlaw4608 wants to merge 2 commits intok-orc:mainfrom
dlaw4608:share_network
Open

Manila: Share network#691
dlaw4608 wants to merge 2 commits intok-orc:mainfrom
dlaw4608:share_network

Conversation

@dlaw4608
Copy link
Contributor

Add support for Openstack Manila Service Share Network resource
Closes: #687

@github-actions
Copy link

Failed to assess the semver bump. See logs for details.

go run ./cmd/scaffold-controller -interactive=false \
    -kind=ShareNetwork \
    -gophercloud-client=NewSharedFilesystemV2 \
    -gophercloud-module=github.com/gophercloud/gophercloud/v2/openstack/sharedfilesystems/v2/sharenetworks \
    -gophercloud-type=ShareNetwork \
    -openstack-json-object=share_network \
    -optional-create-dependency=Network \
    -optional-create-dependency=Subnet
Signed-off-by: Daniel Lawton <dlawton@redhat.com>
@github-actions github-actions bot added the semver:major Breaking change label Feb 24, 2026
@dlaw4608 dlaw4608 force-pushed the share_network branch 2 times, most recently from 79282c8 to 08867bf Compare February 24, 2026 19:10
@dlaw4608 dlaw4608 marked this pull request as ready for review February 25, 2026 10:21
Copy link
Contributor

@winiciusallan winiciusallan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @dlaw4608, I left a few comments, but I need some more time to take a look at the other test scenarios. For now, let me know what you think about what it is commented.

Comment on lines 35 to 42
@@ -38,14 +40,6 @@ type ShareNetworkResourceSpec struct {
// +optional
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="subnetRef is immutable"
SubnetRef *KubernetesNameRef `json:"subnetRef,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like both NetworkRef and SubnetRef are required according to the docs.

Specify both a neutron network and a neutron subnet that belongs to that neutron network.

Also, you've specified these two fields in the create-minimal, so I'm assuming that the claim above is true. Isn't it better to define these two fields as required and remove the omitempty tag?

const ShareNetworkStatusInUse = "in-use"
const ShareNetworkStatusDeleting = "deleting"

const (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we're not using any of these statuses throughout the code, and it looks like we don't have a status field in the ShareNetwork struct on Gophercloud's side. Is this useful?

Maybe do we need to create an issue to address this?

Comment on lines +37 to +38
- celExpr: "sharenetwork.status.resource.name == 'sharenetwork-create-full-override'"
- celExpr: "sharenetwork.status.resource.description == 'ShareNetwork from \"create full\" test'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this check since KUTTL already matches fields from declaration vs status.

Implements ShareNetwork controller to manage Manila share networks.
- E2E tests included
- API configured
- Manila enabled in CI

Signed-off-by: Daniel Lawton <dlawton@redhat.com>

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:major Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manila: Share Network Controller

2 participants