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

TektonConfig object gets created without any default values #368

Closed
sm43 opened this issue Jul 21, 2021 · 5 comments · Fixed by #415
Closed

TektonConfig object gets created without any default values #368

sm43 opened this issue Jul 21, 2021 · 5 comments · Fixed by #415
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.

Comments

@sm43
Copy link
Member

sm43 commented Jul 21, 2021

Sometimes, webhook takes time to start and if the controller is started before it
it will create a TektonConfig object
but as webhook is not started the object will not have any default values.

  apiVersion: operator.tekton.dev/v1alpha1
  kind: TektonConfig
  metadata:
    name: config
  spec:
    addon: {}
    pipeline: {}
    profile: all
    pruner: {}
    targetNamespace: tekton-pipelines

@sm43 sm43 added the kind/bug Categorizes issue or PR as related to a bug. label Jul 21, 2021
@nikhil-thomas
Copy link
Member

Oh!. Looks like we need a poll for webhook with retries and timeout in the autocreation logic.

@vdemeester
Copy link
Member

On the pipeline controller, we do pass all the object through the default when we fetch them, to make sure they get defaulted, even if they did not get through the validation (old object, …)

@nikhil-thomas
Copy link
Member

Thanks @vdemeester

ref: https://github.com/tektoncd/pipeline/blob/8907e408c73480482c618d08eeaaefe0bd4aac68/pkg/reconciler/taskrun/taskrun.go#L270

/good-first-issue

@tekton-robot
Copy link
Contributor

@nikhil-thomas:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

Thanks @vdemeester

ref: https://github.com/tektoncd/pipeline/blob/8907e408c73480482c618d08eeaaefe0bd4aac68/pkg/reconciler/taskrun/taskrun.go#L270

/good-first-issue

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.

@tekton-robot tekton-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jul 23, 2021
@vinamra28
Copy link
Member

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants