[GUI] OAM validation not detecting invalid indentations

Bug #2067476 reported by Robert Sanfeliu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NebulOuS
Triaged
High
Fotis Paraskevopoulos

Bug Description

The following OAM is considered to be valid by the GUI, however, optimizer controller complains about "uld not parse KubeVela YAML in app creation message: while scanning for the next token\nfound character '\\t(TAB)' that cannot start any token. (Do not use \\t(TAB) for indentation)\n in". Also, other online YAML validators, although they don't complain, they change the indentation of the file.

apiVersion: "core.oam.dev/v1beta1"
kind: "Application"
metadata:
  name: "augmenta-app"
spec:
  components:
  - name: "map-generation-demo"
    type: "webservice"
    properties:
      image: augmentacloud/map-generation:latest
      imagePullPolicy: "Always"
      magePullSecrets: ["regcred"]
      cpu: "8.0"
      memory: "2400Mi"
    traits:
    - type: "scaler"
      properties:
        replicas: 1

Changed in nebulous:
importance: Undecided → High
Revision history for this message
Joanna Chmielewska (joannach) wrote :
Changed in nebulous:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.