Skip to content

Commit 40bb962

Browse files
committed
cmscs added
1 parent f8a42bc commit 40bb962

File tree

3 files changed

+395
-2
lines changed

3 files changed

+395
-2
lines changed

specs/template/config-maps.yaml

Lines changed: 391 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,397 @@ paths:
396396
schema:
397397
$ref: '#/components/schemas/Error'
398398

399+
/orchestrator/config/global/cs:
400+
post:
401+
description: Create or update a global Secret
402+
operationId: CSGlobalAddUpdate
403+
requestBody:
404+
required: true
405+
content:
406+
application/json:
407+
schema:
408+
$ref: '#/components/schemas/ConfigDataRequest'
409+
responses:
410+
'200':
411+
description: Successfully created/updated Secret
412+
content:
413+
application/json:
414+
schema:
415+
$ref: '#/components/schemas/ConfigDataRequest'
416+
'400':
417+
description: Bad request
418+
content:
419+
application/json:
420+
schema:
421+
$ref: '#/components/schemas/Error'
422+
'401':
423+
description: Unauthorized user
424+
content:
425+
application/json:
426+
schema:
427+
$ref: '#/components/schemas/Error'
428+
'403':
429+
description: Forbidden, user is not authorized
430+
content:
431+
application/json:
432+
schema:
433+
$ref: '#/components/schemas/Error'
434+
'500':
435+
description: Internal server error
436+
content:
437+
application/json:
438+
schema:
439+
$ref: '#/components/schemas/Error'
440+
441+
/orchestrator/config/environment/cs:
442+
post:
443+
description: Create or update an environment-specific Secret
444+
operationId: CSEnvironmentAddUpdate
445+
requestBody:
446+
required: true
447+
content:
448+
application/json:
449+
schema:
450+
$ref: '#/components/schemas/ConfigDataRequest'
451+
responses:
452+
'200':
453+
description: Successfully created/updated Secret
454+
content:
455+
application/json:
456+
schema:
457+
$ref: '#/components/schemas/ConfigDataRequest'
458+
'400':
459+
description: Bad request
460+
content:
461+
application/json:
462+
schema:
463+
$ref: '#/components/schemas/Error'
464+
'401':
465+
description: Unauthorized user
466+
content:
467+
application/json:
468+
schema:
469+
$ref: '#/components/schemas/Error'
470+
'403':
471+
description: Forbidden, user is not authorized
472+
content:
473+
application/json:
474+
schema:
475+
$ref: '#/components/schemas/Error'
476+
'500':
477+
description: Internal server error
478+
content:
479+
application/json:
480+
schema:
481+
$ref: '#/components/schemas/Error'
482+
483+
/orchestrator/config/global/cs/{appId}:
484+
get:
485+
description: Get all global Secrets for an application
486+
operationId: CSGlobalFetch
487+
parameters:
488+
- name: appId
489+
in: path
490+
required: true
491+
schema:
492+
type: integer
493+
responses:
494+
'200':
495+
description: Successfully retrieved Secrets
496+
content:
497+
application/json:
498+
schema:
499+
$ref: '#/components/schemas/ConfigDataRequest'
500+
'400':
501+
description: Bad request
502+
content:
503+
application/json:
504+
schema:
505+
$ref: '#/components/schemas/Error'
506+
'401':
507+
description: Unauthorized user
508+
content:
509+
application/json:
510+
schema:
511+
$ref: '#/components/schemas/Error'
512+
'403':
513+
description: Forbidden, user is not authorized
514+
content:
515+
application/json:
516+
schema:
517+
$ref: '#/components/schemas/Error'
518+
'500':
519+
description: Internal server error
520+
content:
521+
application/json:
522+
schema:
523+
$ref: '#/components/schemas/Error'
524+
525+
/orchestrator/config/environment/cs/{appId}/{envId}:
526+
get:
527+
description: Get all environment-specific Secrets for an application
528+
operationId: CSEnvironmentFetch
529+
parameters:
530+
- name: appId
531+
in: path
532+
required: true
533+
schema:
534+
type: integer
535+
- name: envId
536+
in: path
537+
required: true
538+
schema:
539+
type: integer
540+
responses:
541+
'200':
542+
description: Successfully retrieved Secrets
543+
content:
544+
application/json:
545+
schema:
546+
$ref: '#/components/schemas/ConfigDataRequest'
547+
'400':
548+
description: Bad request
549+
content:
550+
application/json:
551+
schema:
552+
$ref: '#/components/schemas/Error'
553+
'401':
554+
description: Unauthorized user
555+
content:
556+
application/json:
557+
schema:
558+
$ref: '#/components/schemas/Error'
559+
'403':
560+
description: Forbidden, user is not authorized
561+
content:
562+
application/json:
563+
schema:
564+
$ref: '#/components/schemas/Error'
565+
'500':
566+
description: Internal server error
567+
content:
568+
application/json:
569+
schema:
570+
$ref: '#/components/schemas/Error'
571+
572+
/orchestrator/config/global/cs/edit/{appId}/{id}:
573+
get:
574+
description: Get a global Secret for editing
575+
operationId: CSGlobalFetchForEdit
576+
parameters:
577+
- name: appId
578+
in: path
579+
required: true
580+
schema:
581+
type: integer
582+
- name: id
583+
in: path
584+
required: true
585+
schema:
586+
type: integer
587+
- name: name
588+
in: query
589+
required: true
590+
schema:
591+
type: string
592+
responses:
593+
'200':
594+
description: Successfully retrieved Secret
595+
content:
596+
application/json:
597+
schema:
598+
$ref: '#/components/schemas/ConfigDataRequest'
599+
'400':
600+
description: Bad request
601+
content:
602+
application/json:
603+
schema:
604+
$ref: '#/components/schemas/Error'
605+
'401':
606+
description: Unauthorized user
607+
content:
608+
application/json:
609+
schema:
610+
$ref: '#/components/schemas/Error'
611+
'403':
612+
description: Forbidden, user is not authorized
613+
content:
614+
application/json:
615+
schema:
616+
$ref: '#/components/schemas/Error'
617+
'500':
618+
description: Internal server error
619+
content:
620+
application/json:
621+
schema:
622+
$ref: '#/components/schemas/Error'
623+
624+
/orchestrator/config/environment/cs/edit/{appId}/{envId}/{id}:
625+
get:
626+
description: Get an environment-specific Secret for editing
627+
operationId: CSEnvironmentFetchForEdit
628+
parameters:
629+
- name: appId
630+
in: path
631+
required: true
632+
schema:
633+
type: integer
634+
- name: envId
635+
in: path
636+
required: true
637+
schema:
638+
type: integer
639+
- name: id
640+
in: path
641+
required: true
642+
schema:
643+
type: integer
644+
- name: name
645+
in: query
646+
required: true
647+
schema:
648+
type: string
649+
responses:
650+
'200':
651+
description: Successfully retrieved Secret
652+
content:
653+
application/json:
654+
schema:
655+
$ref: '#/components/schemas/ConfigDataRequest'
656+
'400':
657+
description: Bad request
658+
content:
659+
application/json:
660+
schema:
661+
$ref: '#/components/schemas/Error'
662+
'401':
663+
description: Unauthorized user
664+
content:
665+
application/json:
666+
schema:
667+
$ref: '#/components/schemas/Error'
668+
'403':
669+
description: Forbidden, user is not authorized
670+
content:
671+
application/json:
672+
schema:
673+
$ref: '#/components/schemas/Error'
674+
'500':
675+
description: Internal server error
676+
content:
677+
application/json:
678+
schema:
679+
$ref: '#/components/schemas/Error'
680+
681+
/orchestrator/config/global/cs/{appId}/{id}:
682+
delete:
683+
description: Delete a global Secret
684+
operationId: CSGlobalDelete
685+
parameters:
686+
- name: appId
687+
in: path
688+
required: true
689+
schema:
690+
type: integer
691+
- name: id
692+
in: path
693+
required: true
694+
schema:
695+
type: integer
696+
- name: name
697+
in: query
698+
required: true
699+
schema:
700+
type: string
701+
responses:
702+
'200':
703+
description: Successfully deleted Secret
704+
content:
705+
application/json:
706+
schema:
707+
type: boolean
708+
'400':
709+
description: Bad request
710+
content:
711+
application/json:
712+
schema:
713+
$ref: '#/components/schemas/Error'
714+
'401':
715+
description: Unauthorized user
716+
content:
717+
application/json:
718+
schema:
719+
$ref: '#/components/schemas/Error'
720+
'403':
721+
description: Forbidden, user is not authorized
722+
content:
723+
application/json:
724+
schema:
725+
$ref: '#/components/schemas/Error'
726+
'500':
727+
description: Internal server error
728+
content:
729+
application/json:
730+
schema:
731+
$ref: '#/components/schemas/Error'
732+
733+
/orchestrator/config/environment/cs/{appId}/{envId}/{id}:
734+
delete:
735+
description: Delete an environment-specific Secret
736+
operationId: CSEnvironmentDelete
737+
parameters:
738+
- name: appId
739+
in: path
740+
required: true
741+
schema:
742+
type: integer
743+
- name: envId
744+
in: path
745+
required: true
746+
schema:
747+
type: integer
748+
- name: id
749+
in: path
750+
required: true
751+
schema:
752+
type: integer
753+
- name: name
754+
in: query
755+
required: true
756+
schema:
757+
type: string
758+
responses:
759+
'200':
760+
description: Successfully deleted Secret
761+
content:
762+
application/json:
763+
schema:
764+
type: boolean
765+
'400':
766+
description: Bad request
767+
content:
768+
application/json:
769+
schema:
770+
$ref: '#/components/schemas/Error'
771+
'401':
772+
description: Unauthorized user
773+
content:
774+
application/json:
775+
schema:
776+
$ref: '#/components/schemas/Error'
777+
'403':
778+
description: Forbidden, user is not authorized
779+
content:
780+
application/json:
781+
schema:
782+
$ref: '#/components/schemas/Error'
783+
'500':
784+
description: Internal server error
785+
content:
786+
application/json:
787+
schema:
788+
$ref: '#/components/schemas/Error'
789+
399790
/orchestrator/config/bulk/patch:
400791
post:
401792
description: Bulk patch ConfigMaps and Secrets

0 commit comments

Comments
 (0)