Skip to content

Commit f5f4ca3

Browse files
committed
chore: sync config/*.go and values.schema.json to vCluster version v0.22.2
1 parent 9b8cdeb commit f5f4ca3

File tree

1 file changed

+139
-4
lines changed

1 file changed

+139
-4
lines changed

values.schema.json

Lines changed: 139 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@
3232
"type": "object",
3333
"description": "APIServiceService holds the service name and namespace of the host apiservice."
3434
},
35+
"AutoSleepExclusion": {
36+
"properties": {
37+
"selector": {
38+
"$ref": "#/$defs/LabelSelector"
39+
}
40+
},
41+
"additionalProperties": false,
42+
"type": "object",
43+
"description": "AutoSleepExclusion holds conifiguration for excluding workloads from sleeping by label(s)"
44+
},
45+
"AutoWakeup": {
46+
"properties": {
47+
"schedule": {
48+
"type": "string"
49+
}
50+
},
51+
"additionalProperties": false,
52+
"type": "object",
53+
"description": "AutoWakeup holds the cron schedule to wake workloads automatically"
54+
},
3555
"BackingStore": {
3656
"properties": {
3757
"etcd": {
@@ -66,6 +86,71 @@
6686
"additionalProperties": false,
6787
"type": "object"
6888
},
89+
"CertManager": {
90+
"properties": {
91+
"enabled": {
92+
"type": "boolean",
93+
"description": "Enabled defines if this option should be enabled."
94+
},
95+
"sync": {
96+
"$ref": "#/$defs/CertManagerSync",
97+
"description": "Sync contains advanced configuration for syncing cert-manager resources."
98+
}
99+
},
100+
"additionalProperties": false,
101+
"type": "object",
102+
"description": "CertManager reuses a host cert-manager and makes its CRDs from it available inside the vCluster"
103+
},
104+
"CertManagerSync": {
105+
"properties": {
106+
"toHost": {
107+
"$ref": "#/$defs/CertManagerSyncToHost"
108+
},
109+
"fromHost": {
110+
"$ref": "#/$defs/CertManagerSyncFromHost"
111+
}
112+
},
113+
"additionalProperties": false,
114+
"type": "object"
115+
},
116+
"CertManagerSyncFromHost": {
117+
"properties": {
118+
"clusterIssuers": {
119+
"$ref": "#/$defs/ClusterIssuersSyncConfig",
120+
"description": "ClusterIssuers defines if (and which) cluster issuers should get synced from the host cluster to the virtual cluster."
121+
}
122+
},
123+
"additionalProperties": false,
124+
"type": "object"
125+
},
126+
"CertManagerSyncToHost": {
127+
"properties": {
128+
"certificates": {
129+
"$ref": "#/$defs/EnableSwitch",
130+
"description": "Certificates defines if certificates should get synced from the virtual cluster to the host cluster."
131+
},
132+
"issuers": {
133+
"$ref": "#/$defs/EnableSwitch",
134+
"description": "Issuers defines if issuers should get synced from the virtual cluster to the host cluster."
135+
}
136+
},
137+
"additionalProperties": false,
138+
"type": "object"
139+
},
140+
"ClusterIssuersSyncConfig": {
141+
"properties": {
142+
"enabled": {
143+
"type": "boolean",
144+
"description": "Enabled defines if this option should be enabled."
145+
},
146+
"selector": {
147+
"$ref": "#/$defs/LabelSelector",
148+
"description": "Selector defines what cluster issuers should be imported."
149+
}
150+
},
151+
"additionalProperties": false,
152+
"type": "object"
153+
},
69154
"ClusterStoresSyncConfig": {
70155
"properties": {
71156
"enabled": {
@@ -956,7 +1041,7 @@
9561041
},
9571042
"version": {
9581043
"type": "string",
959-
"description": "Version specifies k8s components (scheduler, kube-controller-manager \u0026 apiserver) version.\nIt is a shortcut for controlPlane.distro.k8s.apiServer.image.tag,\ncontrolPlane.distro.k8s.controllerManager.image.tag and\ncontrolPlane.distro.k8s.scheduler.image.tag\nIf e.g. controlPlane.distro.k8s.version is set to v1.30.1 and\ncontrolPlane.distro.k8s.scheduler.image.tag\n(or controlPlane.distro.k8s.controllerManager.image.tag or controlPlane.distro.k8s.apiServer.image.tag)\nis set to v1.31.0,\nvalue from controlPlane.distro.k8s.\u003ccontrolPlane-component\u003e.image.tag will be used\n(where \u003ccontrolPlane-component is apiServer, controllerManager and scheduler)."
1044+
"description": "Version specifies k8s components (scheduler, kube-controller-manager \u0026 apiserver) version.\nIt is a shortcut for controlPlane.distro.k8s.apiServer.image.tag,\ncontrolPlane.distro.k8s.controllerManager.image.tag and\ncontrolPlane.distro.k8s.scheduler.image.tag\nIf e.g. controlPlane.distro.k8s.version is set to v1.30.1 and\ncontrolPlane.distro.k8s.scheduler.image.tag\n(or controlPlane.distro.k8s.controllerManager.image.tag or controlPlane.distro.k8s.apiServer.image.tag)\nis set to v1.31.0,\nvalue from controlPlane.distro.k8s.(controlPlane-component).image.tag will be used\n(where controlPlane-component is apiServer, controllerManager and scheduler)."
9601045
},
9611046
"apiServer": {
9621047
"$ref": "#/$defs/DistroContainerEnabled",
@@ -1200,7 +1285,7 @@
12001285
"properties": {
12011286
"deploy": {
12021287
"$ref": "#/$defs/ExperimentalDeploy",
1203-
"description": "Deploy allows you to configure manifests and Helm charts to deploy within the virtual cluster."
1288+
"description": "Deploy allows you to configure manifests and Helm charts to deploy within the host or virtual cluster."
12041289
},
12051290
"syncSettings": {
12061291
"$ref": "#/$defs/ExperimentalSyncSettings",
@@ -1230,6 +1315,10 @@
12301315
"type": "array",
12311316
"description": "DenyProxyRequests denies certain requests in the vCluster proxy.",
12321317
"pro": true
1318+
},
1319+
"sleepMode": {
1320+
"$ref": "#/$defs/SleepMode",
1321+
"description": "SleepMode holds the native sleep mode configuration for Pro clusters"
12331322
}
12341323
},
12351324
"additionalProperties": false,
@@ -1317,11 +1406,11 @@
13171406
"properties": {
13181407
"manifests": {
13191408
"type": "string",
1320-
"description": "Manifests are raw Kubernetes manifests that should get applied within the virtual cluster."
1409+
"description": "Manifests are raw Kubernetes manifests that should get applied within the host cluster."
13211410
},
13221411
"manifestsTemplate": {
13231412
"type": "string",
1324-
"description": "ManifestsTemplate is a Kubernetes manifest template that will be rendered with vCluster values before applying it within the virtual cluster."
1413+
"description": "ManifestsTemplate is a Kubernetes manifest template that will be rendered with vCluster values before applying it within the host cluster."
13251414
}
13261415
},
13271416
"additionalProperties": false,
@@ -1869,6 +1958,10 @@
18691958
"externalSecrets": {
18701959
"$ref": "#/$defs/ExternalSecrets",
18711960
"description": "ExternalSecrets reuses a host external secret operator and makes certain CRDs from it available inside the vCluster"
1961+
},
1962+
"certManager": {
1963+
"$ref": "#/$defs/CertManager",
1964+
"description": "CertManager reuses a host cert-manager and makes its CRDs from it available inside the vCluster.\n- Certificates and Issuers will be synced from the virtual cluster to the host cluster.\n- ClusterIssuers will be synced from the host cluster to the virtual cluster."
18721965
}
18731966
},
18741967
"additionalProperties": false,
@@ -2909,6 +3002,48 @@
29093002
"additionalProperties": false,
29103003
"type": "object"
29113004
},
3005+
"SleepMode": {
3006+
"properties": {
3007+
"enabled": {
3008+
"type": "boolean",
3009+
"description": "Enabled toggles the sleep mode functionality, allowing for disabling sleep mode without removing other config"
3010+
},
3011+
"timeZone": {
3012+
"type": "string",
3013+
"description": "Timezone represents the timezone a sleep schedule should run against, defaulting to UTC if unset"
3014+
},
3015+
"autoSleep": {
3016+
"$ref": "#/$defs/SleepModeAutoSleep",
3017+
"description": "AutoSleep holds autoSleep details"
3018+
}
3019+
},
3020+
"additionalProperties": false,
3021+
"type": "object",
3022+
"description": "SleepMode holds configuration for native/workload only sleep mode"
3023+
},
3024+
"SleepModeAutoSleep": {
3025+
"properties": {
3026+
"afterInactivity": {
3027+
"type": "string",
3028+
"description": "AfterInactivity represents how long a vCluster can be idle before workloads are automaticaly put to sleep"
3029+
},
3030+
"schedule": {
3031+
"type": "string",
3032+
"description": "Schedule represents a cron schedule for when to sleep workloads"
3033+
},
3034+
"wakeup": {
3035+
"$ref": "#/$defs/AutoWakeup",
3036+
"description": "Wakeup holds configuration for waking the vCluster on a schedule rather than waiting for some activity."
3037+
},
3038+
"exclude": {
3039+
"$ref": "#/$defs/AutoSleepExclusion",
3040+
"description": "Exclude holds configuration for labels that, if present, will prevent a workload from going to sleep"
3041+
}
3042+
},
3043+
"additionalProperties": false,
3044+
"type": "object",
3045+
"description": "SleepModeAutoSleep holds configuration for allowing a vCluster to sleep its workloads automatically"
3046+
},
29123047
"StatefulSetImage": {
29133048
"properties": {
29143049
"registry": {

0 commit comments

Comments
 (0)