@@ -202,21 +202,21 @@ func (o *AppsServerOptions) Config() (*apiserver.Config, error) {
202
202
defs := swagger .Definitions
203
203
204
204
// Verify the presence of the base Application/ApplicationList definitions
205
- appDef , exists := defs ["com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.Application" ]
205
+ appDef , exists := defs ["com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.Application" ]
206
206
if ! exists {
207
207
return swagger , fmt .Errorf ("Application definition not found" )
208
208
}
209
209
210
- listDef , exists := defs ["com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.ApplicationList" ]
210
+ listDef , exists := defs ["com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.ApplicationList" ]
211
211
if ! exists {
212
212
return swagger , fmt .Errorf ("ApplicationList definition not found" )
213
213
}
214
214
215
215
// Iterate over all registered GVKs (e.g., Bucket, Database, etc.)
216
216
for _ , gvk := range v1alpha1 .RegisteredGVKs {
217
217
// This will be something like:
218
- // "com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.Bucket"
219
- resourceName := fmt .Sprintf ("com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.%s" , gvk .Kind )
218
+ // "com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.Bucket"
219
+ resourceName := fmt .Sprintf ("com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.%s" , gvk .Kind )
220
220
221
221
// 1. Create a copy of the base Application definition for the new resource
222
222
newDef , err := DeepCopySchema (& appDef )
@@ -242,7 +242,7 @@ func (o *AppsServerOptions) Config() (*apiserver.Config, error) {
242
242
243
243
// 4. Now handle the corresponding List type (e.g., BucketList).
244
244
// We'll start by copying the ApplicationList definition.
245
- listResourceName := fmt .Sprintf ("com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.%sList" , gvk .Kind )
245
+ listResourceName := fmt .Sprintf ("com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.%sList" , gvk .Kind )
246
246
newListDef , err := DeepCopySchema (& listDef )
247
247
if err != nil {
248
248
return nil , fmt .Errorf ("failed to deepcopy schema for %sList: %w" , gvk .Kind , err )
@@ -275,8 +275,8 @@ func (o *AppsServerOptions) Config() (*apiserver.Config, error) {
275
275
}
276
276
277
277
// Remove the original Application/ApplicationList from the definitions
278
- delete (defs , "com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.Application" )
279
- delete (defs , "com.github.aenix. io.cozystack.pkg.apis.apps.v1alpha1.ApplicationList" )
278
+ delete (defs , "com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.Application" )
279
+ delete (defs , "com.github.aenix- io.cozystack.pkg.apis.apps.v1alpha1.ApplicationList" )
280
280
281
281
swagger .Definitions = defs
282
282
return swagger , nil
0 commit comments