Provisioning: Allow disabling of image rendering instance wide (#111359)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user