Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

✨ Add foundation tooling and files #13

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

vincepri
Copy link
Contributor

This patchset adds a bunch of basic tools and files needed to start
working on the controllers within the cluster api ecosystem. Enables us
to speed through the basic chores to generate files, run prow jobs
(these still need to be setup at the time of writing), add all the
release tooling and automatic image building.

Signed-off-by: Vince Prignano [email protected]

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 16, 2020
@vincepri
Copy link
Contributor Author

/assign @christopherhein

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 16, 2020
Copy link
Contributor

@christopherhein christopherhein left a comment

Choose a reason for hiding this comment

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

Is the release-notes binary supposed to be In the repo, is it managed somewhere else and easily updated?

@vincepri
Copy link
Contributor Author

Yes, it's in Cluster API itself and it's updated by updating the hash version of the capi hack/tools module in hack/tools/go.mod

@christopherhein
Copy link
Contributor

Perfect, thanks @vincepri should it be loaded at test run or local setup time? Happy to keep it just want to confirm since it's a 2+mb binary in a repo.

/hold for @vincepri to diff another provider

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 17, 2020
@vincepri
Copy link
Contributor Author

Oh, missed the .gitignore 😂

@christopherhein
Copy link
Contributor

Oh, missed the .gitignore 😂

That makes sense 👍

@vincepri
Copy link
Contributor Author

Should be good to go!

@@ -0,0 +1,3 @@
version: "2"
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll be fast following to change this to 3 once we get https://github.com/kubernetes-sigs/kubebuilder/milestone/21 finished. We might even start this with the 3-alpha.


// InitFlags initializes the flags.
func InitFlags(fs *pflag.FlagSet) {
fs.StringVar(&metricsAddr, "metrics-addr", ":8080",
Copy link
Contributor

Choose a reason for hiding this comment

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

We're going to fast follow to change this to metrics-bind-address

fs.StringVar(&metricsAddr, "metrics-addr", ":8080",
"The address the metric endpoint binds to.")

fs.BoolVar(&enableLeaderElection, "enable-leader-election", false,
Copy link
Contributor

Choose a reason for hiding this comment

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

We're going to fast follow to change this to leader-elect

fs.BoolVar(&enableLeaderElection, "enable-leader-election", false,
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")

fs.DurationVar(&leaderElectionLeaseDuration, "leader-election-lease-duration", 15*time.Second,
Copy link
Contributor

Choose a reason for hiding this comment

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

Fast follow change this to leader-elect-lease-duration

fs.DurationVar(&leaderElectionLeaseDuration, "leader-election-lease-duration", 15*time.Second,
"Interval at which non-leader candidates will wait to force acquire leadership (duration string)")

fs.DurationVar(&leaderElectionRenewDeadline, "leader-election-renew-deadline", 10*time.Second,
Copy link
Contributor

Choose a reason for hiding this comment

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

fast follow change this to leader-elect-renew-deadline

fs.DurationVar(&leaderElectionRenewDeadline, "leader-election-renew-deadline", 10*time.Second,
"Duration that the leading controller manager will retry refreshing leadership before giving up (duration string)")

fs.DurationVar(&leaderElectionRetryPeriod, "leader-election-retry-period", 2*time.Second,
Copy link
Contributor

Choose a reason for hiding this comment

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

Fast follow change this to leader-elect-retry-period

@christopherhein
Copy link
Contributor

Awesome, thanks for putting all this base work in @vincepri !

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 19, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christopherhein, vincepri

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:
  • OWNERS [christopherhein,vincepri]

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

@vincepri
Copy link
Contributor Author

/hold cancel

🎉

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 19, 2020
@k8s-ci-robot k8s-ci-robot merged commit c42f2bd into kubernetes-retired:master Nov 19, 2020
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 "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants