diff --git a/api/event-bus.html b/api/event-bus.html
index c606108c27..7cfdd6d5e5 100644
--- a/api/event-bus.html
+++ b/api/event-bus.html
@@ -80,6 +80,18 @@
ContainerTemplate
|
+
+
+imagePullPolicy
+
+
+Kubernetes core/v1.PullPolicy
+
+
+ |
+
+ |
+
EventBus
@@ -604,6 +616,17 @@ NativeStrategy
Total size of messages per channel, 0 means unlimited. Defaults to 1GB
+
+
+maxSubs
+
+uint64
+
+ |
+
+ Maximum number of subscriptions per channel, 0 means unlimited. Defaults to 1000
+ |
+
PersistenceStrategy
diff --git a/api/event-bus.md b/api/event-bus.md
index 2d79d6355f..309ab45ec2 100644
--- a/api/event-bus.md
+++ b/api/event-bus.md
@@ -98,6 +98,15 @@ Kubernetes core/v1.ResourceRequirements
|
+
+
+imagePullPolicy
+
+Kubernetes core/v1.PullPolicy
+ |
+
+ |
+
@@ -620,6 +629,17 @@ Total size of messages per channel, 0 means unlimited. Defaults to 1GB
+
+
+maxSubs uint64
+ |
+
+
+Maximum number of subscriptions per channel, 0 means unlimited. Defaults
+to 1000
+
+ |
+
diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json
index b18993ba77..c6af3c4d71 100644
--- a/api/openapi-spec/swagger.json
+++ b/api/openapi-spec/swagger.json
@@ -280,6 +280,9 @@
"description": "ContainerTemplate defines customized spec for a container",
"type": "object",
"properties": {
+ "imagePullPolicy": {
+ "type": "string"
+ },
"resources": {
"$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements"
}
@@ -445,6 +448,11 @@
"type": "integer",
"format": "int64"
},
+ "maxSubs": {
+ "description": "Maximum number of subscriptions per channel, 0 means unlimited. Defaults to 1000",
+ "type": "integer",
+ "format": "int64"
+ },
"metadata": {
"description": "Metadata sets the pods's metadata, i.e. annotations and labels",
"$ref": "#/definitions/io.argoproj.common.Metadata"
diff --git a/controllers/eventbus/installer/nats.go b/controllers/eventbus/installer/nats.go
index 337c1bf0d7..1488a60bf6 100644
--- a/controllers/eventbus/installer/nats.go
+++ b/controllers/eventbus/installer/nats.go
@@ -449,6 +449,10 @@ func (i *natsInstaller) buildConfigMap() (*corev1.ConfigMap, error) {
if i.eventBus.Spec.NATS.Native.MaxMsgs != nil {
maxMsgs = *i.eventBus.Spec.NATS.Native.MaxMsgs
}
+ maxSubs := uint64(1000)
+ if i.eventBus.Spec.NATS.Native.MaxSubs != nil {
+ maxSubs = *i.eventBus.Spec.NATS.Native.MaxSubs
+ }
maxBytes := "1GB"
if i.eventBus.Spec.NATS.Native.MaxBytes != nil {
maxBytes = *i.eventBus.Spec.NATS.Native.MaxBytes
@@ -480,8 +484,9 @@ streaming {
max_age: %s
max_msgs: %v
max_bytes: %s
+ max_subs: %v
}
-}`, strconv.Itoa(int(monitorPort)), strconv.Itoa(int(clusterPort)), strings.Join(routes, ","), clusterID, strings.Join(peers, ","), maxAge, maxMsgs, maxBytes)
+}`, strconv.Itoa(int(monitorPort)), strconv.Itoa(int(clusterPort)), strings.Join(routes, ","), clusterID, strings.Join(peers, ","), maxAge, maxMsgs, maxBytes, maxSubs)
cm := &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{
Namespace: i.eventBus.Namespace,
@@ -573,6 +578,7 @@ func (i *natsInstaller) buildStatefulSetSpec(serviceName, configmapName, authSec
if replicas < 3 {
replicas = 3
}
+ var stanContainerPullPolicy, metricsContainerPullPolicy corev1.PullPolicy
stanContainerResources := corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceCPU: apiresource.MustParse("0"),
@@ -581,10 +587,12 @@ func (i *natsInstaller) buildStatefulSetSpec(serviceName, configmapName, authSec
containerTmpl := i.eventBus.Spec.NATS.Native.ContainerTemplate
if containerTmpl != nil {
stanContainerResources = containerTmpl.Resources
+ stanContainerPullPolicy = containerTmpl.ImagePullPolicy
}
metricsContainerResources := corev1.ResourceRequirements{}
if i.eventBus.Spec.NATS.Native.MetricsContainerTemplate != nil {
metricsContainerResources = i.eventBus.Spec.NATS.Native.MetricsContainerTemplate.Resources
+ metricsContainerPullPolicy = i.eventBus.Spec.NATS.Native.MetricsContainerTemplate.ImagePullPolicy
}
podTemplateLabels := make(map[string]string)
if i.eventBus.Spec.NATS.Native.Metadata != nil &&
@@ -654,8 +662,9 @@ func (i *natsInstaller) buildStatefulSetSpec(serviceName, configmapName, authSec
},
Containers: []corev1.Container{
{
- Name: "stan",
- Image: i.streamingImage,
+ Name: "stan",
+ Image: i.streamingImage,
+ ImagePullPolicy: stanContainerPullPolicy,
Ports: []corev1.ContainerPort{
{Name: "client", ContainerPort: clientPort},
{Name: "cluster", ContainerPort: clusterPort},
@@ -683,8 +692,9 @@ func (i *natsInstaller) buildStatefulSetSpec(serviceName, configmapName, authSec
},
},
{
- Name: "metrics",
- Image: i.metricsImage,
+ Name: "metrics",
+ Image: i.metricsImage,
+ ImagePullPolicy: metricsContainerPullPolicy,
Ports: []corev1.ContainerPort{
{Name: "metrics", ContainerPort: common.EventBusMetricsPort},
},
diff --git a/docs/eventbus.md b/docs/eventbus.md
index bca374d75e..5887c0c434 100644
--- a/docs/eventbus.md
+++ b/docs/eventbus.md
@@ -165,7 +165,8 @@ affinity:
deleted automatically. It can be cutomized by setting
`spec.nats.native.maxAge`, i.e. `240h`.
-- Max subscription number is 1000.
+- Max subscription number is defaults to `1000`, it could be customized by
+ setting `spec.nats.native.maxSubs`.
### Exotic
diff --git a/manifests/base/eventbus-controller/eventbus-controller-deployment.yaml b/manifests/base/eventbus-controller/eventbus-controller-deployment.yaml
index 85bbb304f3..31647071f3 100644
--- a/manifests/base/eventbus-controller/eventbus-controller-deployment.yaml
+++ b/manifests/base/eventbus-controller/eventbus-controller-deployment.yaml
@@ -28,7 +28,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: NATS_STREAMING_IMAGE
- value: nats-streaming:0.17.0
+ value: nats-streaming:0.22.1
- name: NATS_METRICS_EXPORTER_IMAGE
value: synadia/prometheus-nats-exporter:0.6.2
livenessProbe:
diff --git a/manifests/install.yaml b/manifests/install.yaml
index a73ddfa264..179ce3d24c 100644
--- a/manifests/install.yaml
+++ b/manifests/install.yaml
@@ -300,7 +300,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: NATS_STREAMING_IMAGE
- value: nats-streaming:0.17.0
+ value: nats-streaming:0.22.1
- name: NATS_METRICS_EXPORTER_IMAGE
value: synadia/prometheus-nats-exporter:0.6.2
image: quay.io/argoproj/argo-events:v1.4.0
diff --git a/manifests/namespace-install.yaml b/manifests/namespace-install.yaml
index 3b1c6134f6..4b0d917b25 100644
--- a/manifests/namespace-install.yaml
+++ b/manifests/namespace-install.yaml
@@ -221,7 +221,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: NATS_STREAMING_IMAGE
- value: nats-streaming:0.17.0
+ value: nats-streaming:0.22.1
- name: NATS_METRICS_EXPORTER_IMAGE
value: synadia/prometheus-nats-exporter:0.6.2
image: quay.io/argoproj/argo-events:v1.4.0
diff --git a/pkg/apis/eventbus/v1alpha1/generated.pb.go b/pkg/apis/eventbus/v1alpha1/generated.pb.go
index c6dab36e7d..cd62adcd83 100644
--- a/pkg/apis/eventbus/v1alpha1/generated.pb.go
+++ b/pkg/apis/eventbus/v1alpha1/generated.pb.go
@@ -347,94 +347,97 @@ func init() {
}
var fileDescriptor_871e47633eb7aad4 = []byte{
- // 1386 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdf, 0x6f, 0x1b, 0xc5,
- 0x13, 0xcf, 0x25, 0x8e, 0x63, 0xaf, 0xdd, 0xc4, 0xde, 0xf6, 0xfb, 0xd5, 0x11, 0x15, 0xbb, 0xb2,
- 0x54, 0x14, 0x89, 0xf6, 0x4c, 0x2b, 0x04, 0xa5, 0x2f, 0xc5, 0x97, 0xa6, 0xd0, 0x52, 0xa7, 0x61,
- 0xdd, 0x56, 0x02, 0x2a, 0xca, 0xe6, 0x32, 0x71, 0x2e, 0x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e, 0xa3, 0xfa, 0xdd, 0xfe, 0xc6,
+ 0x07, 0xb3, 0x15, 0xff, 0x5d, 0xb2, 0xbe, 0x08, 0xe5, 0x60, 0x13, 0x3d, 0x7b, 0x49, 0x3a, 0xf4,
+ 0x20, 0x41, 0x41, 0x19, 0x44, 0xdb, 0x7a, 0xf2, 0xa2, 0x32, 0xf5, 0xf4, 0x45, 0x65, 0xea, 0xd9,
+ 0x8b, 0xca, 0xd4, 0xf7, 0x83, 0x8a, 0xf1, 0x64, 0x50, 0x31, 0x9e, 0x0e, 0x2a, 0xc6, 0xb3, 0x41,
+ 0xc5, 0x78, 0x3e, 0xa8, 0x18, 0x3f, 0xbd, 0xac, 0x4c, 0x7d, 0x95, 0x8b, 0xdb, 0xe0, 0xdf, 0x01,
+ 0x00, 0x00, 0xff, 0xff, 0x69, 0xee, 0x3a, 0x41, 0x58, 0x10, 0x00, 0x00,
}
func (m *BusConfig) Marshal() (dAtA []byte, err error) {
@@ -492,6 +495,11 @@ func (m *ContainerTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
+ i -= len(m.ImagePullPolicy)
+ copy(dAtA[i:], m.ImagePullPolicy)
+ i = encodeVarintGenerated(dAtA, i, uint64(len(m.ImagePullPolicy)))
+ i--
+ dAtA[i] = 0x12
{
size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
@@ -804,6 +812,13 @@ func (m *NativeStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
+ if m.MaxSubs != nil {
+ i = encodeVarintGenerated(dAtA, i, uint64(*m.MaxSubs))
+ i--
+ dAtA[i] = 0x1
+ i--
+ dAtA[i] = 0x98
+ }
if m.MaxBytes != nil {
i -= len(*m.MaxBytes)
copy(dAtA[i:], *m.MaxBytes)
@@ -1070,6 +1085,8 @@ func (m *ContainerTemplate) Size() (n int) {
_ = l
l = m.Resources.Size()
n += 1 + l + sovGenerated(uint64(l))
+ l = len(m.ImagePullPolicy)
+ n += 1 + l + sovGenerated(uint64(l))
return n
}
@@ -1245,6 +1262,9 @@ func (m *NativeStrategy) Size() (n int) {
l = len(*m.MaxBytes)
n += 2 + l + sovGenerated(uint64(l))
}
+ if m.MaxSubs != nil {
+ n += 2 + sovGenerated(uint64(*m.MaxSubs))
+ }
return n
}
@@ -1291,6 +1311,7 @@ func (this *ContainerTemplate) String() string {
}
s := strings.Join([]string{`&ContainerTemplate{`,
`Resources:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Resources), "ResourceRequirements", "v1.ResourceRequirements", 1), `&`, ``, 1) + `,`,
+ `ImagePullPolicy:` + fmt.Sprintf("%v", this.ImagePullPolicy) + `,`,
`}`,
}, "")
return s
@@ -1411,6 +1432,7 @@ func (this *NativeStrategy) String() string {
`Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "v1.Affinity", 1) + `,`,
`MaxMsgs:` + valueToStringGenerated(this.MaxMsgs) + `,`,
`MaxBytes:` + valueToStringGenerated(this.MaxBytes) + `,`,
+ `MaxSubs:` + valueToStringGenerated(this.MaxSubs) + `,`,
`}`,
}, "")
return s
@@ -1583,6 +1605,38 @@ func (m *ContainerTemplate) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ImagePullPolicy", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthGenerated
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ImagePullPolicy = k8s_io_api_core_v1.PullPolicy(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
@@ -3060,6 +3114,26 @@ func (m *NativeStrategy) Unmarshal(dAtA []byte) error {
s := string(dAtA[iNdEx:postIndex])
m.MaxBytes = &s
iNdEx = postIndex
+ case 19:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MaxSubs", wireType)
+ }
+ var v uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowGenerated
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.MaxSubs = &v
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
diff --git a/pkg/apis/eventbus/v1alpha1/generated.proto b/pkg/apis/eventbus/v1alpha1/generated.proto
index 6b817ec563..b618a00d23 100644
--- a/pkg/apis/eventbus/v1alpha1/generated.proto
+++ b/pkg/apis/eventbus/v1alpha1/generated.proto
@@ -38,6 +38,8 @@ message BusConfig {
// ContainerTemplate defines customized spec for a container
message ContainerTemplate {
optional k8s.io.api.core.v1.ResourceRequirements resources = 1;
+
+ optional string imagePullPolicy = 2;
}
// EventBus is the definition of a eventbus resource
@@ -188,6 +190,9 @@ message NativeStrategy {
// Total size of messages per channel, 0 means unlimited. Defaults to 1GB
optional string maxBytes = 18;
+
+ // Maximum number of subscriptions per channel, 0 means unlimited. Defaults to 1000
+ optional uint64 maxSubs = 19;
}
// PersistenceStrategy defines the strategy of persistence
diff --git a/pkg/apis/eventbus/v1alpha1/openapi_generated.go b/pkg/apis/eventbus/v1alpha1/openapi_generated.go
index 28f73cc3d8..56bda68fa3 100644
--- a/pkg/apis/eventbus/v1alpha1/openapi_generated.go
+++ b/pkg/apis/eventbus/v1alpha1/openapi_generated.go
@@ -74,6 +74,12 @@ func schema_pkg_apis_eventbus_v1alpha1_ContainerTemplate(ref common.ReferenceCal
Ref: ref("k8s.io/api/core/v1.ResourceRequirements"),
},
},
+ "imagePullPolicy": {
+ SchemaProps: spec.SchemaProps{
+ Type: []string{"string"},
+ Format: "",
+ },
+ },
},
},
},
@@ -455,6 +461,13 @@ func schema_pkg_apis_eventbus_v1alpha1_NativeStrategy(ref common.ReferenceCallba
Format: "",
},
},
+ "maxSubs": {
+ SchemaProps: spec.SchemaProps{
+ Description: "Maximum number of subscriptions per channel, 0 means unlimited. Defaults to 1000",
+ Type: []string{"integer"},
+ Format: "int64",
+ },
+ },
},
},
},
diff --git a/pkg/apis/eventbus/v1alpha1/types.go b/pkg/apis/eventbus/v1alpha1/types.go
index c8c9799a3e..f3ef7b6029 100644
--- a/pkg/apis/eventbus/v1alpha1/types.go
+++ b/pkg/apis/eventbus/v1alpha1/types.go
@@ -129,11 +129,14 @@ type NativeStrategy struct {
MaxMsgs *uint64 `json:"maxMsgs,omitempty" protobuf:"bytes,17,opt,name=maxMsgs"`
// Total size of messages per channel, 0 means unlimited. Defaults to 1GB
MaxBytes *string `json:"maxBytes,omitempty" protobuf:"bytes,18,opt,name=maxBytes"`
+ // Maximum number of subscriptions per channel, 0 means unlimited. Defaults to 1000
+ MaxSubs *uint64 `json:"maxSubs,omitempty" protobuf:"bytes,19,opt,name=maxSubs"`
}
// ContainerTemplate defines customized spec for a container
type ContainerTemplate struct {
- Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"`
+ Resources corev1.ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,1,opt,name=resources"`
+ ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty" protobuf:"bytes,2,opt,name=imagePullPolicy,casttype=PullPolicy"`
}
// GetReplicas return the replicas of statefulset
diff --git a/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
index 416329edc1..481c520da8 100644
--- a/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
+++ b/pkg/apis/eventbus/v1alpha1/zz_generated.deepcopy.go
@@ -298,6 +298,11 @@ func (in *NativeStrategy) DeepCopyInto(out *NativeStrategy) {
*out = new(string)
**out = **in
}
+ if in.MaxSubs != nil {
+ in, out := &in.MaxSubs, &out.MaxSubs
+ *out = new(uint64)
+ **out = **in
+ }
return
}