From 0d02215b081e223f6bf3e72ec0174877288578ce Mon Sep 17 00:00:00 2001 From: Gerrit Date: Mon, 21 Oct 2024 14:41:36 +0200 Subject: [PATCH] Calico ebpf. (#125) --- api/models/v1_cluster_features.go | 17 +++++++++++++++++ cloud-api.json | 6 +++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/api/models/v1_cluster_features.go b/api/models/v1_cluster_features.go index 1438633..389e045 100644 --- a/api/models/v1_cluster_features.go +++ b/api/models/v1_cluster_features.go @@ -19,6 +19,10 @@ import ( // swagger:model v1.ClusterFeatures type V1ClusterFeatures struct { + // calico ebpf dataplane + // Required: true + CalicoEbpfDataplane *string `json:"CalicoEbpfDataplane"` + // duros storage encryption // Required: true DurosStorageEncryption *string `json:"DurosStorageEncryption"` @@ -36,6 +40,10 @@ type V1ClusterFeatures struct { func (m *V1ClusterFeatures) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateCalicoEbpfDataplane(formats); err != nil { + res = append(res, err) + } + if err := m.validateDurosStorageEncryption(formats); err != nil { res = append(res, err) } @@ -54,6 +62,15 @@ func (m *V1ClusterFeatures) Validate(formats strfmt.Registry) error { return nil } +func (m *V1ClusterFeatures) validateCalicoEbpfDataplane(formats strfmt.Registry) error { + + if err := validate.Required("CalicoEbpfDataplane", "body", m.CalicoEbpfDataplane); err != nil { + return err + } + + return nil +} + func (m *V1ClusterFeatures) validateDurosStorageEncryption(formats strfmt.Registry) error { if err := validate.Required("DurosStorageEncryption", "body", m.DurosStorageEncryption); err != nil { diff --git a/cloud-api.json b/cloud-api.json index 02efca6..74ccbec 100644 --- a/cloud-api.json +++ b/cloud-api.json @@ -1517,6 +1517,9 @@ }, "v1.ClusterFeatures": { "properties": { + "CalicoEbpfDataplane": { + "type": "string" + }, "DurosStorageEncryption": { "type": "string" }, @@ -1528,6 +1531,7 @@ } }, "required": [ + "CalicoEbpfDataplane", "DurosStorageEncryption", "HighAvailability", "LogAcceptedConnections" @@ -6526,7 +6530,7 @@ "url": "http://mit.org" }, "title": "cloud-api", - "version": "v0.29.0" + "version": "v0.29.2" }, "paths": { "/v1/accounting/cluster-usage": {