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

Add optional ObservedGeneration field to DNSEndpointStatus #270

Merged
merged 2 commits into from
Sep 26, 2018

Conversation

shashidharatd
Copy link
Contributor

This is according to the discussion in kubernetes-sigs/external-dns#657 (comment)

/cc @pmorie @font

@k8s-ci-robot k8s-ci-robot requested review from font and pmorie September 17, 2018 16:48
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shashidharatd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 17, 2018

informers map[reflect.Type]cache.SharedIndexInformer
// startedInformers is used for tracking which informers have been started.
// This allows Start() to be called multiple times safely.
startedInformers map[reflect.Type]bool
}

// NewSharedInformerFactory constructs a new instance of sharedInformerFactory
// WithCustomResyncConfig sets a custom resync period for the specified informer types.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these new generated changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, these are the new generated changes. I am using kubebuilder 1.0.3 as in https://github.com/kubernetes-sigs/federation-v2/blob/master/scripts/download-binaries.sh#L44

@@ -413,7 +413,6 @@ var (
Scope: "Namespaced",
Validation: &v1beta1.CustomResourceValidation{
OpenAPIV3Schema: &v1beta1.JSONSchemaProps{
Type: "object",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did some changes sneak in unintentionally here? Do we need a new verify task to ensure this doesn't happen again?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is auto-generated. the code which we have in master probably is generated with older version of kubebuilder.

Copy link
Contributor

@font font left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What version of kubebuilder did you use to update the generated code?

Looks like an unrelated FederatedDeployment failure for namespaced e2e tests.

@shashidharatd
Copy link
Contributor Author

here is the kubebuilder version which i use, its the same which is in scripts/download-binaries.sh

root@shashi-laptop:~/gopath/src/github.com/kubernetes-sigs/federation-v2# kubebuilder version
Version: version.Version{KubeBuilderVersion:"1.0.3", KubernetesVendor:"1.11", GitCommit:"3afad1c1fd67ec281c3c6e07508e99d1a3f2aa72", BuildDate:"2018-09-04T19:23:39Z", GoOs:"unknown", GoArch:"unknown"}

Copy link
Contributor

@font font left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. You have some pending comments from @pmorie.

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add the link for the discussion here kubernetes-sigs/external-dns#657 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gyliu513, there is nothing more to describe in the comment. the comment is good enough according to me.

Copy link
Contributor

@font font left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 26, 2018
@k8s-ci-robot k8s-ci-robot merged commit 68cb50d into kubernetes-retired:master Sep 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants