Skip to content

Commit

Permalink
topology needs to be string
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Nov 5, 2024
1 parent d881f8e commit b599e73
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha2/minicluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ type FluxSpec struct {

// Specify a custom Topology
// +optional
Topology bool `json:"topology"`
Topology string `json:"topology"`

// Do not wait for the socket
// +optional
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha2/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@
},
"topology": {
"description": "Specify a custom Topology",
"type": "boolean",
"default": false
"type": "string",
"default": ""
},
"wrap": {
"description": "Commands for flux start --wrap",
Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha2/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chart/templates/minicluster-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ spec:
type: string
topology:
description: Specify a custom Topology
type: boolean
type: string
wrap:
description: Commands for flux start --wrap
type: string
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/flux-framework.org_miniclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ spec:
type: string
topology:
description: Specify a custom Topology
type: boolean
type: string
wrap:
description: Commands for flux start --wrap
type: string
Expand Down
2 changes: 1 addition & 1 deletion examples/dist/flux-operator-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ spec:
type: string
topology:
description: Specify a custom Topology
type: boolean
type: string
wrap:
description: Commands for flux start --wrap
type: string
Expand Down
2 changes: 1 addition & 1 deletion examples/dist/flux-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ spec:
type: string
topology:
description: Specify a custom Topology
type: boolean
type: string
wrap:
description: Commands for flux start --wrap
type: string
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/v1alpha2/docs/FluxSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Name | Type | Description | Notes
**option_flags** | **str** | Flux option flags, usually provided with -o optional - if needed, default option flags for the server These can also be set in the user interface to override here. This is only valid for a FluxRunner \&quot;runFlux\&quot; true | [optional] [default to '']
**scheduler** | [**FluxScheduler**](FluxScheduler.md) | | [optional]
**submit_command** | **str** | Modify flux submit to be something else | [optional]
**topology** | **bool** | Specify a custom Topology | [optional] [default to False]
**topology** | **str** | Specify a custom Topology | [optional] [default to '']
**wrap** | **str** | Commands for flux start --wrap | [optional]

## Example
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/v1alpha2/fluxoperator/models/flux_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FluxSpec(BaseModel):
option_flags: Optional[StrictStr] = Field(default='', description="Flux option flags, usually provided with -o optional - if needed, default option flags for the server These can also be set in the user interface to override here. This is only valid for a FluxRunner \"runFlux\" true", alias="optionFlags")
scheduler: Optional[FluxScheduler] = None
submit_command: Optional[StrictStr] = Field(default=None, description="Modify flux submit to be something else", alias="submitCommand")
topology: Optional[StrictBool] = Field(default=False, description="Specify a custom Topology")
topology: Optional[StrictStr] = Field(default='', description="Specify a custom Topology")
wrap: Optional[StrictStr] = Field(default=None, description="Commands for flux start --wrap")
__properties: ClassVar[List[str]] = ["arch", "brokerConfig", "bursting", "completeWorkers", "connectTimeout", "container", "curveCert", "disableSocket", "logLevel", "minimalService", "mungeSecret", "noWaitSocket", "optionFlags", "scheduler", "submitCommand", "topology", "wrap"]

Expand Down Expand Up @@ -123,7 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"optionFlags": obj.get("optionFlags") if obj.get("optionFlags") is not None else '',
"scheduler": FluxScheduler.from_dict(obj["scheduler"]) if obj.get("scheduler") is not None else None,
"submitCommand": obj.get("submitCommand"),
"topology": obj.get("topology") if obj.get("topology") is not None else False,
"topology": obj.get("topology") if obj.get("topology") is not None else '',
"wrap": obj.get("wrap")
})
return _obj
Expand Down

0 comments on commit b599e73

Please sign in to comment.