-
Notifications
You must be signed in to change notification settings - Fork 250
6.configuration.md: fix scope in example #127
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
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 |
|---|---|---|
|
|
@@ -112,6 +112,7 @@ This section defines the instances of components to create with this operational | |
| | `instanceName` | `string` | Y | | The name of the instance of this component. | | ||
| | `parameterValues` | [`[]ParameterValue`](#parameterValue) | N | | Overrides of parameters that are exposed by the application scope type defined in `type`. | | ||
| | `traits` | [`[]Trait`](#trait) | N | | Specifies the traits to attach to this component instance. | | ||
| | `applicationScopes` | [`[]string`] | N | | Specifies the application scopes to attach to this component instance. Each item is a name referenced to the defined Scopes in this configuration. | | ||
|
|
||
| In addition to being unique, the `instanceName` must follow these naming rules: | ||
|
|
||
|
|
@@ -163,12 +164,14 @@ spec: | |
| variables: | ||
| - name: VAR_NAME | ||
| value: SUPPLIED_VALUE | ||
| - name: networkName | ||
| value: "" | ||
| scopes: | ||
| - name: core.hydra.io/v1alpha1.Network | ||
| parameterValues: | ||
| - name: PARAM_NAME | ||
| value: SUPPLIED_VALUE | ||
| fromParam: NAME_OF_TOP_LEVEL_PARAM | ||
| - name: myNetworkScope | ||
| type: core.hydra.io/v1alpha1.Network | ||
| properties: | ||
| - name: networkName | ||
| value: "[fromVariable(networkName)]"` | ||
| components: | ||
| - componentName: my-web-app-component | ||
| instanceName: my-app-frontent | ||
|
|
@@ -183,6 +186,8 @@ spec: | |
| properties: | ||
| CUSTOM_OBJECT: | ||
| DATA: "[fromVariable(VAR_NAME)]" | ||
| applicationScopes: | ||
| - myNetworkScope | ||
|
||
|
|
||
| ``` | ||
|
|
||
|
|
||
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.
I suggest the example property be something different, to show it's configuring the application scope (all depending on the applicationScope capabilities)
I know this https://github.com/microsoft/hydra-spec/blob/master/4.application_scopes.md#network-scope is mentioning a networkName, but that's a bit weird as we now have a name as part of the spec and a parameter, so we should og back and get the core network scope fixed as well (will raise an issue)
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.
https://github.com/microsoft/hydra-spec/issues/129
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.
Will be fixed by #140