[docs] Update cozyvalues-gen

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
Myasnikov Daniil 2026-03-25 15:59:22 +05:00
parent e0ab4d0639
commit fe6b81ea03
No known key found for this signature in database
GPG key ID: FA953A439C637F04
4 changed files with 43 additions and 23 deletions

View file

@ -28,7 +28,7 @@ jobs:
- name: Install generate
run: |
curl -sSL https://github.com/cozystack/cozyvalues-gen/releases/download/v1.2.0/cozyvalues-gen-linux-amd64.tar.gz | tar -xzvf- -C /usr/local/bin/ cozyvalues-gen
curl -sSL https://github.com/cozystack/cozyvalues-gen/releases/download/v1.3.0/cozyvalues-gen-linux-amd64.tar.gz | tar -xzvf- -C /usr/local/bin/ cozyvalues-gen
- name: Run pre-commit hooks
run: |

View file

@ -19,6 +19,26 @@ type ConfigSpec struct {
// Subnets of a VPC
// +kubebuilder:default:={}
Subnets []Subnet `json:"subnets,omitempty"`
// VPC peering connections (bidirectional declaration required)
// +kubebuilder:default:={}
Peers []Peer `json:"peers,omitempty"`
// Static routes for the VPC
// +kubebuilder:default:={}
Routes []Route `json:"routes,omitempty"`
}
type Peer struct {
// Namespace of the remote tenant
TenantNamespace string `json:"tenantNamespace"`
// Logical name of the remote VPC (without "virtualprivatecloud-" prefix)
VpcName string `json:"vpcName"`
}
type Route struct {
// Destination CIDR
Cidr string `json:"cidr"`
// Next hop IP address
NextHopIP string `json:"nextHopIP"`
}
type Subnet struct {

View file

@ -2,6 +2,27 @@
"title": "Chart Values",
"type": "object",
"properties": {
"subnets": {
"description": "Subnets of a VPC",
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"cidr": {
"description": "IP address range",
"type": "string"
},
"name": {
"description": "Subnet name",
"type": "string"
}
}
}
},
"peers": {
"description": "VPC peering connections (bidirectional declaration required)",
"type": "array",
@ -45,27 +66,6 @@
}
}
}
},
"subnets": {
"description": "Subnets of a VPC",
"type": "array",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"cidr": {
"description": "IP address range",
"type": "string"
},
"name": {
"description": "Subnet name",
"type": "string"
}
}
}
}
}
}

View file

@ -8,7 +8,7 @@ spec:
plural: virtualprivateclouds
singular: virtualprivatecloud
openAPISchema: |-
{"title":"Chart Values","type":"object","properties":{"peers":{"description":"VPC peering connections (bidirectional declaration required)","type":"array","default":[],"items":{"type":"object","required":["tenantNamespace","vpcName"],"properties":{"tenantNamespace":{"description":"Namespace of the remote tenant","type":"string"},"vpcName":{"description":"Logical name of the remote VPC (without \"virtualprivatecloud-\" prefix)","type":"string"}}}},"routes":{"description":"Static routes for the VPC","type":"array","default":[],"items":{"type":"object","required":["cidr","nextHopIP"],"properties":{"cidr":{"description":"Destination CIDR","type":"string"},"nextHopIP":{"description":"Next hop IP address","type":"string"}}}},"subnets":{"description":"Subnets of a VPC","type":"array","default":[],"items":{"type":"object","required":["name"],"properties":{"cidr":{"description":"IP address range","type":"string"},"name":{"description":"Subnet name","type":"string"}}}}}}
{"title":"Chart Values","type":"object","properties":{"subnets":{"description":"Subnets of a VPC","type":"array","default":[],"items":{"type":"object","required":["name"],"properties":{"cidr":{"description":"IP address range","type":"string"},"name":{"description":"Subnet name","type":"string"}}}},"peers":{"description":"VPC peering connections (bidirectional declaration required)","type":"array","default":[],"items":{"type":"object","required":["tenantNamespace","vpcName"],"properties":{"tenantNamespace":{"description":"Namespace of the remote tenant","type":"string"},"vpcName":{"description":"Logical name of the remote VPC (without \"virtualprivatecloud-\" prefix)","type":"string"}}}},"routes":{"description":"Static routes for the VPC","type":"array","default":[],"items":{"type":"object","required":["cidr","nextHopIP"],"properties":{"cidr":{"description":"Destination CIDR","type":"string"},"nextHopIP":{"description":"Next hop IP address","type":"string"}}}}}}
release:
prefix: "virtualprivatecloud-"
labels: