Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic sks helpers for pa #3705

Merged

Conversation

vagababov
Copy link
Contributor

For #1997
Add the helpers for the PA implementations to reconcile SKS resources: creation, naming, etc.
In future other shared things can go there.

/cc @mattmoor

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Apr 9, 2019
@knative-prow-robot knative-prow-robot added area/API API objects and controllers area/autoscale size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 9, 2019
@vagababov
Copy link
Contributor Author

/retest

@vagababov
Copy link
Contributor Author

/test pull-knative-serving-integration-tests
/test pull-knative-serving-upgrade-tests
🐍 → boskos ⚡

@vagababov
Copy link
Contributor Author

/test pull-knative-serving-upgrade-tests

@vagababov
Copy link
Contributor Author

🐲

@vagababov
Copy link
Contributor Author

/test pull-knative-serving-integration-tests
/test pull-knative-serving-upgrade-tests

☠️
brimstone.

@vagababov
Copy link
Contributor Author

/test pull-knative-serving-integration-tests
/test pull-knative-serving-upgrade-tests

🐶 🐱 🦈

@vagababov
Copy link
Contributor Author

/test pull-knative-serving-upgrade-tests
/test pull-knative-serving-integration-tests

@vagababov vagababov mentioned this pull request Apr 9, 2019
Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

LGTM, just a nit

package names

// SKSName returns the name of the SKS resource that backs this PA.
func SKSName(paName string) string {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Name is redundant with the package names

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -17,7 +17,7 @@ limitations under the License.
// Package names contains name generating functions for the pod autoscalers.
package names

// SKSName returns the name of the SKS resource that backs this PA.
func SKSName(paName string) string {
// SKSreturns the name of the SKS resource that backs this PA.
Copy link
Member

Choose a reason for hiding this comment

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

space

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ouais, I notice :)

Copy link
Member

@mattmoor mattmoor left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 10, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor, vagababov

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

@knative-metrics-robot
Copy link

The following is the coverage report on pkg/.
Say /test pull-knative-serving-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/v1alpha1/autoscaling/resources/names/names.go Do not exist 100.0%
pkg/reconciler/v1alpha1/autoscaling/resources/sks.go Do not exist 100.0%

@knative-prow-robot knative-prow-robot merged commit 21abce3 into knative:master Apr 10, 2019
@vagababov vagababov deleted the generic-sks-helpers-for-pa branch April 11, 2019 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/API API objects and controllers area/autoscale cla: yes Indicates the PR's author has signed the 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