schema.yaml 5.42 KB
openapi: 3.0.3
info:
  title: OpenAPI schema for template .
components:
  schemas:
    variables:
      type: object
      required:
      - image
      - name
      - namespace
      properties:
        image:
          title: Image
          type: string
          description: Docker image name
          x-walrus-ui:
            order: 1
            group: Basic
        name:
          title: Name
          type: string
          description: Name of the deployment resource. Auto-generated if empty.
          x-walrus-ui:
            order: 2
            group: Basic
        port:
          title: Port
          type: string
          description: Service ports to expose
          default: "7777"
          nullable: true
          x-walrus-ui:
            order: 3
            group: Advanced
        env:
          title: Env
          type: object
          description: Name and value pairs to set as the environment variables
          default: {}
          nullable: true
          additionalProperties:
            type: string
          x-walrus-ui:
            colSpan: 12
            order: 4
            group: Advanced
        replicas:
          title: Replicas
          type: number
          description: Replicas to deploy
          default: 1
          nullable: true
          x-walrus-ui:
            order: 5
            group: Advanced
        request_cpu:
          title: Request Cpu
          type: string
          description: CPU request. e.g. 0.5, 1, 2
          default: "0.1"
          nullable: true
          x-walrus-ui:
            order: 6
            group: Resources
        request_memory:
          title: Request Memory
          type: string
          description: Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
          default: 128Mi
          nullable: true
          x-walrus-ui:
            order: 7
            group: Resources
        limit_cpu:
          title: Limit Cpu
          type: string
          description: CPU limit. e.g. 0.5, 1, 2
          default: "0.5"
          nullable: true
          x-walrus-ui:
            order: 8
            group: Resources
        limit_memory:
          title: Limit Memory
          type: string
          description: Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
          default: 512Mi
          nullable: true
          x-walrus-ui:
            order: 9
            group: Resources
        probe_http_port:
          title: Probe Http Port
          type: string
          description: (Optional)http port for probe
          default: "7777"
          nullable: true
          x-walrus-ui:
            order: 10
            group: Advanced
        probe_http_path:
          title: Probe Http Path
          type: string
          description: (Optional)http path for probe
          default: /
          nullable: true
          x-walrus-ui:
            order: 11
            group: Advanced
        restart_policy:
          title: Restart Policy
          type: string
          description: Restart policy for all containers within the pod. One of Always,
            OnFailure, Never
          default: Always
          nullable: true
          x-walrus-ui:
            order: 12
            group: Advanced
        ingress_switch:
          title: Ingress Switch
          type: object
          description: choise ingress switch
          default:
            domain_name: null
            path: /
            path_type: ImplementationSpecific
            switch: "off"
          nullable: true
          properties:
            domain_name:
              nullable: true
              title: Domain Name
              type: string
              x-walrus-ui:
                order: 4
                showIf: switch=on
            path:
              default: /
              nullable: true
              title: Path
              type: string
              x-walrus-ui:
                order: 3
                showIf: switch=on
            path_type:
              default: ImplementationSpecific
              enum:
                - ImplementationSpecific
                - Exact
                - Prefix
              nullable: true
              title: Path Type
              type: string
              x-walrus-ui:
                order: 2
                showIf: switch=on
            switch:
              enum:
                - "off"
                - "on"
              nullable: true
              title: Switch
              type: string
              x-walrus-ui:
                order: 1
          x-walrus-ui:
            colSpan: 12
            order: 13
            group: Ingress
        namespace:
          title: Namespace
          type: string
          description: Namespace to deploy. Auto-generated if empty.
          x-walrus-ui:
            order: 14
            group: Basic
        walrus_metadata_service_name:
          title: Walrus Metadata Service Name
          type: string
          description: Walrus metadata service name.
          default: ""
          nullable: true
          x-walrus-ui:
            group: Basic
            hidden: true
            order: 15
        walrus_metadata_namespace_name:
          title: Walrus Metadata Namespace Name
          type: string
          description: Walrus metadata namespace name.
          default: ""
          nullable: true
          x-walrus-ui:
            group: Basic
            hidden: true
            order: 16
      x-walrus-ui:
        groupOrder:
        - Basic
        - Resourced
        - Advanced
        - Ingress