-
Notifications
You must be signed in to change notification settings - Fork 550
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
Add labels to the state #188
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ This allows the hooks to perform cleanup and teardown logic after the runtime de | |
* **`bundlePath`**: (string) is the absolute path to the container's bundle directory. | ||
This is provided so that consumers can find the container's configuration and root filesystem on the host. | ||
|
||
* **`annotations`**: (interface) holds runtime-specified information that is not structured by this specification. | ||
The runtime could store experimental information here before it's standardized in this specification. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a recommended format for the values? Is it byte encoded or string or something else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is one of the use-cases. Clarify that. In the future, we can add experimental API versions, which might handle this use-case. |
||
|
||
*Example* | ||
|
||
```json | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ type State struct { | |
Pid int `json:"pid"` | ||
// BundlePath is the path to the container's bundle directory. | ||
BundlePath string `json:"bundlePath"` | ||
// Annotations holds runtime-specified information that is not structured by this specification. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we mentioning There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Mon, Nov 16, 2015 at 08:01:42PM -0800, Vish Kannan wrote:
No, we're reserving this namespace for the runtime to define. So There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't find out other users of annotations right now, can you show me the use case? absolutely you can read it, but right now only runtime stores information in it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we rename There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Wed, Dec 16, 2015 at 10:36:16AM -0800, Vish Kannan wrote:
This is runtime-specified information. User information just goes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But what prevents users from adding their own metadata here? At the Spec level, why do we have to differentiate between runtimes and other users? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Mon, Jan 04, 2016 at 11:45:11AM -0800, Vish Kannan wrote:
There are no technical limits to something like 1, but with a |
||
Annotations interface{} `json:"annotations"` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does an
interface
mean outside of golang?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Mon, Nov 16, 2015 at 07:59:57PM -0800, Vish Kannan wrote:
Data with an unspecified schema. E.g. void* in C 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, this is weird. We are already saying this is JSON encoded, so we should just say the type here is an arbitrary JSON type (either an object or a value). "interface" is unhelpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
On Wed, Dec 16, 2015 at 10:53 AM, Jonathan Boulle [email protected]
wrote:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Wed, Dec 16, 2015 at 10:53:41AM -0800, Jonathan Boulle wrote:
“interface” is a Go-ism. So I'm fine with interface in the Go type
and “JSON” in these Markdown docs.