diff --git a/api/v1alpha/domain_types.go b/api/v1alpha/domain_types.go index 8d9fd98c..c862b9ea 100644 --- a/api/v1alpha/domain_types.go +++ b/api/v1alpha/domain_types.go @@ -8,6 +8,7 @@ import ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // Domain represents a domain name in the Datum system // diff --git a/api/v1alpha/httpproxy_types.go b/api/v1alpha/httpproxy_types.go index c77877b9..b8af429b 100644 --- a/api/v1alpha/httpproxy_types.go +++ b/api/v1alpha/httpproxy_types.go @@ -429,6 +429,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // An HTTPProxy builds on top of Gateway API resources to provide a more convenient // method to manage simple reverse proxy use cases. diff --git a/api/v1alpha/location_types.go b/api/v1alpha/location_types.go index f2ff9b09..31c622c7 100644 --- a/api/v1alpha/location_types.go +++ b/api/v1alpha/location_types.go @@ -70,6 +70,7 @@ type LocationStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // +kubebuilder:printcolumn:name="Class",type="string",JSONPath=".spec.locationClassName" // +kubebuilder:printcolumn:name="City",type="string",JSONPath=`.spec.topology.topology\.datum\.net/city-code` // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/api/v1alpha/network_types.go b/api/v1alpha/network_types.go index 5868bebc..2bb959bf 100644 --- a/api/v1alpha/network_types.go +++ b/api/v1alpha/network_types.go @@ -73,6 +73,7 @@ type NetworkStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // +kubebuilder:printcolumn:name="Name",type="string",JSONPath=".metadata.name" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type==\"Ready\")].status` diff --git a/api/v1alpha/networkbinding_types.go b/api/v1alpha/networkbinding_types.go index 82c2bd62..bdb557d1 100644 --- a/api/v1alpha/networkbinding_types.go +++ b/api/v1alpha/networkbinding_types.go @@ -61,6 +61,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // NetworkBinding is the Schema for the networkbindings API // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/api/v1alpha/networkcontext_types.go b/api/v1alpha/networkcontext_types.go index 54d4e2c1..22768644 100644 --- a/api/v1alpha/networkcontext_types.go +++ b/api/v1alpha/networkcontext_types.go @@ -49,6 +49,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // NetworkContext is the Schema for the networkcontexts API // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/api/v1alpha/networkpolicy_types.go b/api/v1alpha/networkpolicy_types.go index 95bff432..3ecf38d3 100644 --- a/api/v1alpha/networkpolicy_types.go +++ b/api/v1alpha/networkpolicy_types.go @@ -97,6 +97,7 @@ type NetworkPolicyStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // NetworkPolicy is the Schema for the networkpolicies API type NetworkPolicy struct { diff --git a/api/v1alpha/subnet_types.go b/api/v1alpha/subnet_types.go index 6b58c140..71a7f95b 100644 --- a/api/v1alpha/subnet_types.go +++ b/api/v1alpha/subnet_types.go @@ -78,6 +78,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // Subnet is the Schema for the subnets API // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/api/v1alpha/subnetclaim_types.go b/api/v1alpha/subnetclaim_types.go index a5867067..3200db8e 100644 --- a/api/v1alpha/subnetclaim_types.go +++ b/api/v1alpha/subnetclaim_types.go @@ -56,6 +56,7 @@ type SubnetClaimStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // SubnetClaim is the Schema for the subnetclaims API // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" diff --git a/api/v1alpha/trafficprotectionpolicy_types.go b/api/v1alpha/trafficprotectionpolicy_types.go index 59699e67..189c18ed 100644 --- a/api/v1alpha/trafficprotectionpolicy_types.go +++ b/api/v1alpha/trafficprotectionpolicy_types.go @@ -179,6 +179,7 @@ type TrafficProtectionPolicyStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:resource:shortName=tpp +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // TrafficProtectionPolicy is the Schema for the trafficprotectionpolicies API. type TrafficProtectionPolicy struct { diff --git a/api/v1alpha1/connector_types.go b/api/v1alpha1/connector_types.go index b4559db9..c5bae9e4 100644 --- a/api/v1alpha1/connector_types.go +++ b/api/v1alpha1/connector_types.go @@ -184,6 +184,7 @@ const ConnectorNameAnnotation = "networking.datum.org/connector-name" // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:selectablefield:JSONPath=".status.connectionDetails.publicKey.id" +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // Connector is the Schema for the connectors API. type Connector struct { diff --git a/api/v1alpha1/connectoradvertisement_types.go b/api/v1alpha1/connectoradvertisement_types.go index 95aca442..4ea48fc3 100644 --- a/api/v1alpha1/connectoradvertisement_types.go +++ b/api/v1alpha1/connectoradvertisement_types.go @@ -123,6 +123,7 @@ const ( // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:selectablefield:JSONPath=".spec.connectorRef.name" +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // ConnectorAdvertisement is the Schema for the connectoradvertisements API. type ConnectorAdvertisement struct { diff --git a/api/v1alpha1/connectorclass_types.go b/api/v1alpha1/connectorclass_types.go index bf0a72c1..4cbebe32 100644 --- a/api/v1alpha1/connectorclass_types.go +++ b/api/v1alpha1/connectorclass_types.go @@ -24,6 +24,7 @@ type ConnectorClassStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:resource:scope=Cluster +// +kubebuilder:metadata:annotations="discovery.miloapis.com/parent-contexts=Project" // ConnectorClass is the Schema for the connectorclasses API. type ConnectorClass struct { diff --git a/config/crd/bases/networking.datumapis.com_connectoradvertisements.yaml b/config/crd/bases/networking.datumapis.com_connectoradvertisements.yaml index 37880343..ff32510e 100644 --- a/config/crd/bases/networking.datumapis.com_connectoradvertisements.yaml +++ b/config/crd/bases/networking.datumapis.com_connectoradvertisements.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: connectoradvertisements.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_connectorclasses.yaml b/config/crd/bases/networking.datumapis.com_connectorclasses.yaml index ffffb3c6..d04f1ad7 100644 --- a/config/crd/bases/networking.datumapis.com_connectorclasses.yaml +++ b/config/crd/bases/networking.datumapis.com_connectorclasses.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: connectorclasses.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_connectors.yaml b/config/crd/bases/networking.datumapis.com_connectors.yaml index 6648f065..183db596 100644 --- a/config/crd/bases/networking.datumapis.com_connectors.yaml +++ b/config/crd/bases/networking.datumapis.com_connectors.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: connectors.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_domains.yaml b/config/crd/bases/networking.datumapis.com_domains.yaml index 9341f578..9b8e239c 100644 --- a/config/crd/bases/networking.datumapis.com_domains.yaml +++ b/config/crd/bases/networking.datumapis.com_domains.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: domains.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_httpproxies.yaml b/config/crd/bases/networking.datumapis.com_httpproxies.yaml index 58941563..8fd33f33 100644 --- a/config/crd/bases/networking.datumapis.com_httpproxies.yaml +++ b/config/crd/bases/networking.datumapis.com_httpproxies.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: httpproxies.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_locations.yaml b/config/crd/bases/networking.datumapis.com_locations.yaml index e59c79f0..4392809c 100644 --- a/config/crd/bases/networking.datumapis.com_locations.yaml +++ b/config/crd/bases/networking.datumapis.com_locations.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: locations.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_networkbindings.yaml b/config/crd/bases/networking.datumapis.com_networkbindings.yaml index 217bece5..67ce8a7e 100644 --- a/config/crd/bases/networking.datumapis.com_networkbindings.yaml +++ b/config/crd/bases/networking.datumapis.com_networkbindings.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: networkbindings.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_networkcontexts.yaml b/config/crd/bases/networking.datumapis.com_networkcontexts.yaml index af2681a7..1a319064 100644 --- a/config/crd/bases/networking.datumapis.com_networkcontexts.yaml +++ b/config/crd/bases/networking.datumapis.com_networkcontexts.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: networkcontexts.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_networkpolicies.yaml b/config/crd/bases/networking.datumapis.com_networkpolicies.yaml index a5d8e01a..e3ff1695 100644 --- a/config/crd/bases/networking.datumapis.com_networkpolicies.yaml +++ b/config/crd/bases/networking.datumapis.com_networkpolicies.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: networkpolicies.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_networks.yaml b/config/crd/bases/networking.datumapis.com_networks.yaml index 97b6f905..1fac276a 100644 --- a/config/crd/bases/networking.datumapis.com_networks.yaml +++ b/config/crd/bases/networking.datumapis.com_networks.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: networks.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_subnetclaims.yaml b/config/crd/bases/networking.datumapis.com_subnetclaims.yaml index eb10db0f..89695d92 100644 --- a/config/crd/bases/networking.datumapis.com_subnetclaims.yaml +++ b/config/crd/bases/networking.datumapis.com_subnetclaims.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: subnetclaims.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_subnets.yaml b/config/crd/bases/networking.datumapis.com_subnets.yaml index 84434ce7..9f02355d 100644 --- a/config/crd/bases/networking.datumapis.com_subnets.yaml +++ b/config/crd/bases/networking.datumapis.com_subnets.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: subnets.networking.datumapis.com spec: group: networking.datumapis.com diff --git a/config/crd/bases/networking.datumapis.com_trafficprotectionpolicies.yaml b/config/crd/bases/networking.datumapis.com_trafficprotectionpolicies.yaml index 3458ca7b..8f7c84d4 100644 --- a/config/crd/bases/networking.datumapis.com_trafficprotectionpolicies.yaml +++ b/config/crd/bases/networking.datumapis.com_trafficprotectionpolicies.yaml @@ -4,6 +4,7 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.16.4 + discovery.miloapis.com/parent-contexts: Project name: trafficprotectionpolicies.networking.datumapis.com spec: group: networking.datumapis.com