Scopes: Add redirectUrl to ScopeNode (#112699)

* Scopes: Add redirectUrl to ScopeNode

* Update go mod
This commit is contained in:
Tobias Skarhed
2025-10-21 09:44:35 +00:00
committed by GitHub
parent f7070b8ccc
commit 4ac8063bda
5 changed files with 24 additions and 3 deletions
@@ -153,6 +153,9 @@ type ScopeNodeSpec struct {
LinkType LinkType `json:"linkType,omitempty"` // scope (later more things)
LinkID string `json:"linkId,omitempty"` // the k8s name
// ?? should this be a slice of links
// Redirect to a specific URL when this node is selected.
RedirectUrl string `json:"redirectUrl,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
@@ -866,6 +866,13 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
Format: "",
},
},
"redirectUrl": {
SchemaProps: spec.SchemaProps{
Description: "Redirect to a specific URL when this node is selected.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"nodeType", "title", "disableMultiSelect"},
},