Skip to content

Describe new platform:... sections#31

Merged
lcarva merged 1 commit intomasterfrom
platform-description
Jul 28, 2017
Merged

Describe new platform:... sections#31
lcarva merged 1 commit intomasterfrom
platform-description

Conversation

@twaugh
Copy link
Member

@twaugh twaugh commented Jul 28, 2017

These sections perform two functions:

  • set the GOARCH architecture name for each platform, if different from
    the platform name

  • allow publishing v1 images on a per-platform basis

Signed-off-by: Tim Waugh twaugh@redhat.com

@twaugh twaugh requested a review from lcarva July 28, 2017 11:22
Platform description
~~~~~~~~~~~~~~~~~~~~

When a section name begins "platform:" it is interpreted not as an
Copy link
Contributor

Choose a reason for hiding this comment

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

"begins with" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.


architecture (optional)
the GOARCH for the platform -- the platform name is assumed to be
the same as the GOARCH is this is not specified
Copy link
Contributor

Choose a reason for hiding this comment

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

"if this" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

is required for. If no platform is specified, no node selector will be
used.

Platform description
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using a prefix to identify platform specific configurations, what if we introduced a new configuration file? osbs_platforms.yaml ?

Not sure if this makes the system more complicated overall. Just mentioning it now because we are unlikely to change it later on.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ideally, the osbs configuration file would already be YAML and we'd add a new key alongside 'instances'.

I think it makes sense to have a single configuration file for this. After all, platform names are used elsewhere in this configuration file, so it's useful to have a nearby reference for what each platform is.

@twaugh twaugh force-pushed the platform-description branch from ea7c585 to d013100 Compare July 28, 2017 12:53
These sections perform two functions:

* set the GOARCH architecture name for each platform, if different from
  the platform name

* allow publishing v1 images on a per-platform basis

Signed-off-by: Tim Waugh <twaugh@redhat.com>
@twaugh twaugh force-pushed the platform-description branch from d013100 to 6ee078b Compare July 28, 2017 12:58
@twaugh
Copy link
Member Author

twaugh commented Jul 28, 2017

Updated, along with the new condition that only one platform is allowed to enable v1.

@lcarva lcarva merged commit 1f1577d into master Jul 28, 2017
@twaugh twaugh deleted the platform-description branch July 28, 2017 13:00
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