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

Cleanp - Adding a single variable for default configmaps. #6639

Merged
merged 1 commit into from
May 10, 2023

Conversation

chuangw6
Copy link
Member

@chuangw6 chuangw6 commented May 9, 2023

Changes

/kind cleanup

Prior, the New* function was called each time when we need to get the
default configuration for the default, feature flags, metrics and spire configmap.

Now, we created those variables first in corresponding file, and use a deepcopy
of it each time.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep

Release Notes

NONE

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 9, 2023
@tekton-robot tekton-robot requested review from abayer and dibyom May 9, 2023 17:17
Prior, the New* function was called each time when we need to get the
default configuration for the default, feature flags, metrics and spire configmap.

Now, we created those variables first in corresponding file, and use a deepcopy
of it each time.

Signed-off-by: Chuang Wang <[email protected]>
@chuangw6
Copy link
Member Author

chuangw6 commented May 9, 2023

/assign @jerop

PTAL

@tekton-robot
Copy link
Collaborator

@chuangw6: GitHub didn't allow me to assign the following users: PTAL.

Note that only tektoncd members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @jerop PTAL

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@chuangw6
Copy link
Member Author

chuangw6 commented May 9, 2023

/assign @jerop

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

Copy link
Member

@jerop jerop left a comment

Choose a reason for hiding this comment

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

Thanks for the clean up @chuangw6!

@jerop
Copy link
Member

jerop commented May 10, 2023

/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jerop

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 10, 2023
@jerop
Copy link
Member

jerop commented May 10, 2023

/test pull-tekton-pipeline-go-coverage

@Yongxuanzhang
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 10, 2023
@chuangw6 chuangw6 closed this May 10, 2023
@chuangw6 chuangw6 reopened this May 10, 2023
@chuangw6 chuangw6 closed this May 10, 2023
@chuangw6 chuangw6 reopened this May 10, 2023
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@jerop
Copy link
Member

jerop commented May 10, 2023

/test pull-tekton-pipeline-go-coverage

@jerop
Copy link
Member

jerop commented May 10, 2023

/test pull-tekton-pipeline-alpha-integration-tests

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/apis/config/store.go 78.6% 91.7% 13.1

@tekton-robot tekton-robot merged commit 6a1a458 into tektoncd:main May 10, 2023
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants