Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-37415

Define JSON schemas for dynamic resources

XMLWordPrintable

    • Product / Portfolio Work
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None

      Proposed design for storing and validating JSON schemas/payloads

      • The validation will take the respective schemas and validate resources/reporters based on the file names/directories in this setup
      • In this example k8s_cluster.json defines the required fields of a resource_type
      • Reporterdata will then be validated seperatly after the resource data

      └── resources
      │   ├── k8s_cluster
      │   │   ├── config.yaml # Defines what reporters can be associated with a resource│   │   ├── k8s_cluster.json # resource type schema│   │   └── reporters
      │   │   ├── acm
      │   │   │   ├── acm.json # reporter type JSON schema│   │   │   ├── config.yaml # define relation properties/namespace│   │   │  
      │   │   └── ocm
      │   │   ├── config.yaml # define relation properties/namespace│   │   └── ocm.json # reporter type JSON schema

       

      Acceptance criteria

      • Finalize the Schema structure for the Resource configurations

       

              rh-ee-aobrien Adam OBrien
              rhn-it-akoserwa Abhishek Koserwal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: