Provisioning: Allow disabling of image rendering instance wide (#111359)

This commit is contained in:
Stephanie Hingtgen
2025-09-19 12:40:14 +03:00
committed by GitHub
parent 19be779274
commit 15ee224da5
13 changed files with 113 additions and 47 deletions
@@ -17,6 +17,9 @@ type RepositoryViewList struct {
// The valid targets (can disable instance or folder types)
AllowedTargets []SyncTargetType `json:"allowedTargets,omitempty"`
// Whether image rendering is allowed for dashboard previews
AllowImageRendering bool `json:"allowImageRendering"`
// AvailableRepositoryTypes is the list of repository types supported in this instance (e.g. git, bitbucket, github, etc)
AvailableRepositoryTypes []RepositoryType `json:"availableRepositoryTypes,omitempty"`
@@ -1750,6 +1750,14 @@ func schema_pkg_apis_provisioning_v0alpha1_RepositoryViewList(ref common.Referen
},
},
},
"allowImageRendering": {
SchemaProps: spec.SchemaProps{
Description: "Whether image rendering is allowed for dashboard previews",
Default: false,
Type: []string{"boolean"},
Format: "",
},
},
"availableRepositoryTypes": {
SchemaProps: spec.SchemaProps{
Description: "AvailableRepositoryTypes is the list of repository types supported in this instance (e.g. git, bitbucket, github, etc)",
@@ -1785,7 +1793,7 @@ func schema_pkg_apis_provisioning_v0alpha1_RepositoryViewList(ref common.Referen
},
},
},
Required: []string{"items"},
Required: []string{"allowImageRendering", "items"},
},
},
Dependencies: []string{