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

Pass down path through validators #331

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Sep 23, 2020

  • Pass the path down to the validation methods so they don't need to know
    where in the struct they are placed.
  • Also use .Index() and .Key() instead of fmt.Sprintf to indicate where
    in a slice/map we are.

- Pass the path down to the validation methods so they don't need to know
where in the struct they are placed.
- Also use .Index() and .Key() instead of fmt.Sprintf to indicate where
in a slice/map we are.
@lkysow lkysow requested review from a team and ishustava and removed request for a team September 23, 2020 20:45
@lkysow lkysow merged commit aa64895 into crd-controller-base Sep 23, 2020
@lkysow lkysow deleted the crd-controller-path-errs branch September 23, 2020 23:09
ndhanushkodi pushed a commit to ndhanushkodi/consul-k8s that referenced this pull request Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants