schema.yaml 7.1 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:
            group: Basic
            order: 1
        namespace:
          title: Namespace
          type: string
          description: Namespace to deploy. Auto-generated if empty.
          x-walrus-ui:
            group: Basic
            order: 2
        name:
          title: Name
          type: string
          description: Name of the deployment resource. Auto-generated if empty.
          x-walrus-ui:
            group: Basic
            order: 3
        ports:
          title: Ports
          type: array
          description: Service ports to expose
          default:
          - 6666
          items:
            type: number
          nullable: true
          x-walrus-ui:
            colSpan: 12
            group: Advanced
            order: 4
        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
            group: Advanced
            order: 5
        replicas:
          title: Replicas
          type: number
          description: Replicas to deploy
          default: 1
          nullable: true
          x-walrus-ui:
            group: Advanced
            order: 6
        request_cpu:
          title: Request Cpu
          type: string
          description: CPU request. e.g. 0.5, 1, 2
          default: "0.3"
          enum:
          - 0.2
          - 0.3
          - 0.4
          - 0.5
          - 1
          - 2
          nullable: true
          x-walrus-ui:
            group: Resources
            order: 7
        request_memory:
          title: Request Memory
          type: string
          description: Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
          default: 512Mi
          enum:
          - 128Mi
          - 512Mi
          - 1Gi
          - 2Gi
          - 3Gi
          - 4Gi
          nullable: true
          x-walrus-ui:
            group: Resources
            order: 8
        limit_cpu:
          title: Limit Cpu
          type: string
          description: CPU limit. e.g. 0.5, 1, 2
          default: "0.5"
          enum:
          - 0.2
          - 0.3
          - 0.4
          - 0.5
          - 1
          - 2
          - 3
          nullable: true
          x-walrus-ui:
            group: Resources
            order: 9
        limit_memory:
          title: Limit Memory
          type: string
          description: Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi
          default: 1Gi
          enum:
          - 128Mi
          - 512Mi
          - 1Gi
          - 2Gi
          - 3Gi
          - 4Gi
          nullable: true
          x-walrus-ui:
            group: Resources
            order: 10
        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: 11
        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: 12
        app_log_path_volume_name:
          title: App Log Path Volume Name
          type: string
          description: '应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc'
          default: app-log-path
          nullable: true
          x-walrus-ui:
            group: Advanced
            order: 13
        app_log_path:
          title: App Log Path
          type: string
          default: /data/java_log
          nullable: true
          x-walrus-ui:
            group: Advanced
            order: 14
        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:
            group: Advanced
            order: 15
        args:
          title: Args
          type: string
          description: 属于那个环境,例子:dev,test,beta,release, gh_release, gh_beta, testcdp,
            testscrm
          default:
          - test
          enum:
          - dev
          - test
          - beta
          - release
          - gh_release
          - gh_beta
          - testcdp
          - testscrm
          items:
            type: string
          nullable: true
          x-walrus-ui:
            colSpan: 12
            group: Advanced
            order: 16
        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:
              nullable: true
              title: Path
              type: string
              x-walrus-ui:
                order: 3
                showIf: switch=on
            path_type:
              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
            group: Ingress
            order: 17
        hosts:
          title: Hosts
          type: array
          description: (Optional) Add /etc/hosts records to pods
          default: []
          items:
            properties:
              hostname:
                items:
                  type: string
                title: Hostname
                type: array
                x-walrus-ui:
                  colSpan: 12
                  order: 1
              ip:
                title: Ip
                type: string
                x-walrus-ui:
                  order: 2
            required:
            - hostname
            - ip
            type: object
            x-walrus-ui:
              colSpan: 12
          nullable: true
          x-walrus-ui:
            colSpan: 12
            group: Advanced
            order: 18
      x-walrus-ui:
        groupOrder:
        - Basic
        - Resourced
        - Advanced
        - Ingress