Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/olm-tests/catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ metadata:
namespace: olm
spec:
sourceType: grpc
image: kind-registry:5000/streamnativeio/function-mesh-catalog:v0.24.0
image: kind-registry:5000/streamnativeio/function-mesh-catalog:v0.25.0
2 changes: 1 addition & 1 deletion .ci/olm-tests/subs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ metadata:
spec:
channel: alpha
name: function-mesh
startingCSV: function-mesh.v0.24.0
startingCSV: function-mesh.v0.25.0
source: my-test-catalog
sourceNamespace: olm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
- persistent://public/default/input-java-topic
typeClassName: java.lang.String
pod:
disableDefaultAffinity: true
env:
- name: "podenv"
value: "podvalue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ spec:
className: exclamation_function.ExclamationFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
maxReplicas: 1
replicas: 3
logTopic: persistent://public/default/py-function-logs
input:
topics:
Expand Down
8 changes: 7 additions & 1 deletion .ci/tests/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ nodes:
listenAddress: "127.0.0.1"
# optional: set the protocol to one of TCP, UDP, SCTP.
# TCP is the default
protocol: TCP
protocol: TCP

- role: worker
image: kindest/node:v1.23.17

- role: worker
image: kindest/node:v1.23.17
8 changes: 4 additions & 4 deletions .github/workflows/bundle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: InstallKubebuilder
Expand Down Expand Up @@ -180,10 +180,10 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: InstallKubebuilder
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/olm-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
- name: checkout
uses: actions/checkout@v2

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: InstallKubebuilder
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [1.22.12, 1.24.2]
go-version: [1.22.12, 1.24.4]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: InstallKubebuilder
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ jobs:
run: hack/kind-cluster-build.sh --name chart-testing -c 1 -v 10 --k8sVersion v1.23.17
if: steps.list-changed.outputs.changed == 'true'

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
if: steps.list-changed.outputs.changed == 'true'
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: setup kubebuilder 3.6.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: InstallKubebuilder
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy_scheduled_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
repository: ${{github.event.pull_request.head.repo.full_name}}
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up GO 1.24.2
- name: Set up GO 1.24.4
uses: actions/setup-go@v1
with:
go-version: 1.24.2
go-version: 1.24.4
id: go

- name: InstallKubebuilder
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Function Mesh v0.25.0 Release Notes

## v0.25.0 What's New

* [Dependency] Upgrade go to 1.24.4 ([#813](https://github.com/streamnative/function-mesh/pull/813))
* [CRD] Add default anti affinity ([#810](https://github.com/streamnative/function-mesh/pull/810))
* [Runtime] Use java21 for pulsar 4.0+ ([#809](https://github.com/streamnative/function-mesh/pull/809))
* [Controller] Add more fields to BackendConfig ([#804](https://github.com/streamnative/function-mesh/pull/804))

# Function Mesh v0.24.0 Release Notes

## v0.24.0 What's New
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM golang:1.24.2-bullseye as builder
FROM golang:1.24.4-bullseye as builder

WORKDIR /workspace/api
COPY api/ .
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Current Operator version
VERSION ?= 0.24.0
VERSION ?= 0.25.0
# Default image tag
DOCKER_REPO := $(if $(DOCKER_REPO),$(DOCKER_REPO),streamnative)
OPERATOR_IMG ?= ${DOCKER_REPO}/function-mesh:v$(VERSION)
Expand Down Expand Up @@ -72,7 +72,7 @@ test-ginkgo: generate fmt vet manifests envtest

.PHONY: envtest
envtest:
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20240320141353-395cfc7486e6
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.0.0-20250630142431-4c2e9cec2954

# Build manager binary
manager: generate fmt vet
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A Kubernetes-Native way to run pulsar functions, connectors and composed functio
## Install

```bash
curl -sSL https://github.com/streamnative/function-mesh/releases/download/v0.24.0/install.sh | bash
curl -sSL https://github.com/streamnative/function-mesh/releases/download/v0.25.0/install.sh | bash
```

The above command installs all the CRDs, required service account configuration, and all function-mesh operator components. Before you start running a function-mesh example, verify if Function Mesh is installed correctly.
Expand Down
2 changes: 2 additions & 0 deletions api/compute/v1alpha1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ type PodPolicy struct {
Env []corev1.EnvVar `json:"env,omitempty"`

Liveness *Liveness `json:"liveness,omitempty"`

DisableDefaultAffinity bool `json:"disableDefaultAffinity,omitempty"`
}

type Runtime struct {
Expand Down
2 changes: 1 addition & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/streamnative/function-mesh/api

go 1.24.2
go 1.24.4

require (
k8s.io/api v0.30.9
Expand Down
6 changes: 3 additions & 3 deletions charts/function-mesh-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,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: 0.2.31
version: 0.2.34

# 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: 0.24.0
appVersion: 0.25.0

home: https://github.com/streamnative/function-mesh
sources:
Expand All @@ -33,5 +33,5 @@ sources:
dependencies:
- name: admission-webhook
condition: admissionWebhook.enabled
version: 0.2.31
version: 0.2.34
# repository: https://charts.functionmesh.io/
8 changes: 4 additions & 4 deletions charts/function-mesh-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# function-mesh-operator

![Version: 0.2.31](https://img.shields.io/badge/Version-0.2.31-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24.0](https://img.shields.io/badge/AppVersion-0.24.0-informational?style=flat-square)
![Version: 0.2.34](https://img.shields.io/badge/Version-0.2.34-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.25.0](https://img.shields.io/badge/AppVersion-0.25.0-informational?style=flat-square)

function mesh operator Helm chart for Kubernetes

Expand All @@ -20,7 +20,7 @@ function mesh operator Helm chart for Kubernetes

| Repository | Name | Version |
|------------|------|---------|
| | admission-webhook | 0.2.31 |
| | admission-webhook | 0.2.33 |

## Values

Expand All @@ -36,7 +36,7 @@ function mesh operator Helm chart for Kubernetes
| controllerManager.globalBackendConfig | string | `"global-backend-config"` | |
| controllerManager.globalBackendConfigNamespace | string | `"default"` | |
| controllerManager.healthProbe.port | int | `8000` | |
| controllerManager.metrics.port | int | `8080` | |
| controllerManager.metrics.port | int | `8443` | |
| controllerManager.namespacedBackendConfig | string | `"backend-config"` | |
| controllerManager.nodeSelector | object | `{}` | |
| controllerManager.pprof.enable | bool | `false` | |
Expand All @@ -50,7 +50,7 @@ function mesh operator Helm chart for Kubernetes
| imagePullPolicy | string | `"IfNotPresent"` | |
| imagePullSecrets | list | `[]` | |
| installation.namespace | string | `"function-mesh-system"` | |
| operatorImage | string | `"streamnative/function-mesh:v0.24.0"` | |
| operatorImage | string | `"streamnative/function-mesh:v0.25.0"` | |
| rbac.create | bool | `true` | |

----------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ 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: 0.2.31
version: 0.2.34

# 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.
# It is recommended to use it with quotes.
appVersion: 0.24.0
appVersion: 0.25.0

home: https://github.com/streamnative/function-mesh
sources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# admission-webhook

![Version: 0.2.31](https://img.shields.io/badge/Version-0.2.31-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.24.0](https://img.shields.io/badge/AppVersion-0.24.0-informational?style=flat-square)
![Version: 0.2.34](https://img.shields.io/badge/Version-0.2.34-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.25.0](https://img.shields.io/badge/AppVersion-0.25.0-informational?style=flat-square)

function mesh admission webhook Helm chart for Kubernetes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down Expand Up @@ -5004,6 +5006,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down Expand Up @@ -8662,6 +8666,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
{{- if eq .Values.admissionWebhook.certificate.provider "cert-manager" }}
{{- include "function-mesh-operator.certManager.annotation" . | nindent 4 -}}
{{- end }}
controller-gen.kubebuilder.io/version: v0.9.2
controller-gen.kubebuilder.io/version: v0.15.0
name: functions.compute.functionmesh.io
spec:
conversion:
Expand Down Expand Up @@ -1146,6 +1146,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,8 @@ spec:
items:
type: string
type: array
disableDefaultAffinity:
type: boolean
env:
items:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
- --global-backend-config={{ .Values.controllerManager.globalBackendConfig }}
- --global-backend-config-namespace={{ .Values.controllerManager.globalBackendConfigNamespace }}
- --namespaced-backend-config={{ .Values.controllerManager.namespacedBackendConfig }}
- --add-default-affinity={{ .Values.controllerManager.addDefaultAffinity }}
env:
- name: NAMESPACE
valueFrom:
Expand Down
3 changes: 2 additions & 1 deletion charts/function-mesh-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ installation:
namespace: function-mesh-system

# operatorImage is Function Mesh Operator image
operatorImage: streamnative/function-mesh:v0.24.0
operatorImage: streamnative/function-mesh:v0.25.0
imagePullPolicy: IfNotPresent
imagePullSecrets: []

Expand Down Expand Up @@ -73,6 +73,7 @@ controllerManager:
globalBackendConfig: global-backend-config
globalBackendConfigNamespace: default
namespacedBackendConfig: backend-config
addDefaultAffinity: true

admissionWebhook:
enabled: true
Loading
Loading