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

InstallConfig: Pointers for Networking, etc.? #263

Closed
wking opened this issue Sep 17, 2018 · 2 comments
Closed

InstallConfig: Pointers for Networking, etc.? #263

wking opened this issue Sep 17, 2018 · 2 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@wking
Copy link
Member

wking commented Sep 17, 2018

Spun off from this comment, we have several properties which are structures instead of pointers (e.g. Networking). If we make those pointers, we can get working omitempty handling for them (golang/go#11939) at the cost of slightly more complicated Go handling (but with slightly more efficient shallow copies ;). @abhinavdahiya pointed out that we'll want to have the defaults filled in when we push these into the cluster, so consumers don't have to internalize (or vendor) the defaulting logic. But I think we may still want the pointers to support folks using our type to generate InstallConfig to feed into the installer. ? For example:

  1. Some personal generator uses our package to create an InstallConfig YAML. They feed that into...
  2. openshift-install init, which injects default opinions for networking, etc.
  3. openshift-install something-else pushes the fully-defaulted YAML into the cluster.
  4. Operators fetch the fully-defaulted YAML from the cluster.

Is (1) a use-case that we want to support? Having Networking and other options where the installer can choose sane defaults without user assistance would make life easier for folks doing (1).

@wking wking added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 17, 2018
@wking
Copy link
Member Author

wking commented Jan 18, 2019

Fixed by #1058 :).

/close

@openshift-ci-robot
Copy link
Contributor

@wking: Closing this issue.

In response to this:

Fixed by #1058 :).

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants