Skip to content

config/v3.4.0-experimental: supporting multiple sources for a Resource - #1176

Closed
nikita-dubrovskii wants to merge 9 commits into
coreos:mainfrom
nikita-dubrovskii:multiple_sources
Closed

nikita-dubrovskii wants to merge 9 commits into
coreos:mainfrom
nikita-dubrovskii:multiple_sources

Conversation

@nikita-dubrovskii

Copy link
Copy Markdown
Contributor

Allow Ignition user to specify multiple equivalent sources for a resource,
so that Ignition configs can be resilient to server failure.

@arithx arithx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Initial pass.

Comment thread config/v3_3_experimental/types/luks.go Resolved
Comment thread internal/exec/engine.go Resolved
Comment thread internal/resource/http.go Resolved
Comment thread internal/exec/stages/disks/luks.go Resolved
@nikita-dubrovskii
nikita-dubrovskii force-pushed the multiple_sources branch 7 times, most recently from dabaedd to 9208d1d Compare March 23, 2021 09:27
}

if util.NilOrEmpty(res.Source) {
sources := res.GetSources()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can save a second call to res.GetSources() if we move this variable above line 67 & use it in the ErrVerificationAndNilSource check.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

didn't get it. do you advise this - validateVerification(sources []Source ) error ?

Comment thread config/shared/errors/errors.go Resolved
Comment thread internal/exec/engine.go Resolved
Comment thread internal/log/log.go Resolved
Comment thread internal/log/log.go Resolved
Comment thread internal/resource/generic_fetcher.go Resolved
Comment thread internal/resource/generic_fetcher.go Resolved
Comment thread internal/resource/generic_fetcher.go Resolved
@nikita-dubrovskii
nikita-dubrovskii force-pushed the multiple_sources branch 3 times, most recently from e518535 to f95c542 Compare April 13, 2021 09:12
@nikita-dubrovskii nikita-dubrovskii changed the title config/v3.3.0-experimental: supporting multiple sources for a Resource WIP: config/v3.3.0-experimental: supporting multiple sources for a Resource Apr 13, 2021
@nikita-dubrovskii nikita-dubrovskii changed the title WIP: config/v3.3.0-experimental: supporting multiple sources for a Resource config/v3.3.0-experimental: supporting multiple sources for a Resource Apr 13, 2021
@nikita-dubrovskii nikita-dubrovskii changed the title config/v3.3.0-experimental: supporting multiple sources for a Resource config/v3.4.0-experimental: supporting multiple sources for a Resource Sep 22, 2021
@bgilbert

bgilbert commented May 5, 2022 •

Copy link
Copy Markdown
Contributor

Discussed this OOB with @jlebon and @nikita-dubrovskii. We're going to close this out for now. The change is pretty intrusive, and the current config merging semantics prevent us from completely replacing source with sources in the next major spec bump, since a child config wouldn't be able to override a source from its parent. The original use case can be addressed by #1276 in a much less intrusive way.

@bgilbert bgilbert closed this May 5, 2022
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