@@ -426,7 +426,7 @@ components:
426426 environment_kind :
427427 allOf :
428428 - $ref : " #/components/schemas/EnvironmentKind"
429- default : custom
429+ default : CUSTOM
430430 required :
431431 - environment_image_source
432432 - environment_kind
@@ -444,7 +444,7 @@ components:
444444 environment_kind :
445445 allOf :
446446 - $ref : " #/components/schemas/EnvironmentKind"
447- default : custom
447+ default : CUSTOM
448448 required :
449449 - build_parameters
450450 - environment_image_source
@@ -545,13 +545,13 @@ components:
545545 port :
546546 $ref : " #/components/schemas/EnvironmentPort"
547547 command :
548- $ref : " #/components/schemas/EnvironmentCommand "
548+ $ref : " #/components/schemas/EnvironmentPatchCommand "
549549 args :
550- $ref : " #/components/schemas/EnvironmentArgs "
550+ $ref : " #/components/schemas/EnvironmentPatchArgs "
551551 is_archived :
552- $ref : " #/components/schemas/IsArchived "
552+ $ref : " #/components/schemas/IsArchivedPatch "
553553 strip_path_prefix :
554- $ref : " #/components/schemas/StripPathPrefix "
554+ $ref : " #/components/schemas/StripPathPrefixPatch "
555555 SessionLaunchersList :
556556 description : A list of Renku session launchers
557557 type : array
@@ -648,6 +648,15 @@ components:
648648 minLength : 1
649649 maxLength : 99
650650 example : My Renku Session :)
651+ BuildPlatforms :
652+ description : The target runtime platforms of a session environment.
653+ type : array
654+ items :
655+ $ref : " #/components/schemas/BuildPlatform"
656+ BuildPlatform :
657+ description : A runtime platform, e.g. "linux/amd64".
658+ type : string
659+ enum : ["linux/amd64", "linux/arm64"]
651660 BuilderVariant :
652661 description : Type of virtual environment manager when building custom environments.
653662 type : string
@@ -728,6 +737,8 @@ components:
728737 properties :
729738 repository :
730739 $ref : " #/components/schemas/Repository"
740+ platforms :
741+ $ref : " #/components/schemas/BuildPlatforms"
731742 builder_variant :
732743 $ref : " #/components/schemas/BuilderVariant"
733744 frontend_variant :
@@ -755,6 +766,8 @@ components:
755766 properties :
756767 repository :
757768 $ref : " #/components/schemas/Repository"
769+ platforms :
770+ $ref : " #/components/schemas/BuildPlatforms"
758771 builder_variant :
759772 $ref : " #/components/schemas/BuilderVariant"
760773 frontend_variant :
@@ -837,16 +850,33 @@ components:
837850 type : string
838851 description : The command that will be run i.e. will overwrite the image Dockerfile ENTRYPOINT, equivalent to command in Kubernetes
839852 minItems : 1
853+ EnvironmentPatchCommand :
854+ type : array
855+ description : The command that will be run i.e. will overwrite the image Dockerfile ENTRYPOINT, equivalent to command in Kubernetes
856+ items :
857+ type : string
858+ nullable : true
859+ minItems : 1
840860 EnvironmentArgs :
841861 type : array
842862 items :
843863 type : string
844864 description : The arguments that will follow the command, i.e. will overwrite the image Dockerfile CMD, equivalent to args in Kubernetes
845865 minItems : 1
866+ EnvironmentPatchArgs :
867+ type : array
868+ description : The arguments that will follow the command, i.e. will overwrite the image Dockerfile CMD, equivalent to args in Kubernetes
869+ items :
870+ type : string
871+ nullable : true
872+ minItems : 1
846873 IsArchived :
847874 type : boolean
848875 description : Whether this environment is archived and not for use in new projects or not
849876 default : false
877+ IsArchivedPatch :
878+ type : boolean
879+ description : Whether this environment is archived and not for use in new projects or not
850880 Build :
851881 description : A container image build
852882 type : object
@@ -921,6 +951,21 @@ components:
921951 the server from the session that generated the HTML page needs to know
922952 what is the full base path (including the part that was stripped) so that
923953 it can make the URLs to such assets be reachable from the browser.
954+ StripPathPrefixPatch :
955+ type : boolean
956+ description : |-
957+ If set to true the default url and the base path where sessions are
958+ served will be removed from all URL paths before the requests reach
959+ the server running in the session. So the server in the session will
960+ receive HTTP requests whose base path will be "/". However this will
961+ not work unless the server running inside the session can be made
962+ aware that paths are rewritten. For example, if the application/server
963+ running in the session serves a HTML page that then loads javascript
964+ and CSS, the path where these assets should be loaded from in the browser
965+ will not be "/" but it has to include the prefix that was stripped. And
966+ the server from the session that generated the HTML page needs to know
967+ what is the full base path (including the part that was stripped) so that
968+ it can make the URLs to such assets be reachable from the browser.
924969 BuildPatch :
925970 description : The requested update of a container image build
926971 type : object
0 commit comments