Provisioning: Use repository view rather than raw config (#103449)

This commit is contained in:
Ryan McKinley
2025-04-07 09:39:31 +03:00
committed by GitHub
parent 8cd6f837a5
commit 8dbaeac9da
22 changed files with 233 additions and 235 deletions
@@ -1212,14 +1212,6 @@ func schema_pkg_apis_provisioning_v0alpha1_RepositoryView(ref common.ReferenceCa
Format: "",
},
},
"readOnly": {
SchemaProps: spec.SchemaProps{
Description: "Edit options within the repository",
Default: false,
Type: []string{"boolean"},
Format: "",
},
},
"type": {
SchemaProps: spec.SchemaProps{
Description: "The repository type\n\nPossible enum values:\n - `\"github\"`\n - `\"local\"`",
@@ -1238,8 +1230,24 @@ func schema_pkg_apis_provisioning_v0alpha1_RepositoryView(ref common.ReferenceCa
Enum: []interface{}{"folder", "instance"},
},
},
"workflows": {
SchemaProps: spec.SchemaProps{
Description: "The supported workflows",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
Enum: []interface{}{"branch", "write"},
},
},
},
},
},
},
Required: []string{"name", "title", "readOnly", "type", "target"},
Required: []string{"name", "title", "type", "target", "workflows"},
},
},
}