ソースを参照

remove deprecated schema files

Mohammed Nafees 3 年 前
コミット
ffe9ae9261

+ 0 - 201
internal/integrations/preview/embed/deploy_driver.schema.json.unused

@@ -1,201 +0,0 @@
-{
-  "$schema": "http://json-schema.org/schema#",
-  "title": "schema for the default deploy driver",
-  "type": "object",
-  "properties": {
-    "name": {
-      "type": "string",
-      "description": "resource name",
-      "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
-      "maxLength": 50
-    },
-    "driver": {
-      "type": "string",
-      "description": "resource driver",
-      "enum": ["deploy", ""]
-    },
-    "depends_on": {
-      "type": "array",
-      "description": "list of resource names this resource depends on",
-      "minItems": 1,
-      "items": {
-        "type": "string",
-        "description": "dependency resource name",
-        "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
-        "maxLength": 50
-      }
-    },
-    "source": {
-      "type": "object",
-      "description": "resource source",
-      "properties": {
-        "name": {
-          "type": "string",
-          "description": "source Helm chart name"
-        },
-        "version": {
-          "type": "string",
-          "description": "source Helm chart version"
-        },
-        "repo": {
-          "type": "string",
-          "description": "source Helm chart repo URL",
-          "default": "https://charts.getporter.dev"
-        }
-      },
-      "required": ["name"]
-    },
-    "target": {
-      "type": "object",
-      "description": "resource target",
-      "properties": {
-        "project": {
-          "type": "integer",
-          "description": "target Porter project ID"
-        },
-        "cluster": {
-          "type": "integer",
-          "description": "target Porter cluster ID"
-        },
-        "namespace": {
-          "type": "string",
-          "description": "target namespace"
-        }
-      }
-    },
-    "config": {
-      "type": "object",
-      "description": "resource configuration",
-      "additionalProperties": true
-    },
-    "if": {
-      "properties": {
-        "source": {
-          "properties": { "repo": { "const": "https://charts.getporter.dev" } }
-        }
-      }
-    },
-    "then": {
-      "properties": {
-        "config": {
-          "properties": {
-            "waitForJob": {
-              "type": "boolean",
-              "description": "wait for job to complete"
-            },
-            "onlyCreate": {
-              "type": "boolean",
-              "description": "only create the resource"
-            },
-            "build": {
-              "type": "object",
-              "description": "build configuration",
-              "properties": {
-                "use_cache": {
-                  "type": "boolean",
-                  "description": "use Porter build cache"
-                },
-                "method": {
-                  "type": "string",
-                  "description": "build method",
-                  "default": "docker",
-                  "enum": ["docker", "pack", "registry"]
-                },
-                "context": {
-                  "type": "string",
-                  "description": "build context"
-                },
-                "dockerfile": {
-                  "type": "string",
-                  "description": "Dockerfile path"
-                },
-                "image": {
-                  "type": "string",
-                  "description": "image name"
-                },
-                "builder": {
-                  "type": "string",
-                  "description": "buildpacks builder image"
-                },
-                "buildpacks": {
-                  "type": "array",
-                  "description": "list of buildpacks",
-                  "minItems": 1,
-                  "items": {
-                    "type": "string",
-                    "description": "buildpack"
-                  }
-                },
-                "env": {
-                  "type": "object",
-                  "description": "build-time environment variables",
-                  "additionalProperties": { "type": "string" }
-                }
-              },
-              "allOf": [
-                {
-                  "if": {
-                    "properties": {
-                      "method": { "const": "docker" }
-                    }
-                  },
-                  "then": {
-                    "dependentRequired": {
-                      "method": ["dockerfile"]
-                    }
-                  }
-                },
-                {
-                  "if": {
-                    "properties": {
-                      "method": { "const": "registry" }
-                    }
-                  },
-                  "then": {
-                    "dependentRequired": {
-                      "method": ["image"]
-                    }
-                  }
-                }
-              ]
-            },
-            "env_groups": {
-              "type": "array",
-              "description": "list of environment groups to use in the deployment",
-              "minItems": 1,
-              "items": {
-                "type": "object",
-                "description": "environment group",
-                "properties": {
-                  "name": {
-                    "type": "string",
-                    "description": "environment group name"
-                  },
-                  "version": {
-                    "type": "integer",
-                    "minimum": 0,
-                    "default": 0,
-                    "description": "environment group version"
-                  },
-                  "namespace": {
-                    "type": "string",
-                    "description": "environment group namespace"
-                  }
-                },
-                "required": ["name"]
-              }
-            },
-            "values": {
-              "type": "object",
-              "description": "Helm values to use for the deployment",
-              "additionalProperties": true
-            }
-          },
-          "required": ["build"]
-        }
-      },
-      "required": ["config"]
-    }
-  },
-  "required": ["name", "source"]
-}

+ 0 - 73
internal/integrations/preview/embed/job.values.schema.json

@@ -1,73 +0,0 @@
-{
-  "$schema": "http://json-schema.org/schema#",
-  "type": "object",
-  "properties": {
-    "replicaCount": {
-      "type": "integer",
-      "minimum": 1,
-      "default": 1
-    },
-    "container": {
-      "type": "object",
-      "properties": {
-        "port": {
-          "type": "integer",
-          "default": 80
-        },
-        "command": {
-          "type": "string"
-        },
-        "env": {
-          "type": "object",
-          "properties": {
-            "normal": {
-              "type": "object",
-              "additionalProperties": {
-                "type": "string"
-              }
-            }
-          }
-        }
-      }
-    },
-    "schedule": {
-      "type": "object",
-      "properties": {
-        "enabled": {
-          "type": "boolean",
-          "default": false
-        },
-        "value": {
-          "type": "string",
-          "default": "*/5 * * * *"
-        },
-        "successfulHistory": {
-          "type": "integer",
-          "default": 20
-        },
-        "failedHistory": {
-          "type": "integer",
-          "default": 20
-        }
-      }
-    },
-    "resources": {
-      "type": "object",
-      "properties": {
-        "requests": {
-          "type": "object",
-          "properties": {
-            "cpu": {
-              "type": "string",
-              "pattern": "^\\d+(m){0,1}$"
-            },
-            "memory": {
-              "type": "string",
-              "pattern": "^\\d+(Ki|Mi|Gi)$"
-            }
-          }
-        }
-      }
-    }
-  }
-}

+ 0 - 90
internal/integrations/preview/embed/porteryaml.schema.json.unused

@@ -1,90 +0,0 @@
-{
-  "$schema": "http://json-schema.org/schema#",
-  "type": "object",
-  "properties": {
-    "version": {
-      "type": "string",
-      "description": "porter.yaml version",
-      "pattern": "^v[1-9][0-9]*$"
-    },
-    "resources": {
-      "type": "array",
-      "description": "list of resources",
-      "minItems": 1,
-      "items": {
-        "type": "object",
-        "properties": {
-          "name": {
-            "type": "string",
-            "description": "resource name",
-            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
-            "maxLength": 50
-          },
-          "driver": {
-            "type": "string",
-            "description": "resource driver"
-          },
-          "depends_on": {
-            "type": "array",
-            "description": "list of resource names this resource depends on",
-            "minItems": 1,
-            "items": {
-              "type": "string",
-              "description": "dependency resource name",
-              "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
-              "maxLength": 50
-            }
-          },
-          "source": {
-            "type": "object",
-            "description": "resource source",
-            "properties": {
-              "name": {
-                "type": "string",
-                "description": "source Helm chart name"
-              },
-              "version": {
-                "type": "string",
-                "description": "source Helm chart version"
-              },
-              "repo": {
-                "type": "string",
-                "description": "source Helm chart repo URL"
-              }
-            }
-          },
-          "target": {
-            "type": "object",
-            "description": "resource target",
-            "properties": {
-              "project": {
-                "type": "integer",
-                "description": "target Porter project ID"
-              },
-              "cluster": {
-                "type": "integer",
-                "description": "target Porter cluster ID"
-              },
-              "namespace": {
-                "type": "string",
-                "description": "target namespace"
-              },
-              "app_name": {
-                "type": "string",
-                "description": "target app name",
-                "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
-                "maxLength": 50
-              }
-            }
-          },
-          "config": {
-            "type": "object",
-            "description": "resource config"
-          }
-        },
-        "required": ["name"]
-      }
-    }
-  },
-  "required": ["version", "resources"]
-}

+ 0 - 289
internal/integrations/preview/embed/web.values.schema.json

@@ -1,289 +0,0 @@
-{
-  "$schema": "http://json-schema.org/schema#",
-  "type": "object",
-  "properties": {
-    "replicaCount": {
-      "type": "integer",
-      "minimum": 1,
-      "default": 1
-    },
-    "ingress": {
-      "type": "object",
-      "properties": {
-        "enabled": {
-          "type": "boolean",
-          "default": true
-        },
-        "hosts": {
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "porter_hosts": {
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "provider": {
-          "type": "string"
-        },
-        "custom_domain": {
-          "type": "boolean",
-          "default": false
-        },
-        "custom_paths": {
-          "type": "string"
-        },
-        "rewriteCustomPathsEnabled": {
-          "type": "boolean",
-          "default": true
-        },
-        "annotations": {
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "wildcard": {
-          "type": "boolean",
-          "default": false
-        },
-        "tls": {
-          "type": "boolean",
-          "default": true
-        },
-        "useDefaultIngressTLSSecret": {
-          "type": "boolean",
-          "default": false
-        }
-      }
-    },
-    "container": {
-      "type": "object",
-      "properties": {
-        "port": {
-          "type": "integer",
-          "default": 80
-        },
-        "command": {
-          "type": "string"
-        },
-        "args": {
-          "type": "array",
-          "items": {
-            "type": "string"
-          }
-        },
-        "env": {
-          "type": "object",
-          "properties": {
-            "normal": {
-              "type": "object",
-              "additionalProperties": {
-                "type": "string"
-              }
-            }
-          }
-        }
-      }
-    },
-    "resources": {
-      "type": "object",
-      "properties": {
-        "requests": {
-          "type": "object",
-          "properties": {
-            "cpu": {
-              "type": "string",
-              "pattern": "^\\d+(m){0,1}$"
-            },
-            "memory": {
-              "type": "string",
-              "pattern": "^\\d+(Ki|Mi|Gi)$"
-            }
-          }
-        }
-      }
-    },
-    "autoscaling": {
-      "type": "object",
-      "properties": {
-        "enabled": {
-          "type": "boolean",
-          "default": false
-        },
-        "minReplicas": {
-          "type": "integer",
-          "default": 1
-        },
-        "maxReplicas": {
-          "type": "integer",
-          "default": 10
-        },
-        "targetCPUUtilizationPercentage": {
-          "type": "integer",
-          "default": 50
-        },
-        "targetMemoryUtilizationPercentage": {
-          "type": "integer",
-          "default": 50
-        }
-      }
-    },
-    "health": {
-      "type": "object",
-      "properties": {
-        "livenessProbe": {
-          "type": "object",
-          "properties": {
-            "enabled": {
-              "type": "boolean",
-              "default": false
-            },
-            "path": {
-              "type": "string",
-              "default": "/livez"
-            },
-            "scheme": {
-              "type": "string",
-              "default": "HTTP"
-            },
-            "initialDelaySeconds": {
-              "type": "integer",
-              "default": 0
-            },
-            "periodSeconds": {
-              "type": "integer",
-              "default": 5
-            },
-            "timeoutSeconds": {
-              "type": "integer",
-              "default": 1
-            },
-            "successThreshold": {
-              "type": "integer",
-              "default": 1
-            },
-            "failureThreshold": {
-              "type": "integer",
-              "default": 3
-            },
-            "auth": {
-              "type": "object",
-              "properties": {
-                "enabled": {
-                  "type": "boolean",
-                  "default": false
-                },
-                "username": {
-                  "type": "string"
-                },
-                "password": {
-                  "type": "string"
-                }
-              }
-            }
-          }
-        },
-        "readinessProbe": {
-          "type": "object",
-          "properties": {
-            "enabled": {
-              "type": "boolean",
-              "default": false
-            },
-            "path": {
-              "type": "string",
-              "default": "/readyz"
-            },
-            "scheme": {
-              "type": "string",
-              "default": "HTTP"
-            },
-            "initialDelaySeconds": {
-              "type": "integer",
-              "default": 0
-            },
-            "periodSeconds": {
-              "type": "integer",
-              "default": 5
-            },
-            "timeoutSeconds": {
-              "type": "integer",
-              "default": 1
-            },
-            "successThreshold": {
-              "type": "integer",
-              "default": 1
-            },
-            "failureThreshold": {
-              "type": "integer",
-              "default": 3
-            },
-            "auth": {
-              "type": "object",
-              "properties": {
-                "enabled": {
-                  "type": "boolean",
-                  "default": false
-                },
-                "username": {
-                  "type": "string"
-                },
-                "password": {
-                  "type": "string"
-                }
-              }
-            }
-          }
-        },
-        "startupProbe": {
-          "type": "object",
-          "properties": {
-            "enabled": {
-              "type": "boolean",
-              "default": false
-            },
-            "path": {
-              "type": "string",
-              "default": "/startupz"
-            },
-            "scheme": {
-              "type": "string",
-              "default": "HTTP"
-            },
-            "failureThreshold": {
-              "type": "integer",
-              "default": 3
-            },
-            "periodSeconds": {
-              "type": "integer",
-              "default": 5
-            },
-            "timeoutSeconds": {
-              "type": "integer",
-              "default": 1
-            },
-            "auth": {
-              "type": "object",
-              "properties": {
-                "enabled": {
-                  "type": "boolean",
-                  "default": false
-                },
-                "username": {
-                  "type": "string"
-                },
-                "password": {
-                  "type": "string"
-                }
-              }
-            }
-          }
-        }
-      }
-    }
-  }
-}

+ 0 - 136
internal/integrations/preview/embed/worker.values.schema.json

@@ -1,136 +0,0 @@
-{
-  "$schema": "http://json-schema.org/schema#",
-  "type": "object",
-  "properties": {
-    "replicaCount": {
-      "type": "integer",
-      "minimum": 1,
-      "default": 1
-    },
-    "container": {
-      "type": "object",
-      "properties": {
-        "port": {
-          "type": "integer",
-          "default": 80
-        },
-        "command": {
-          "type": "string"
-        },
-        "env": {
-          "type": "object",
-          "properties": {
-            "normal": {
-              "type": "object",
-              "additionalProperties": {
-                "type": "string"
-              }
-            }
-          }
-        }
-      }
-    },
-    "resources": {
-      "type": "object",
-      "properties": {
-        "requests": {
-          "type": "object",
-          "properties": {
-            "cpu": {
-              "type": "string",
-              "pattern": "^\\d+(m){0,1}$"
-            },
-            "memory": {
-              "type": "string",
-              "pattern": "^\\d+(Ki|Mi|Gi)$"
-            }
-          }
-        }
-      }
-    },
-    "autoscaling": {
-      "type": "object",
-      "properties": {
-        "enabled": {
-          "type": "boolean",
-          "default": false
-        },
-        "minReplicas": {
-          "type": "integer",
-          "default": 1
-        },
-        "maxReplicas": {
-          "type": "integer",
-          "default": 10
-        },
-        "targetCPUUtilizationPercentage": {
-          "type": "integer",
-          "default": 50
-        },
-        "targetMemoryUtilizationPercentage": {
-          "type": "integer",
-          "default": 50
-        }
-      }
-    },
-    "health": {
-      "type": "object",
-      "properties": {
-        "enabled": {
-          "type": "boolean",
-          "default": false
-        },
-        "command": {
-          "type": "string",
-          "default": "ls -l"
-        },
-        "periodSeconds": {
-          "type": "integer",
-          "default": 5
-        },
-        "failureThreshold": {
-          "type": "integer",
-          "default": 3
-        },
-        "readinessProbe": {
-          "type": "object",
-          "properties": {
-            "enabled": {
-              "type": "boolean",
-              "default": false
-            },
-            "command": {
-              "type": "string",
-              "default": "ls -l"
-            },
-            "periodSeconds": {
-              "type": "integer",
-              "default": 5
-            }
-          }
-        },
-        "startupProbe": {
-          "type": "object",
-          "properties": {
-            "enabled": {
-              "type": "boolean",
-              "default": false
-            },
-            "command": {
-              "type": "string",
-              "default": "ls -l"
-            },
-            "failureThreshold": {
-              "type": "integer",
-              "default": 3
-            },
-            "periodSeconds": {
-              "type": "integer",
-              "default": 5
-            }
-          }
-        }
-      }
-    }
-  }
-}