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

Commit

Permalink
Merge pull request #270 from shashidharatd/dnsendpoint
Browse files Browse the repository at this point in the history
Add optional ObservedGeneration field to DNSEndpointStatus
  • Loading branch information
k8s-ci-robot authored Sep 26, 2018
2 parents dbebddf + 86a9e89 commit 68cb50d
Show file tree
Hide file tree
Showing 36 changed files with 105 additions and 69 deletions.
23 changes: 0 additions & 23 deletions pkg/apis/core/v1alpha1/zz_generated.kubebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -457,7 +456,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -513,7 +511,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -561,7 +558,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -605,7 +601,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -662,7 +657,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -710,7 +704,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -754,7 +747,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -802,7 +794,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -846,7 +837,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -903,7 +893,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -951,7 +940,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -999,7 +987,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1043,7 +1030,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1100,7 +1086,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1148,7 +1133,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1192,7 +1176,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1248,7 +1231,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1296,7 +1278,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1340,7 +1321,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1384,7 +1364,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1432,7 +1411,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -1480,7 +1458,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down
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
13 changes: 10 additions & 3 deletions pkg/apis/multiclusterdns/v1alpha1/zz_generated.kubebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down Expand Up @@ -151,12 +150,20 @@ var (
},
},
"status": v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{},
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"observedGeneration": v1beta1.JSONSchemaProps{
Type: "integer",
Format: "int64",
},
},
},
},
},
},
Subresources: &v1beta1.CustomResourceSubresources{
Status: &v1beta1.CustomResourceSubresourceStatus{},
},
},
}
// Define CRDs for resources
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/scheduling/v1alpha1/zz_generated.kubebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Properties: map[string]v1beta1.JSONSchemaProps{
"apiVersion": v1beta1.JSONSchemaProps{
Type: "string",
Expand Down
2 changes: 0 additions & 2 deletions pkg/client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions pkg/client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 68cb50d

Please sign in to comment.