Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Conversation

@lucab
Copy link
Contributor

@lucab lucab commented Oct 4, 2017

This updates tectonic-torcx to consume runtime-mappings coming from an
external source. Mapping file will be bind-mounted at runtime:

  • boostrapper will receive the one provided by the installer
  • pre-hook will receive it as a config-map from the cluster

@lucab
Copy link
Contributor Author

lucab commented Oct 4, 2017

/cc @squeed

@lucab lucab force-pushed the ups/runtime-mappings branch 2 times, most recently from ed5d595 to f4043f1 Compare October 6, 2017 14:58
@lucab lucab requested a review from squeed October 6, 2017 15:33
cli/common.go Outdated

// parseFlags parses CLI options, returning a populated configuration for the bootstrap agent
func parseFlags() (internal.Config, error) {
func parseFlags(runtimeMappingsPath string) (internal.Config, error) {
Copy link

Choose a reason for hiding this comment

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

can you call this something like "defaultRuntimeMappingsPath"? Just so it's clear that this is a fallback.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack. I've also left a docstring note to describe argument usage.

// Conditionally try ConfigMap from api-server first (bootstrapper only)
if !localOnly {
logrus.Debug("Querying api-server for runtime mappings ConfigMap")
manifest, err := a.versionFromAPIServer()
Copy link

Choose a reason for hiding this comment

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

should this be versionManifestFromAPIServer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely a good catch! It looks like I fixed this locally but forgot to push :(

@squeed
Copy link

squeed commented Oct 6, 2017

Seems reasonable. I somehow wish there were a simpler way to plumb this all up, but I can't think of one.

@lucab lucab force-pushed the ups/runtime-mappings branch 2 times, most recently from 7608b6f to fb1e861 Compare October 9, 2017 08:05
This updates tectonic-torcx to consume runtime-mappings coming from an
external source. Mapping file will be bind-mounted at runtime:
 * boostrapper will receive the one provided by the installer
 * pre-hook will receive it as a config-map from the cluster
@lucab lucab force-pushed the ups/runtime-mappings branch from fb1e861 to 30987e0 Compare November 15, 2017 13:08
@lucab lucab changed the title [WIP] cli: consume external runtime-mappings cli: consume external runtime-mappings Nov 15, 2017
@lucab
Copy link
Contributor Author

lucab commented Nov 15, 2017

@squeed this is ready to go, PTAL. We can tag v0.2.0 after this and switch tectonic-installer to it. installer-latest tag will proceed in the image-installer-latest branch, which we should document.

@squeed
Copy link

squeed commented Nov 15, 2017

You should update the example hook yaml file to include the configmap.

@lucab
Copy link
Contributor Author

lucab commented Nov 15, 2017

@squeed yep thanks, pushed an additional commit with deployment examples.

@lucab lucab merged commit fc55783 into coreos:master Nov 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants