Skip to content

OAM validation not detecting invalid indentations #7

Open
@jchmielewska

Description

@jchmielewska

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
  • This issue was reported by Robert and moved from Launchpad #2067476 https://bugs.launchpad.net/nebulous/+bug/2067476

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions