diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index dfb8ffb4..50cdcfb2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -62,7 +62,6 @@ jobs: make bin/envtest export KUBEBUILDER_ASSETS=$(pwd)/bin/envtest go test -v ./... - go test -race -v ./... shellcheck: runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f266b9d..06dd947f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,14 @@ All notable changes to this project will be documented in this file. - Fix ipv6 address range calculation error - Fix nil point dereference error while creating a vlan interface +## v0.3.3 +### Fixed Issues +- Introduce flag `enable-vlan-arp-enhancement` to disable setting enhanced addresses by default + +## v0.3.4 +### Fixed Issues +- Prevent enhanced addresses from source selection + ## v0.4.0 ### New features - Support BGP mode for an Underlay type Network @@ -106,10 +114,6 @@ All notable changes to this project will be documented in this file. ### Fixed Issues - Fix creating ip-retained sts pod error when it is recreated and rescheduled to another node -## v0.3.3 -### Fixed Issues -- Introduce flag `enable-vlan-arp-enhancement` to disable setting enhanced addresses by default - ## v0.4.3 ### Improvements - Introduce flag `enable-vlan-arp-enhancement` for daemon to enable/disable enhanced addresses @@ -128,4 +132,12 @@ All notable changes to this project will be documented in this file. ## v0.4.4 ### Fixed Issues - Fix the error that nodes get "empty" quota while the Underlay Network still have available addresses to allocate -- Fix daemon policy container exit with ip6tables-legacy-save error \ No newline at end of file +- Fix daemon policy container exit with ip6tables-legacy-save error + +## v0.5.0 +### New features +- Change IPInstance APIs and optimize IP allocation performance of manager +- Introduce GlobalBGP type Network + +### Improvements +- Bump controller-runtime from v0.8.3 to v0.9.7 diff --git a/charts/hybridnet/Chart.yaml b/charts/hybridnet/Chart.yaml index a0809fd6..a6cd2024 100644 --- a/charts/hybridnet/Chart.yaml +++ b/charts/hybridnet/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: hybridnet # When the version is modified, make sure the artifacthub.io/changes list is updated # Also update CHANGELOG.md -version: 0.2.2 -appVersion: 0.4.4 +version: 0.3.0 +appVersion: 0.5.0 home: https://github.com/alibaba/hybridnet description: A container networking solution aiming at hybrid clouds. keywords: @@ -22,5 +22,6 @@ annotations: artifacthub.io/prerelease: "false" # List of changes for the release in artifacthub.io artifacthub.io/changes: | - - "fix the error that nodes get empty quota while the Underlay Network still have available addresses to allocate" - - "fix the error that daemon policy container exit on a ipv6 disabled node" + - "Change IPInstance APIs and optimize IP allocation performance of manager" + - "Introduce GlobalBGP type Network" + - "Bump controller runtime from v0.8.3 to v0.9.7" diff --git a/charts/hybridnet/templates/daemonsets.yaml b/charts/hybridnet/templates/daemonsets.yaml index 787833ae..56a62ce2 100644 --- a/charts/hybridnet/templates/daemonsets.yaml +++ b/charts/hybridnet/templates/daemonsets.yaml @@ -23,7 +23,7 @@ spec: initContainers: - name: install-cni image: "{{ .Values.images.registryURL }}/{{ .Values.images.hybridnet.image }}:{{ .Values.images.hybridnet.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.images.hybridnet.imagePullPolicy }} command: ["/hybridnet/install-cni.sh"] securityContext: runAsUser: 0 @@ -36,7 +36,7 @@ spec: containers: - name: cni-daemon image: "{{ .Values.images.registryURL }}/{{ .Values.images.hybridnet.image }}:{{ .Values.images.hybridnet.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.images.hybridnet.imagePullPolicy }} command: - sh - /hybridnet/start-daemon.sh @@ -59,6 +59,8 @@ spec: runAsUser: 0 privileged: true env: + - name: DEFAULT_IP_FAMILY + value: {{ .Values.defaultIPFamily }} - name: NODE_IP valueFrom: fieldRef: @@ -100,7 +102,7 @@ spec: {{ if .Values.daemon.enableNetworkPolicy }} - name: policy image: "{{ .Values.images.registryURL }}/{{ .Values.images.hybridnet.image }}:{{ .Values.images.hybridnet.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.images.hybridnet.imagePullPolicy }} command: - /hybridnet/policyinit.sh env: diff --git a/charts/hybridnet/templates/deployments.yaml b/charts/hybridnet/templates/deployments.yaml index 74100cae..ec76ee12 100644 --- a/charts/hybridnet/templates/deployments.yaml +++ b/charts/hybridnet/templates/deployments.yaml @@ -31,7 +31,7 @@ spec: containers: - name: hybridnet-manager image: "{{ .Values.images.registryURL }}/{{ .Values.images.hybridnet.image }}:{{ .Values.images.hybridnet.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.images.hybridnet.imagePullPolicy }} command: - /hybridnet/hybridnet-manager - --default-ip-retain={{ .Values.defaultIPRetain }} @@ -78,7 +78,7 @@ spec: containers: - name: hybridnet-webhook image: "{{ .Values.images.registryURL }}/{{ .Values.images.hybridnet.image }}:{{ .Values.images.hybridnet.tag }}" - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.images.hybridnet.imagePullPolicy }} command: - /hybridnet/hybridnet-webhook - --default-ip-retain={{ .Values.defaultIPRetain }} diff --git a/charts/hybridnet/values.yaml b/charts/hybridnet/values.yaml index 186cb299..03b8b33e 100644 --- a/charts/hybridnet/values.yaml +++ b/charts/hybridnet/values.yaml @@ -1,7 +1,8 @@ images: hybridnet: image: hybridnetdev/hybridnet - tag: v0.4.4 + tag: v0.5.0 + imagePullPolicy: IfNotPresent registryURL: "docker.io" # -- It's always encouraged to use an overlay network to finish some general jobs in hybridnet. This diff --git a/docs/crd.md b/docs/crd.md index 8766892e..730075a3 100644 --- a/docs/crd.md +++ b/docs/crd.md @@ -124,9 +124,9 @@ spec: end: "192.168.56.200" # Optional. The last usable ip of cidr. - reservedIPs: "192.168.56.101","192.168.56.102" # Optional. The reserved ips for later assignment. + reservedIPs: ["192.168.56.101","192.168.56.102"] # Optional. The reserved ips for later assignment. - excludeIPs: "192.168.56.103","192.168.56.104" # Optional. The excluded ips for unusable. + excludeIPs: ["192.168.56.103","192.168.56.104"] # Optional. The excluded ips for unusable. config: autoNatOutgoing: false # Optional, Overlay Network only, Default is true. # If pods in this sunbet can access to addresses outside