Scopes: Change redirectUrl to redirectPath (#112783)

* Scopes: change redirectUrl to redirectPath

* Update e2e helpers
This commit is contained in:
Tobias Skarhed
2025-10-22 11:21:14 +02:00
committed by GitHub
parent 9b72973293
commit 2bbba880cd
8 changed files with 21 additions and 19 deletions
+2
View File
@@ -9,3 +9,5 @@ go test --tags "pro" -timeout 30s -run ^TestIntegrationOpenAPIs$ github.com/graf
```
./hack/update-codegen.sh scope
```
This should generate a diff in the Enterprise repo. Make sure to open a PR there too.
+2 -2
View File
@@ -154,8 +154,8 @@ type ScopeNodeSpec struct {
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"`
// Redirect to a specific path when this node is selected.
RedirectPath string `json:"redirectPath,omitempty"`
}
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
@@ -866,9 +866,9 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
Format: "",
},
},
"redirectUrl": {
"redirectPath": {
SchemaProps: spec.SchemaProps{
Description: "Redirect to a specific URL when this node is selected.",
Description: "Redirect to a specific path when this node is selected.",
Type: []string{"string"},
Format: "",
},