From 403d5a4fdbab6035b9b18c5228954109e062cc74 Mon Sep 17 00:00:00 2001 From: Gor Poghosyan <37933026+pogossian@users.noreply.github.com> Date: Wed, 27 Dec 2023 14:16:39 -0800 Subject: [PATCH] Release 2.1.2 (#77) --- api/v1alpha1/nat_types.go | 6 ++---- api/v1alpha1/natmeta_types.go | 2 +- config/crd/bases/k8s.netris.ai_natmeta.yaml | 2 +- config/crd/bases/k8s.netris.ai_nats.yaml | 6 ++---- controllers/nat_translations.go | 5 ++--- deploy/charts/netris-operator/Chart.yaml | 4 ++-- .../charts/netris-operator/crds/k8s.netris.ai_natmeta.yaml | 2 +- deploy/charts/netris-operator/crds/k8s.netris.ai_nats.yaml | 6 ++---- go.mod | 2 +- go.sum | 2 ++ samples/nat.yaml | 2 +- 11 files changed, 17 insertions(+), 22 deletions(-) diff --git a/api/v1alpha1/nat_types.go b/api/v1alpha1/nat_types.go index 9ff38a4..d626ef2 100644 --- a/api/v1alpha1/nat_types.go +++ b/api/v1alpha1/nat_types.go @@ -59,9 +59,7 @@ type NatSpec struct { // +kubebuilder:validation:Pattern=`(^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[12]\d|3[0-2]))?$)|(^((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?(\/([1-9]|[1-5][0-9]|6[0-4]))?$)` DnatToIP string `json:"dnatToIp,omitempty"` - // +kubebuilder:validation:Minimum=1 - // +kubebuilder:validation:Maximum=65535 - DnatToPort int `json:"dnatToPort,omitempty"` + DnatToPort string `json:"dnatToPort,omitempty"` } // NatStatus defines the observed state of Nat @@ -85,7 +83,7 @@ type NatStatus struct { // +kubebuilder:printcolumn:name="SNATToIP",type=string,JSONPath=`.spec.snatToIp`,priority=1 // +kubebuilder:printcolumn:name="SNATToPool",type=string,JSONPath=`.spec.snatToPool`,priority=1 // +kubebuilder:printcolumn:name="DNATToIP",type=string,JSONPath=`.spec.dnatToIp`,priority=1 -// +kubebuilder:printcolumn:name="DNATToPort",type=integer,JSONPath=`.spec.dnatToPort`,priority=1 +// +kubebuilder:printcolumn:name="DNATToPort",type=string,JSONPath=`.spec.dnatToPort`,priority=1 // +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` // +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp` diff --git a/api/v1alpha1/natmeta_types.go b/api/v1alpha1/natmeta_types.go index e0b6f26..194ab8e 100644 --- a/api/v1alpha1/natmeta_types.go +++ b/api/v1alpha1/natmeta_types.go @@ -45,7 +45,7 @@ type NatMetaSpec struct { SnatToIP string `json:"snatToIp,omitempty"` SnatToPool string `json:"snatToPool,omitempty"` DnatToIP string `json:"dnatToIp,omitempty"` - DnatToPort int `json:"dnatToPort,omitempty"` + DnatToPort string `json:"dnatToPort,omitempty"` } // NatMetaStatus defines the observed state of NatMeta diff --git a/config/crd/bases/k8s.netris.ai_natmeta.yaml b/config/crd/bases/k8s.netris.ai_natmeta.yaml index 53688ef..07f0cc8 100644 --- a/config/crd/bases/k8s.netris.ai_natmeta.yaml +++ b/config/crd/bases/k8s.netris.ai_natmeta.yaml @@ -43,7 +43,7 @@ spec: dnatToIp: type: string dnatToPort: - type: integer + type: string dstAddress: type: string dstPort: diff --git a/config/crd/bases/k8s.netris.ai_nats.yaml b/config/crd/bases/k8s.netris.ai_nats.yaml index cd61776..67e70f7 100644 --- a/config/crd/bases/k8s.netris.ai_nats.yaml +++ b/config/crd/bases/k8s.netris.ai_nats.yaml @@ -56,7 +56,7 @@ spec: - jsonPath: .spec.dnatToPort name: DNATToPort priority: 1 - type: integer + type: string - jsonPath: .status.status name: Status type: string @@ -96,9 +96,7 @@ spec: pattern: (^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)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[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?(\/([1-9]|[1-5][0-9]|6[0-4]))?$) type: string dnatToPort: - maximum: 65535 - minimum: 1 - type: integer + type: string dstAddress: pattern: (^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[12]\d|3[0-2]))?$)|(^((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?(\/([1-9]|[1-5][0-9]|6[0-4]))?$) type: string diff --git a/controllers/nat_translations.go b/controllers/nat_translations.go index e1c3817..8d14219 100644 --- a/controllers/nat_translations.go +++ b/controllers/nat_translations.go @@ -18,7 +18,6 @@ package controllers import ( "fmt" - "strconv" "strings" k8sv1alpha1 "github.com/netrisai/netris-operator/api/v1alpha1" @@ -135,7 +134,7 @@ func NatMetaToNetris(natMeta *k8sv1alpha1.NatMeta) (*nat.NATw, error) { SnatToIP: natMeta.Spec.SnatToIP, SnatToPool: natMeta.Spec.SnatToPool, DnatToIP: natMeta.Spec.DnatToIP, - DnatToPort: strconv.Itoa(natMeta.Spec.DnatToPort), + DnatToPort: natMeta.Spec.DnatToPort, } return natAdd, nil @@ -157,7 +156,7 @@ func NatMetaToNetrisUpdate(natMeta *k8sv1alpha1.NatMeta) (*nat.NATw, error) { SnatToIP: natMeta.Spec.SnatToIP, SnatToPool: natMeta.Spec.SnatToPool, DnatToIP: natMeta.Spec.DnatToIP, - DnatToPort: strconv.Itoa(natMeta.Spec.DnatToPort), + DnatToPort: natMeta.Spec.DnatToPort, } return natAdd, nil diff --git a/deploy/charts/netris-operator/Chart.yaml b/deploy/charts/netris-operator/Chart.yaml index 6276fa4..8afe925 100644 --- a/deploy/charts/netris-operator/Chart.yaml +++ b/deploy/charts/netris-operator/Chart.yaml @@ -15,12 +15,12 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.1.1 +version: 1.1.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: v2.1.1 +appVersion: v2.1.2 home: https://github.com/netrisai/netris-operator icon: https://www.netris.ai/wp-content/uploads/2021/01/logo-300.png # [todo] Change url to permalink keywords: diff --git a/deploy/charts/netris-operator/crds/k8s.netris.ai_natmeta.yaml b/deploy/charts/netris-operator/crds/k8s.netris.ai_natmeta.yaml index 53688ef..07f0cc8 100644 --- a/deploy/charts/netris-operator/crds/k8s.netris.ai_natmeta.yaml +++ b/deploy/charts/netris-operator/crds/k8s.netris.ai_natmeta.yaml @@ -43,7 +43,7 @@ spec: dnatToIp: type: string dnatToPort: - type: integer + type: string dstAddress: type: string dstPort: diff --git a/deploy/charts/netris-operator/crds/k8s.netris.ai_nats.yaml b/deploy/charts/netris-operator/crds/k8s.netris.ai_nats.yaml index cd61776..67e70f7 100644 --- a/deploy/charts/netris-operator/crds/k8s.netris.ai_nats.yaml +++ b/deploy/charts/netris-operator/crds/k8s.netris.ai_nats.yaml @@ -56,7 +56,7 @@ spec: - jsonPath: .spec.dnatToPort name: DNATToPort priority: 1 - type: integer + type: string - jsonPath: .status.status name: Status type: string @@ -96,9 +96,7 @@ spec: pattern: (^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\/([0-9]|[12]\d|3[0-2]))?$)|(^((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?(\/([1-9]|[1-5][0-9]|6[0-4]))?$) type: string dnatToPort: - maximum: 65535 - minimum: 1 - type: integer + type: string dstAddress: pattern: (^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(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5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?(\/([1-9]|[1-5][0-9]|6[0-4]))?$) type: string diff --git a/go.mod b/go.mod index 649364a..d738367 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.17 require ( github.com/go-logr/logr v0.1.0 github.com/kelseyhightower/envconfig v1.4.0 - github.com/netrisai/netriswebapi v0.0.0-20230404043848-3cf45f0ba07d + github.com/netrisai/netriswebapi v0.0.0-20231227220649-64aa510b4db1 github.com/onsi/ginkgo v1.16.4 github.com/onsi/gomega v1.19.0 github.com/r3labs/diff/v2 v2.9.1 diff --git a/go.sum b/go.sum index 11e164f..ea8c771 100644 --- a/go.sum +++ b/go.sum @@ -242,6 +242,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= github.com/netrisai/netriswebapi v0.0.0-20230404043848-3cf45f0ba07d h1:w3bDLlD+UWOgn+AF1Qt/GN/XtpH1dZSyceVouvVeGVY= github.com/netrisai/netriswebapi v0.0.0-20230404043848-3cf45f0ba07d/go.mod h1:GLLz33Jc07/hIPwEYZDWEtNtHjX/QZjVzf9xLnfSiqs= +github.com/netrisai/netriswebapi v0.0.0-20231227220649-64aa510b4db1 h1:ET2jCGf2QrNLMvVV9S5kYOv/7YDROgYisfsgzZKB5Tw= +github.com/netrisai/netriswebapi v0.0.0-20231227220649-64aa510b4db1/go.mod h1:GLLz33Jc07/hIPwEYZDWEtNtHjX/QZjVzf9xLnfSiqs= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= diff --git a/samples/nat.yaml b/samples/nat.yaml index 38debea..03192f1 100644 --- a/samples/nat.yaml +++ b/samples/nat.yaml @@ -28,7 +28,7 @@ spec: dstAddress: 203.0.113.193/32 dstPort: "8080" dnatToIp: 100.71.56.150/32 - dnatToPort: 80 + dnatToPort: "80" --- apiVersion: k8s.netris.ai/v1alpha1 kind: Nat