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

Status returns fields with empty strings #188

Open
mandre opened this issue Jan 23, 2025 · 0 comments
Open

Status returns fields with empty strings #188

mandre opened this issue Jan 23, 2025 · 0 comments

Comments

@mandre
Copy link
Collaborator

mandre commented Jan 23, 2025

Creating a minimal subnet with:

apiVersion: openstack.k-orc.cloud/v1alpha1
kind: Network
metadata:
  name: create-minimal
spec:
  cloudCredentialsRef:
    cloudName: devstack
    secretName: openstack-clouds
  managementPolicy: managed
  resource:
    description: create-minimal
---
apiVersion: openstack.k-orc.cloud/v1alpha1
kind: Subnet
metadata:
  name: create-minimal
spec:
  cloudCredentialsRef:
    cloudName: devstack
    secretName: openstack-clouds
  managementPolicy: managed
  networkRef: create-minimal
  resource:
    ipVersion: 4
    cidr: 192.168.0.0/24

Returns an object with the following status:

status:
  resource:
    name: create-minimal
    description: ""
    allocationPools:
      - start: 192.168.0.2
        end: 192.168.0.254
    cidr: 192.168.0.0/24
    dnsPublishFixedIP: false
    enableDHCP: true
    gatewayIP: 192.168.0.1
    ipVersion: 4
    ipv6AddressMode: ""
    ipv6RAMode: ""

This is surprising to see description, ipv6AddressMode, and ipv6RAMode as they all have an omitempty tag and shouldn't be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant