gxthrj commented on a change in pull request #462:
URL:
https://github.com/apache/apisix-ingress-controller/pull/462#discussion_r635311663
##########
File path: pkg/kube/apisix/apis/config/v2alpha1/types.go
##########
@@ -309,3 +310,56 @@ type ApisixClusterConfigList struct {
Items []ApisixClusterConfig `json:"items" yaml:"items"`
}
+
+// +genclient
+// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
+// +kubebuilder:subresource:status
+
+// ApisixConsumer is the Schema for the ApisixConsumer resource.
+// An ApisixConsumer is used to identify a consumer.
+type ApisixConsumer struct {
+ metav1.TypeMeta `json:",inline" yaml:",inline"`
+ metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
+ Spec ApisixConsumerSpec `json:"spec,omitempty"
yaml:"spec,omitempty"`
+}
Review comment:
But you have added the `// +kubebuilder:subresource:status` for the
ApisixConsumer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]