@@ -736,7 +736,7 @@ func (t *Token) Equal(other *Token) bool {
736736}
737737
738738type Scope struct {
739- Role string `json:"role" yaml:"role" enum:"administrator,viewer,owner,stack_owner"`
739+ Role string `json:"role" yaml:"role" enum:"administrator,viewer,owner,stack_owner,automation "`
740740}
741741
742742func scopesEqual (a , b []Scope ) bool {
@@ -963,18 +963,6 @@ func (a Datasources) Equal(b Datasources) bool {
963963 return setEqual (a , b , func (ds Datasource ) string { return ds .Name }, func (a , b Datasource ) bool { return a .Equal (& b ) })
964964}
965965
966- type Service struct {
967- // ReconfigurationInterval is the duration between configuration checks, i.e. when a change
968- // to a bundle/stack/source will have an effect on the internal bundle workers.
969- // String of a duration, e.g. "1m". Defaults to "15s".
970- ReconfigurationInterval * time.Duration `json:"reconfiguration_interval,omitempty" yaml:"reconfiguration_interval,omitempty"`
971-
972- // BundleRebuildInterval is the time between bundle builds: After a bundle build as finished,
973- // OCP will wait _this long_ until it's build again (unless the bundle build is triggered by
974- // other means). String duration, e.g. "90s". Defaults to "30s".
975- BundleRebuildInterval * time.Duration `json:"bundle_rebuild_interval,omitempty" yaml:"bundle_rebuild_interval,omitempty"`
976- }
977-
978966type Database struct {
979967 SQL * SQLDatabase `json:"sql,omitempty" yaml:"sql,omitempty"`
980968 AWSRDS * AmazonRDS `json:"aws_rds,omitempty" yaml:"aws_rds,omitempty"`
@@ -1003,6 +991,16 @@ type Service struct {
1003991 // ApiPrefix prefixes all endpoints (including health and metrics) with its value. It is important to start with `/` and not end with `/`.
1004992 // For example `/my/path` will make health endpoint be accessible under `/my/path/health`
1005993 ApiPrefix string `json:"api_prefix,omitempty" yaml:"api_prefix,omitempty" pattern:"^/([^/].*[^/])?$"`
994+
995+ // ReconfigurationInterval is the duration between configuration checks, i.e. when a change
996+ // to a bundle/stack/source will have an effect on the internal bundle workers.
997+ // String of a duration, e.g. "1m". Defaults to "15s".
998+ ReconfigurationInterval * time.Duration `json:"reconfiguration_interval,omitempty" yaml:"reconfiguration_interval,omitempty"`
999+
1000+ // BundleRebuildInterval is the time between bundle builds: After a bundle build as finished,
1001+ // OCP will wait _this long_ until it's build again (unless the bundle build is triggered by
1002+ // other means). String duration, e.g. "90s". Defaults to "30s".
1003+ BundleRebuildInterval * time.Duration `json:"bundle_rebuild_interval,omitempty" yaml:"bundle_rebuild_interval,omitempty"`
10061004}
10071005
10081006func setEqual [K comparable , V any ](a , b []V , key func (V ) K , eq func (a , b V ) bool ) bool {
0 commit comments