You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- cannot apply crd at kubernetes 1.18 + version and kubectl reports error:
70
-
```bash
71
-
Error from server (Invalid): error when creating "release/crds/crd.yaml": CustomResourceDefinition.apiextensions.k8s.io "vmalertmanagers.operator.victoriametrics.com" is invalid: [spec.validation.openAPIV3Schema.properties[spec].properties[initContainers].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property, spec.validation.openAPIV3Schema.properties[spec].properties[containers].items.properties[ports].items.properties[protocol].default: Required value: this property is in x-kubernetes-list-map-keys, so it must have a default or be a required property]
72
-
Error from server (Invalid): error when creating "release/crds/crd.yaml": CustomResourceDefinition.apiextensions.k8s.io "vmalerts.operator.victoriametrics.com" is invalid: [
73
-
```
74
-
upgrade to the latest release version. There is a bug with kubernetes objects at the early releases.
64
+
operator tested on officially supported Kubernetes versions
Copy file name to clipboardExpand all lines: api/operator/v1beta1/vmagent_types.go
+2-11Lines changed: 2 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,6 @@ type VMAgentSpec struct {
64
64
// eventually make the size of the running cluster equal to the expected
65
65
// size.
66
66
// NOTE enable VMSingle deduplication for replica usage
67
-
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Number of pods",xDescriptors="urn:alm:descriptor:com.tectonic.ui:podCount,urn:alm:descriptor:io.kubernetes:custom"
68
67
// +optional
69
68
ReplicaCount*int32`json:"replicaCount,omitempty"`
70
69
// The number of old ReplicaSets to retain to allow rollback in deployment or
// RelabelConfig ConfigMap with global relabel config -remoteWrite.relabelConfig
195
191
// This relabeling is applied to all the collected metrics before sending them to remote storage.
196
192
// +optional
197
-
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Key at Configmap with relabelConfig name",xDescriptors="urn:alm:descriptor:io.kubernetes:ConfigMapKeySelector"
// InlineRelabelConfig - defines GlobalRelabelConfig for vmagent, can be defined directly at CRD.
200
195
// +optional
@@ -493,7 +488,6 @@ type VMAgentRemoteWriteSpec struct {
493
488
494
489
// ConfigMap with relabeling config which is applied to metrics before sending them to the corresponding -remoteWrite.url
495
490
// +optional
496
-
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Key at Configmap with relabelConfig for remoteWrite",xDescriptors="urn:alm:descriptor:io.kubernetes:ConfigMapKeySelector"
0 commit comments