Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Add optional ObservedGeneration field to DNSEndpointStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
shashidharatd committed Sep 17, 2018
1 parent b444131 commit c52a72a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/apis/multiclusterdns/v1alpha1/dnsendpoint_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type Endpoint struct {
// TTL for the record in seconds
RecordTTL TTL `json:"recordTTL,omitempty"`
// Labels stores labels defined for the Endpoint
// +optional
Labels Labels `json:"labels,omitempty"`
}

Expand All @@ -51,14 +52,18 @@ type DNSEndpointSpec struct {

// DNSEndpointStatus defines the observed state of DNSEndpoint
type DNSEndpointStatus struct {
// ObservedGeneration is the generation as observed by the controller consuming the DNSEndpoint.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}

// +genclient
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// DNSEndpoint
// DNSEndpoint is the CRD wrapper for Endpoint
// +k8s:openapi-gen=true
// +kubebuilder:resource:path=dnsendpoints
// +kubebuilder:subresource:status
type DNSEndpoint struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down

0 comments on commit c52a72a

Please sign in to comment.