Skip to content

Commit 3cc6cb9

Browse files
committed
Merge branch 'main' into releases/v2.0.0
2 parents b0521a2 + 7a5efbc commit 3cc6cb9

30 files changed

+476
-39
lines changed

.github/workflows/releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
--secret FURY_TOKEN=$FURY_TOKEN
8383
--secret GORELEASER_KEY=$GORELEASER_KEY
8484
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
85-
+goreleaser --type=${{ matrix.components.type }} --components=${{ matrix.components.component }} --mode=release
85+
+goreleaser --path=${{ matrix.components }} --mode=release
8686
env:
8787
GITHUB_TOKEN: ${{ secrets.NUMARY_GITHUB_TOKEN }}
8888
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}

components/fctl/membership-swagger.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,10 @@ components:
19061906
type: array
19071907
items:
19081908
type: string
1909+
EE:
1910+
type: array
1911+
items:
1912+
type: string
19091913
RegionCapabilityKeys:
19101914
type: string
19111915
enum:

components/fctl/membershipclient/api/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,10 @@ components:
20892089
items:
20902090
type: string
20912091
type: array
2092+
EE:
2093+
items:
2094+
type: string
2095+
type: array
20922096
type: object
20932097
RegionCapabilityKeys:
20942098
enum:

components/fctl/membershipclient/docs/RegionCapability.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**MODULE_LIST** | Pointer to **[]string** | | [optional]
8+
**EE** | Pointer to **[]string** | | [optional]
89

910
## Methods
1011

@@ -50,6 +51,31 @@ SetMODULE_LIST sets MODULE_LIST field to given value.
5051

5152
HasMODULE_LIST returns a boolean if a field has been set.
5253

54+
### GetEE
55+
56+
`func (o *RegionCapability) GetEE() []string`
57+
58+
GetEE returns the EE field if non-nil, zero value otherwise.
59+
60+
### GetEEOk
61+
62+
`func (o *RegionCapability) GetEEOk() (*[]string, bool)`
63+
64+
GetEEOk returns a tuple with the EE field if it's non-nil, zero value otherwise
65+
and a boolean to check if the value has been set.
66+
67+
### SetEE
68+
69+
`func (o *RegionCapability) SetEE(v []string)`
70+
71+
SetEE sets EE field to given value.
72+
73+
### HasEE
74+
75+
`func (o *RegionCapability) HasEE() bool`
76+
77+
HasEE returns a boolean if a field has been set.
78+
5379

5480
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
5581

components/fctl/membershipclient/go.sum

Lines changed: 347 additions & 0 deletions
Large diffs are not rendered by default.

components/fctl/membershipclient/model_region_capability.go

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/operator/api/formance.com/v1beta1/orchestration_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ type OrchestrationStatus struct {
4242
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=".status.ready",description="Is ready"
4343
// +kubebuilder:printcolumn:name="Info",type=string,JSONPath=".status.info",description="Info"
4444
// +kubebuilder:metadata:labels=formance.com/kind=module
45+
// +kubebuilder:metadata:labels=formance.com/is-ee=true
46+
4547
// Orchestration is the Schema for the orchestrations API
4648
type Orchestration struct {
4749
metav1.TypeMeta `json:",inline"`

components/operator/api/formance.com/v1beta1/reconciliation_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ type ReconciliationStatus struct {
4040
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=".status.ready",description="Is ready"
4141
// +kubebuilder:printcolumn:name="Info",type=string,JSONPath=".status.info",description="Info"
4242
// +kubebuilder:metadata:labels=formance.com/kind=module
43+
// +kubebuilder:metadata:labels=formance.com/is-ee=true
44+
4345
// Reconciliation is the Schema for the reconciliations API
4446
type Reconciliation struct {
4547
metav1.TypeMeta `json:",inline"`

components/operator/api/formance.com/v1beta1/search_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ type SearchStatus struct {
4747
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=".status.ready",description="Is ready"
4848
// +kubebuilder:printcolumn:name="Info",type=string,JSONPath=".status.info",description="Info"
4949
// +kubebuilder:metadata:labels=formance.com/kind=module
50+
// +kubebuilder:metadata:labels=formance.com/is-ee=true
5051
// Search is the Schema for the searches API
5152
type Search struct {
5253
metav1.TypeMeta `json:",inline"`

components/operator/api/formance.com/v1beta1/wallets_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type WalletsStatus struct {
4040
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=".status.ready",description="Is ready"
4141
// +kubebuilder:printcolumn:name="Info",type=string,JSONPath=".status.info",description="Info"
4242
// +kubebuilder:metadata:labels=formance.com/kind=module
43+
// +kubebuilder:metadata:labels=formance.com/is-ee=true
4344
// Wallets is the Schema for the wallets API
4445
type Wallets struct {
4546
metav1.TypeMeta `json:",inline"`

components/operator/api/formance.com/v1beta1/webhooks_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ type WebhooksStatus struct {
4040
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=".status.ready",description="Is ready"
4141
// +kubebuilder:printcolumn:name="Info",type=string,JSONPath=".status.info",description="Info"
4242
// +kubebuilder:metadata:labels=formance.com/kind=module
43+
// +kubebuilder:metadata:labels=formance.com/is-ee=true
4344
// Webhooks is the Schema for the webhooks API
4445
type Webhooks struct {
4546
metav1.TypeMeta `json:",inline"`

components/operator/config/crd/bases/formance.com_orchestrations.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.14.0
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: orchestrations.formance.com
1011
spec:

components/operator/config/crd/bases/formance.com_reconciliations.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.14.0
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: reconciliations.formance.com
1011
spec:

components/operator/config/crd/bases/formance.com_searches.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.14.0
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: searches.formance.com
1011
spec:

components/operator/config/crd/bases/formance.com_wallets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.14.0
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: wallets.formance.com
1011
spec:

components/operator/config/crd/bases/formance.com_webhooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
annotations:
66
controller-gen.kubebuilder.io/version: v0.14.0
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: webhooks.formance.com
1011
spec:

components/operator/helm/crds/templates/crds/apiextensions.k8s.io_v1_customresourcedefinition_orchestrations.formance.com.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
controller-gen.kubebuilder.io/version: v0.14.0
66
helm.sh/resource-policy: keep
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: orchestrations.formance.com
1011
spec:

components/operator/helm/crds/templates/crds/apiextensions.k8s.io_v1_customresourcedefinition_reconciliations.formance.com.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
controller-gen.kubebuilder.io/version: v0.14.0
66
helm.sh/resource-policy: keep
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: reconciliations.formance.com
1011
spec:

components/operator/helm/crds/templates/crds/apiextensions.k8s.io_v1_customresourcedefinition_searches.formance.com.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
controller-gen.kubebuilder.io/version: v0.14.0
66
helm.sh/resource-policy: keep
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: searches.formance.com
1011
spec:

components/operator/helm/crds/templates/crds/apiextensions.k8s.io_v1_customresourcedefinition_wallets.formance.com.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
controller-gen.kubebuilder.io/version: v0.14.0
66
helm.sh/resource-policy: keep
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: wallets.formance.com
1011
spec:

components/operator/helm/crds/templates/crds/apiextensions.k8s.io_v1_customresourcedefinition_webhooks.formance.com.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ metadata:
55
controller-gen.kubebuilder.io/version: v0.14.0
66
helm.sh/resource-policy: keep
77
labels:
8+
formance.com/is-ee: "true"
89
formance.com/kind: module
910
name: webhooks.formance.com
1011
spec:

components/operator/internal/resources/gateways/Caddyfile.gotpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
}
124124
}
125125

126-
# Respond 502 if service does not exists
126+
# Respond 404 if service does not exists
127127
handle /api/* {
128-
respond "Bad Gateway" 502
128+
respond "Not Found" 404
129129
}
130130
}

components/operator/internal/tests/testdata/resources/gateway-controller/configmap-with-audit.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@
66
Access-Control-Allow-Origin *
77
}
88
}
9-
(audit) {
10-
audit {
11-
# Kafka publisher
12-
# Nats publisher
13-
publisher_nats_enabled {$PUBLISHER_NATS_ENABLED:true}
14-
publisher_nats_url {$PUBLISHER_NATS_URL:nats://nats:4222}
15-
publisher_nats_client_id {$PUBLISHER_NATS_CLIENT_ID:gateway}
16-
publisher_nats_max_reconnects {$PUBLISHER_NATS_MAX_RECONNECTS:30}
17-
publisher_nats_max_reconnects_wait {$PUBLISHER_NATS_MAX_RECONNECT_WAIT:2s}
18-
}
19-
}
209

2110
{
2211

@@ -30,14 +19,12 @@
3019
# ordered.
3120
# c.f. https://caddyserver.com/docs/caddyfile/directives#directive-order
3221
order versions after metrics
33-
order audit after encode
3422
}
3523

3624
:8080 {
3725
log {
3826
output stdout
3927
}
40-
import audit
4128
handle /api/ledger* {
4229
uri strip_prefix /api/ledger
4330
import cors
@@ -56,8 +43,8 @@
5643
}
5744
}
5845

59-
# Respond 502 if service does not exists
46+
# Respond 404 if service does not exists
6047
handle /api/* {
61-
respond "Bad Gateway" 502
48+
respond "Not Found" 404
6249
}
6350
}

components/operator/internal/tests/testdata/resources/gateway-controller/configmap-with-ledger-and-another-service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
}
5858
}
5959

60-
# Respond 502 if service does not exists
60+
# Respond 404 if service does not exists
6161
handle /api/* {
62-
respond "Bad Gateway" 502
62+
respond "Not Found" 404
6363
}
6464
}

components/operator/internal/tests/testdata/resources/gateway-controller/configmap-with-ledger-and-auth.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
}
6161
}
6262

63-
# Respond 502 if service does not exists
63+
# Respond 404 if service does not exists
6464
handle /api/* {
65-
respond "Bad Gateway" 502
65+
respond "Not Found" 404
6666
}
6767
}

components/operator/internal/tests/testdata/resources/gateway-controller/configmap-with-ledger-only.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
}
4444
}
4545

46-
# Respond 502 if service does not exists
46+
# Respond 404 if service does not exists
4747
handle /api/* {
48-
respond "Bad Gateway" 502
48+
respond "Not Found" 404
4949
}
5050
}

components/operator/internal/tests/testdata/resources/gateway-controller/configmap-with-opentelemetry.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
}
4747
}
4848

49-
# Respond 502 if service does not exists
49+
# Respond 404 if service does not exists
5050
handle /api/* {
51-
respond "Bad Gateway" 502
51+
respond "Not Found" 404
5252
}
5353
}

ee/agent/internal/membership_client.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type membershipClient struct {
4040
address string
4141
}
4242

43-
func (c *membershipClient) connectMetadata(ctx context.Context, modules []string) (metadata.MD, error) {
43+
func (c *membershipClient) connectMetadata(ctx context.Context, modules []string, eeModules []string) (metadata.MD, error) {
4444

4545
md, err := c.authenticator.authenticate(ctx)
4646
if err != nil {
@@ -58,11 +58,12 @@ func (c *membershipClient) connectMetadata(ctx context.Context, modules []string
5858
md.Append(metadataVersion, c.clientInfo.Version)
5959
md.Append(metadataCapabilities, capabilityEE, capabilityModuleList)
6060
md.Append(capabilityModuleList, modules...)
61+
md.Append(capabilityEE, eeModules...)
6162

6263
return md, nil
6364
}
6465

65-
func (c *membershipClient) connect(ctx context.Context, modules []string) error {
66+
func (c *membershipClient) connect(ctx context.Context, modules []string, eeModules []string) error {
6667
sharedlogging.FromContext(ctx).WithFields(map[string]any{
6768
"id": c.clientInfo.ID,
6869
}).Infof("Establish connection to server")
@@ -79,7 +80,7 @@ func (c *membershipClient) connect(ctx context.Context, modules []string) error
7980
sharedlogging.FromContext(ctx).Info("Connected to GRPC server!")
8081
c.serverClient = generated.NewServerClient(conn)
8182

82-
md, err := c.connectMetadata(ctx, modules)
83+
md, err := c.connectMetadata(ctx, modules, eeModules)
8384
if err != nil {
8485
return err
8586
}

0 commit comments

Comments
 (0)