@@ -2,6 +2,8 @@ package v1alpha
22
33import (
44 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5+
6+ networkingv1alpha "go.datum.net/network-services-operator/api/v1alpha"
57)
68
79// WorkloadDeploymentSpec defines the desired state of WorkloadDeployment
@@ -35,6 +37,11 @@ type WorkloadDeploymentSpec struct {
3537
3638// WorkloadDeploymentStatus defines the observed state of WorkloadDeployment
3739type WorkloadDeploymentStatus struct {
40+ // The location which the deployment has been scheduled to
41+ //
42+ // +kubebuilder:validation:Optional
43+ Location * networkingv1alpha.LocationReference `json:"location,omitempty"`
44+
3845 // Represents the observations of a deployment's current state.
3946 // Known condition types are: "Available", "Progressing"
4047 Conditions []metav1.Condition `json:"conditions,omitempty"`
@@ -73,6 +80,8 @@ const (
7380// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.readyReplicas`
7481// +kubebuilder:printcolumn:name="Desired",type=string,JSONPath=`.status.desiredReplicas`
7582// +kubebuilder:printcolumn:name="Up-to-date",type=string,JSONPath=`.status.currentReplicas`
83+ // +kubebuilder:printcolumn:name="Location Namespace",type=string,JSONPath=`.status.location.namespace`,priority=1
84+ // +kubebuilder:printcolumn:name="Location Name",type=string,JSONPath=`.status.location.name`,priority=1
7685type WorkloadDeployment struct {
7786 metav1.TypeMeta `json:",inline"`
7887 metav1.ObjectMeta `json:"metadata,omitempty"`
0 commit comments