Skip to content

add initial one-pager for stack ui metadata#605

Merged
jbw976 merged 1 commit intocrossplane:masterfrom
displague:design-ui-metadata
Aug 9, 2019
Merged

add initial one-pager for stack ui metadata#605
jbw976 merged 1 commit intocrossplane:masterfrom
displague:design-ui-metadata

Conversation

@displague
Copy link
Copy Markdown
Member

@displague displague commented Jul 26, 2019

Add an initial one-pager draft for how Stacks should bundle UI
annotations.

This document was initially drafted by @rathpc out of tree.

Closes #544

[skip ci]

Comment thread design/one-pager-stack-ui-metadata.md
Comment thread design/one-pager-stack-ui-metadata.md Outdated
Comment thread design/one-pager-stack-ui-metadata.md
.registry/
├── icon.png
├── app.yaml # Application metadata.
├── ui-schema.yaml # Optional UI spec for configuration metadata
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what does a ui-schema.yaml file at the root mean vs. one that is scoped to a single CRD? How would one at the root be processed and consumed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've wondered if there is may be reasons to annotate the Extension itself in addition to the extension created CRD, for visual package-configuration aids (like debconf).

@rathpc, what did you have in mind here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a valid question. The inclusion of these different specs was originally added by @lukeweber and I believe the intention was to have a fallback during the consumption/overlay process that creates the annotation. If a specific CRD version does not contain the ui-schema.yaml file it would look for a root fallback to consume instead. This is really only necessary if a CRD has a mandatory requirement for a ui field, version agnostic. That is why it is also listed as optional.

Let me know if you need further clarification on this or if you guys have other thoughts. Thanks!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added this reasoning in 13b4da9 .. I'm still wondering if Extensions themselves (and not the CRDs they provide/manage) may be able to take advantage of UI markup. (Configuring your Provider's credentials in an Infra Stack, for example).

Comment thread design/one-pager-stack-ui-metadata.md
Comment thread design/one-pager-stack-ui-metadata.md
Comment thread design/one-pager-stack-ui-metadata.md Outdated
@upbound-bot
Copy link
Copy Markdown
Collaborator

66% (+0.09%) vs master 66%

@displague displague requested a review from jbw976 August 2, 2019 04:20
@upbound-bot
Copy link
Copy Markdown
Collaborator

66% (+0.09%) vs master 66%

@upbound-bot
Copy link
Copy Markdown
Collaborator

66% (+0.3%) vs master 65%

Comment thread design/one-pager-stack-ui-metadata.md Outdated
Comment thread design/one-pager-stack-ui-metadata.md Outdated
Comment thread design/one-pager-stack-ui-metadata.md
@upbound-bot
Copy link
Copy Markdown
Collaborator

66% (+0.42%) vs master 65%

Copy link
Copy Markdown
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

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

Cool @displague, this looks good to me now, let's get this merged and then we can focus and converge on #604.

Can you please squash into logical commits before merging?

@displague displague force-pushed the design-ui-metadata branch from 6b00a4d to f56f91a Compare August 9, 2019 18:59
@displague
Copy link
Copy Markdown
Member Author

Let me know if you want the others squashed (or feel free to use the Github Squash+Merge).

There's no past like the present.

Add an initial one-pager draft for how Stacks should bundle UI
annotations.

This document was initially drafted by @rathpc out of tree.

Signed-off-by: Marques Johansson <marques@upbound.io>
@displague displague force-pushed the design-ui-metadata branch from f56f91a to 2edc99e Compare August 9, 2019 19:23
@jbw976 jbw976 merged commit f5809ac into crossplane:master Aug 9, 2019
@displague displague deleted the design-ui-metadata branch August 9, 2019 19:26
@displague displague mentioned this pull request Aug 24, 2019
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Package/Resource UI configuration metadata

6 participants