You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/19 06:06:33 UTC

[GitHub] [apisix-ingress-controller] tokers commented on a change in pull request #462: chore: add apisixconsumer data structures

tokers commented on a change in pull request #462:
URL: https://github.com/apache/apisix-ingress-controller/pull/462#discussion_r634937273



##########
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:
       We can add it in the future.




-- 
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:
users@infra.apache.org