From 87cb9d60506945c0fda0631082d527ff066b69b2 Mon Sep 17 00:00:00 2001 From: Maxence Maireaux Date: Fri, 11 Aug 2023 10:55:31 +0200 Subject: [PATCH] feat: Add annotations for every services (#474) --- .envrc | 2 - .../operator/apis/stack/v1beta3/auth_types.go | 3 + .../apis/stack/v1beta3/configuration_types.go | 6 + .../apis/stack/v1beta3/control_types.go | 5 +- .../apis/stack/v1beta3/gateway_types.go | 7 + .../apis/stack/v1beta3/ledger_types.go | 7 + .../apis/stack/v1beta3/orchestration_types.go | 5 +- .../apis/stack/v1beta3/payments_types.go | 3 + .../apis/stack/v1beta3/search_types.go | 3 + .../apis/stack/v1beta3/stargate_types.go | 3 +- .../apis/stack/v1beta3/wallets_types.go | 3 +- .../apis/stack/v1beta3/webhooks_types.go | 5 +- .../stack/v1beta3/zz_generated.deepcopy.go | 88 +++- .../stack.formance.com_configurations.yaml | 90 +++- .../monopod-disabled-one-service.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../deployments-apps-v1/monopod-latest.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/orchestration.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../deployments-apps-v1/monopod-ledgerv1.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/orchestration.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../monopod-search-before-v0-7-0.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/orchestration.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../results/deployments-apps-v1/auth.yaml | 4 +- .../results/deployments-apps-v1/control.yaml | 4 +- .../results/deployments-apps-v1/gateway.yaml | 4 +- .../results/deployments-apps-v1/ledger.yaml | 4 +- .../orchestration-worker.yaml | 4 +- .../deployments-apps-v1/orchestration.yaml | 4 +- .../results/deployments-apps-v1/payments.yaml | 4 +- .../deployments-apps-v1/search-benthos.yaml | 4 +- .../results/deployments-apps-v1/search.yaml | 4 +- .../results/deployments-apps-v1/stargate.yaml | 4 +- .../results/deployments-apps-v1/wallets.yaml | 4 +- .../deployments-apps-v1/webhooks-worker.yaml | 4 +- .../results/deployments-apps-v1/webhooks.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/orchestration.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../results/deployments-apps-v1/auth.yaml | 4 +- .../results/deployments-apps-v1/control.yaml | 4 +- .../results/deployments-apps-v1/gateway.yaml | 4 +- .../results/deployments-apps-v1/ledger.yaml | 4 +- .../results/deployments-apps-v1/payments.yaml | 4 +- .../deployments-apps-v1/search-benthos.yaml | 4 +- .../results/deployments-apps-v1/search.yaml | 4 +- .../results/deployments-apps-v1/stargate.yaml | 4 +- .../results/deployments-apps-v1/wallets.yaml | 4 +- .../deployments-apps-v1/webhooks-worker.yaml | 4 +- .../results/deployments-apps-v1/webhooks.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../results/deployments-apps-v1/auth.yaml | 4 +- .../results/deployments-apps-v1/control.yaml | 4 +- .../results/deployments-apps-v1/gateway.yaml | 4 +- .../results/deployments-apps-v1/ledger.yaml | 4 +- .../orchestration-worker.yaml | 4 +- .../deployments-apps-v1/orchestration.yaml | 4 +- .../results/deployments-apps-v1/payments.yaml | 4 +- .../deployments-apps-v1/search-benthos.yaml | 4 +- .../results/deployments-apps-v1/search.yaml | 4 +- .../results/deployments-apps-v1/stargate.yaml | 4 +- .../results/deployments-apps-v1/wallets.yaml | 4 +- .../deployments-apps-v1/webhooks-worker.yaml | 4 +- .../results/deployments-apps-v1/webhooks.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/orchestration.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../results/deployments-apps-v1/auth.yaml | 4 +- .../results/deployments-apps-v1/control.yaml | 4 +- .../results/deployments-apps-v1/gateway.yaml | 4 +- .../results/deployments-apps-v1/ledger.yaml | 4 +- .../orchestration-worker.yaml | 4 +- .../deployments-apps-v1/orchestration.yaml | 4 +- .../results/deployments-apps-v1/payments.yaml | 4 +- .../deployments-apps-v1/search-benthos.yaml | 4 +- .../results/deployments-apps-v1/search.yaml | 4 +- .../results/deployments-apps-v1/stargate.yaml | 4 +- .../results/deployments-apps-v1/wallets.yaml | 4 +- .../deployments-apps-v1/webhooks-worker.yaml | 4 +- .../results/deployments-apps-v1/webhooks.yaml | 4 +- .../results/services--v1/auth.yaml | 4 +- .../results/services--v1/control.yaml | 4 +- .../results/services--v1/gateway.yaml | 4 +- .../results/services--v1/ledger.yaml | 4 +- .../results/services--v1/orchestration.yaml | 4 +- .../results/services--v1/payments.yaml | 4 +- .../results/services--v1/search-benthos.yaml | 4 +- .../results/services--v1/search.yaml | 4 +- .../results/services--v1/stargate.yaml | 4 +- .../results/services--v1/wallets.yaml | 4 +- .../results/services--v1/webhooks.yaml | 4 +- .../configuration.yaml | 68 +++ .../results/configmaps--v1/auth-config.yaml | 51 ++ .../configmaps--v1/gateway-config.yaml | 106 ++++ .../search-benthos-resources.yaml | 35 ++ .../search-benthos-streams.yaml | 458 ++++++++++++++++++ .../search-benthos-templates.yaml | 124 +++++ .../results/deployments-apps-v1/auth.yaml | 116 +++++ .../results/deployments-apps-v1/control.yaml | 81 ++++ .../results/deployments-apps-v1/gateway.yaml | 84 ++++ .../results/deployments-apps-v1/ledger.yaml | 102 ++++ .../orchestration-worker.yaml | 91 ++++ .../deployments-apps-v1/orchestration.yaml | 103 ++++ .../results/deployments-apps-v1/payments.yaml | 104 ++++ .../deployments-apps-v1/search-benthos.yaml | 124 +++++ .../results/deployments-apps-v1/search.yaml | 98 ++++ .../results/deployments-apps-v1/stargate.yaml | 89 ++++ .../results/deployments-apps-v1/wallets.yaml | 85 ++++ .../deployments-apps-v1/webhooks-worker.yaml | 91 ++++ .../results/deployments-apps-v1/webhooks.yaml | 101 ++++ .../gateway.yaml | 22 + .../payments-v0.6.5-post-upgrade.yaml | 18 + .../payments-v0.6.5-pre-upgrade.yaml | 18 + .../payments-v0.6.7-pre-upgrade.yaml | 18 + .../payments-v0.6.8-pre-upgrade.yaml | 18 + .../payments-v0.7.0-post-upgrade.yaml | 18 + .../payments-v0.7.0-pre-upgrade.yaml | 18 + .../payments-v0.8.0-post-upgrade.yaml | 18 + .../payments-v0.8.0-pre-upgrade.yaml | 18 + .../payments-v0.8.1-post-upgrade.yaml | 18 + .../payments-v0.9.0-pre-upgrade.yaml | 18 + .../payments-v0.9.1-pre-upgrade.yaml | 18 + .../payments-v0.9.4-pre-upgrade.yaml | 18 + .../search-v0.7.0-post-upgrade.yaml | 18 + .../search-v0.7.0-pre-upgrade.yaml | 18 + .../wallets-v0.4.3-post-upgrade.yaml | 18 + .../results/secrets--v1/auth-secret.yaml | 10 + .../results/services--v1/auth.yaml | 27 ++ .../results/services--v1/control.yaml | 27 ++ .../results/services--v1/gateway.yaml | 29 ++ .../results/services--v1/ledger.yaml | 27 ++ .../results/services--v1/orchestration.yaml | 27 ++ .../results/services--v1/payments.yaml | 27 ++ .../results/services--v1/search-benthos.yaml | 27 ++ .../results/services--v1/search.yaml | 27 ++ .../results/services--v1/stargate.yaml | 27 ++ .../results/services--v1/wallets.yaml | 27 ++ .../results/services--v1/webhooks.yaml | 27 ++ .../multipod-service-annotation/stack.yaml | 11 + .../multipod-service-annotation/versions.yaml | 5 + .../internal/handlers/handler_auth.go | 1 + .../internal/handlers/handler_control.go | 9 +- .../internal/handlers/handler_gateway.go | 9 +- .../internal/handlers/handler_ledger.go | 1 + .../handlers/handler_orchestration.go | 1 + .../internal/handlers/handler_payments.go | 1 + .../internal/handlers/handler_search.go | 10 +- .../internal/handlers/handler_stargate.go | 1 + .../internal/handlers/handler_wallets.go | 1 + .../internal/handlers/handler_webhooks.go | 2 + .../operator/internal/modules/service.go | 12 +- 213 files changed, 3235 insertions(+), 327 deletions(-) create mode 100644 components/operator/apis/stack/v1beta3/gateway_types.go create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/configuration.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/auth-config.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/gateway-config.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-resources.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-streams.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-templates.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/auth.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/control.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/gateway.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/ledger.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration-worker.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/payments.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search-benthos.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/stargate.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/wallets.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks-worker.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/ingresses-networking.k8s.io-v1/gateway.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-post-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.7-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.8-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-post-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-post-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.1-post-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.0-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.1-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.4-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-post-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-pre-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/wallets-v0.4.3-post-upgrade.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/secrets--v1/auth-secret.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/auth.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/control.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/gateway.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/ledger.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/orchestration.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/payments.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search-benthos.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/stargate.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/wallets.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/webhooks.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/stack.yaml create mode 100644 components/operator/internal/controllers/stack/testdata/multipod-service-annotation/versions.yaml diff --git a/.envrc b/.envrc index f9c4326f6f..c23774ba8f 100644 --- a/.envrc +++ b/.envrc @@ -2,8 +2,6 @@ # directory via our direnv integration: eval "$(devbox generate direnv --print-envrc)" -export GOPATH=${PWD}/.moon/go -export PATH=${PWD}/.moon/go/bin:$PATH export PATH=$PWD/.direnv:$PATH # check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/ diff --git a/components/operator/apis/stack/v1beta3/auth_types.go b/components/operator/apis/stack/v1beta3/auth_types.go index ddcf27714c..e44deb5289 100644 --- a/components/operator/apis/stack/v1beta3/auth_types.go +++ b/components/operator/apis/stack/v1beta3/auth_types.go @@ -4,4 +4,7 @@ type AuthSpec struct { Postgres PostgresConfig `json:"postgres"` // +optional StaticClients []StaticClient `json:"staticClients,omitempty"` + + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } diff --git a/components/operator/apis/stack/v1beta3/configuration_types.go b/components/operator/apis/stack/v1beta3/configuration_types.go index c54ba0eaad..43a20ae042 100644 --- a/components/operator/apis/stack/v1beta3/configuration_types.go +++ b/components/operator/apis/stack/v1beta3/configuration_types.go @@ -38,6 +38,7 @@ type ConfigurationServicesSpec struct { Auth AuthSpec `json:"auth,omitempty"` // +optional + Gateway GatewaySpec `json:"gateway,omitempty"` Stargate StargateSpec `json:"stargate,omitempty"` } @@ -80,6 +81,11 @@ type MonitoringSpec struct { Metrics *MetricsSpec `json:"metrics,omitempty"` } +type AnnotationsServicesSpec struct { + // +optional + Service map[string]string `json:"service,omitempty"` +} + type OtlpSpec struct { // +optional Endpoint string `json:"endpoint,omitempty"` diff --git a/components/operator/apis/stack/v1beta3/control_types.go b/components/operator/apis/stack/v1beta3/control_types.go index c2f5240007..0428ff377c 100644 --- a/components/operator/apis/stack/v1beta3/control_types.go +++ b/components/operator/apis/stack/v1beta3/control_types.go @@ -1,4 +1,7 @@ package v1beta3 // +kubebuilder:object:generate=true -type ControlSpec struct{} +type ControlSpec struct { + // +optional + Annotations AnnotationsServicesSpec `json:"service"` +} diff --git a/components/operator/apis/stack/v1beta3/gateway_types.go b/components/operator/apis/stack/v1beta3/gateway_types.go new file mode 100644 index 0000000000..07e2383268 --- /dev/null +++ b/components/operator/apis/stack/v1beta3/gateway_types.go @@ -0,0 +1,7 @@ +package v1beta3 + +// +kubebuilder:object:generate=true +type GatewaySpec struct { + // +optional + Annotations AnnotationsServicesSpec `json:"annotations,omitempty"` +} diff --git a/components/operator/apis/stack/v1beta3/ledger_types.go b/components/operator/apis/stack/v1beta3/ledger_types.go index 2d74832a16..a96a9b84e9 100644 --- a/components/operator/apis/stack/v1beta3/ledger_types.go +++ b/components/operator/apis/stack/v1beta3/ledger_types.go @@ -21,4 +21,11 @@ type LedgerSpec struct { Postgres PostgresConfig `json:"postgres"` // +optional AllowPastTimestamps bool `json:"allowPastTimestamps"` + // +optional + Annotations AnnotationsServicesSpec `json:"service"` +} + +type ServiceSpec struct { + // +optional + Annotations map[string]string `json:"annotations,omitempty"` } diff --git a/components/operator/apis/stack/v1beta3/orchestration_types.go b/components/operator/apis/stack/v1beta3/orchestration_types.go index 575e04053e..97cba68168 100644 --- a/components/operator/apis/stack/v1beta3/orchestration_types.go +++ b/components/operator/apis/stack/v1beta3/orchestration_types.go @@ -2,6 +2,7 @@ package v1beta3 // +kubebuilder:object:generate=true type OrchestrationSpec struct { - DevProperties `json:",inline"` - Postgres PostgresConfig `json:"postgres"` + Postgres PostgresConfig `json:"postgres"` + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } diff --git a/components/operator/apis/stack/v1beta3/payments_types.go b/components/operator/apis/stack/v1beta3/payments_types.go index e3fc51cdcc..fb311d7b24 100644 --- a/components/operator/apis/stack/v1beta3/payments_types.go +++ b/components/operator/apis/stack/v1beta3/payments_types.go @@ -4,4 +4,7 @@ package v1beta3 type PaymentsSpec struct { EncryptionKey string `json:"encryptionKey"` Postgres PostgresConfig `json:"postgres"` + + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } diff --git a/components/operator/apis/stack/v1beta3/search_types.go b/components/operator/apis/stack/v1beta3/search_types.go index ce7863f42b..39e3760713 100644 --- a/components/operator/apis/stack/v1beta3/search_types.go +++ b/components/operator/apis/stack/v1beta3/search_types.go @@ -48,6 +48,9 @@ type SearchSpec struct { // +optional Batching Batching `json:"batching"` + + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } const DefaultESIndex = "stacks" diff --git a/components/operator/apis/stack/v1beta3/stargate_types.go b/components/operator/apis/stack/v1beta3/stargate_types.go index cbf74cae67..db1fe65c93 100644 --- a/components/operator/apis/stack/v1beta3/stargate_types.go +++ b/components/operator/apis/stack/v1beta3/stargate_types.go @@ -1,5 +1,6 @@ package v1beta3 type StargateSpec struct { - DevProperties `json:",inline"` + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } diff --git a/components/operator/apis/stack/v1beta3/wallets_types.go b/components/operator/apis/stack/v1beta3/wallets_types.go index 66a78ae2c9..f7bc21e5f3 100644 --- a/components/operator/apis/stack/v1beta3/wallets_types.go +++ b/components/operator/apis/stack/v1beta3/wallets_types.go @@ -2,5 +2,6 @@ package v1beta3 // +kubebuilder:object:generate=true type WalletsSpec struct { - DevProperties `json:",inline"` + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } diff --git a/components/operator/apis/stack/v1beta3/webhooks_types.go b/components/operator/apis/stack/v1beta3/webhooks_types.go index a50a1727b6..52da6ab254 100644 --- a/components/operator/apis/stack/v1beta3/webhooks_types.go +++ b/components/operator/apis/stack/v1beta3/webhooks_types.go @@ -2,6 +2,7 @@ package v1beta3 // +kubebuilder:object:generate=true type WebhooksSpec struct { - DevProperties `json:",inline"` - Postgres PostgresConfig `json:"postgres"` + Postgres PostgresConfig `json:"postgres"` + // +optional + Annotations AnnotationsServicesSpec `json:"service"` } diff --git a/components/operator/apis/stack/v1beta3/zz_generated.deepcopy.go b/components/operator/apis/stack/v1beta3/zz_generated.deepcopy.go index f1dbdac94d..2c77b3a908 100644 --- a/components/operator/apis/stack/v1beta3/zz_generated.deepcopy.go +++ b/components/operator/apis/stack/v1beta3/zz_generated.deepcopy.go @@ -26,6 +26,28 @@ import ( runtime "k8s.io/apimachinery/pkg/runtime" ) +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AnnotationsServicesSpec) DeepCopyInto(out *AnnotationsServicesSpec) { + *out = *in + if in.Service != nil { + in, out := &in.Service, &out.Service + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnnotationsServicesSpec. +func (in *AnnotationsServicesSpec) DeepCopy() *AnnotationsServicesSpec { + if in == nil { + return nil + } + out := new(AnnotationsServicesSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthSpec) DeepCopyInto(out *AuthSpec) { *out = *in @@ -37,6 +59,7 @@ func (in *AuthSpec) DeepCopyInto(out *AuthSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSpec. @@ -280,15 +303,16 @@ func (in *ConfigurationList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ConfigurationServicesSpec) DeepCopyInto(out *ConfigurationServicesSpec) { *out = *in - out.Control = in.Control - out.Ledger = in.Ledger - out.Payments = in.Payments - out.Webhooks = in.Webhooks - out.Wallets = in.Wallets - out.Orchestration = in.Orchestration + in.Control.DeepCopyInto(&out.Control) + in.Ledger.DeepCopyInto(&out.Ledger) + in.Payments.DeepCopyInto(&out.Payments) + in.Webhooks.DeepCopyInto(&out.Webhooks) + in.Wallets.DeepCopyInto(&out.Wallets) + in.Orchestration.DeepCopyInto(&out.Orchestration) in.Search.DeepCopyInto(&out.Search) in.Auth.DeepCopyInto(&out.Auth) - out.Stargate = in.Stargate + in.Gateway.DeepCopyInto(&out.Gateway) + in.Stargate.DeepCopyInto(&out.Stargate) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationServicesSpec. @@ -343,6 +367,7 @@ func (in *ControlAuthentication) DeepCopy() *ControlAuthentication { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ControlSpec) DeepCopyInto(out *ControlSpec) { *out = *in + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControlSpec. @@ -451,6 +476,22 @@ func (in *ElasticSearchTLSConfig) DeepCopy() *ElasticSearchTLSConfig { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec) { + *out = *in + in.Annotations.DeepCopyInto(&out.Annotations) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewaySpec. +func (in *GatewaySpec) DeepCopy() *GatewaySpec { + if in == nil { + return nil + } + out := new(GatewaySpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IngressConfig) DeepCopyInto(out *IngressConfig) { *out = *in @@ -553,6 +594,7 @@ func (in *KafkaSASLConfig) DeepCopy() *KafkaSASLConfig { func (in *LedgerSpec) DeepCopyInto(out *LedgerSpec) { *out = *in out.Postgres = in.Postgres + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LedgerSpec. @@ -732,8 +774,8 @@ func (in *NatsConfig) DeepCopy() *NatsConfig { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *OrchestrationSpec) DeepCopyInto(out *OrchestrationSpec) { *out = *in - out.DevProperties = in.DevProperties out.Postgres = in.Postgres + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OrchestrationSpec. @@ -765,6 +807,7 @@ func (in *OtlpSpec) DeepCopy() *OtlpSpec { func (in *PaymentsSpec) DeepCopyInto(out *PaymentsSpec) { *out = *in out.Postgres = in.Postgres + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PaymentsSpec. @@ -797,6 +840,7 @@ func (in *SearchSpec) DeepCopyInto(out *SearchSpec) { *out = *in in.ElasticSearchConfig.DeepCopyInto(&out.ElasticSearchConfig) out.Batching = in.Batching + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchSpec. @@ -809,6 +853,28 @@ func (in *SearchSpec) DeepCopy() *SearchSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec) { + *out = *in + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec. +func (in *ServiceSpec) DeepCopy() *ServiceSpec { + if in == nil { + return nil + } + out := new(ServiceSpec) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Stack) DeepCopyInto(out *Stack) { *out = *in @@ -1007,7 +1073,7 @@ func (in *StackStatus) DeepCopy() *StackStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *StargateSpec) DeepCopyInto(out *StargateSpec) { *out = *in - out.DevProperties = in.DevProperties + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StargateSpec. @@ -1206,7 +1272,7 @@ func (in *VersionsStatus) DeepCopy() *VersionsStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WalletsSpec) DeepCopyInto(out *WalletsSpec) { *out = *in - out.DevProperties = in.DevProperties + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WalletsSpec. @@ -1222,8 +1288,8 @@ func (in *WalletsSpec) DeepCopy() *WalletsSpec { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WebhooksSpec) DeepCopyInto(out *WebhooksSpec) { *out = *in - out.DevProperties = in.DevProperties out.Postgres = in.Postgres + in.Annotations.DeepCopyInto(&out.Annotations) } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhooksSpec. diff --git a/components/operator/config/crd/bases/stack.formance.com_configurations.yaml b/components/operator/config/crd/bases/stack.formance.com_configurations.yaml index 51a2aaa3ae..05414fbfa6 100644 --- a/components/operator/config/crd/bases/stack.formance.com_configurations.yaml +++ b/components/operator/config/crd/bases/stack.formance.com_configurations.yaml @@ -4234,6 +4234,13 @@ spec: - port - username type: object + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object staticClients: items: properties: @@ -4267,6 +4274,24 @@ spec: - postgres type: object control: + properties: + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object + type: object + gateway: + properties: + annotations: + properties: + service: + additionalProperties: + type: string + type: object + type: object type: object ledger: properties: @@ -4290,15 +4315,18 @@ spec: - port - username type: object + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object required: - postgres type: object orchestration: properties: - debug: - type: boolean - dev: - type: boolean postgres: properties: disableSSLMode: @@ -4317,6 +4345,13 @@ spec: - port - username type: object + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object required: - postgres type: object @@ -4342,6 +4377,13 @@ spec: - port - username type: object + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object required: - encryptionKey - postgres @@ -4391,29 +4433,38 @@ spec: useZinc: type: boolean type: object + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object required: - elasticSearch type: object stargate: properties: - debug: - type: boolean - dev: - type: boolean + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object type: object wallets: properties: - debug: - type: boolean - dev: - type: boolean + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object type: object webhooks: properties: - debug: - type: boolean - dev: - type: boolean postgres: properties: disableSSLMode: @@ -4432,6 +4483,13 @@ spec: - port - username type: object + service: + properties: + service: + additionalProperties: + type: string + type: object + type: object required: - postgres type: object diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/deployments-apps-v1/monopod-disabled-one-service.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/deployments-apps-v1/monopod-disabled-one-service.yaml index d114a04aef..960497049a 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/deployments-apps-v1/monopod-disabled-one-service.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/deployments-apps-v1/monopod-disabled-one-service.yaml @@ -759,8 +759,8 @@ spec: name: search-benthos-templates status: conditions: - - lastTransitionTime: "2023-08-08T14:46:56Z" - lastUpdateTime: "2023-08-08T14:46:56Z" + - lastTransitionTime: "2023-08-10T13:51:55Z" + lastUpdateTime: "2023-08-10T13:51:55Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/auth.yaml index 0c87142206..75263987f6 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.192 + clusterIP: 10.0.0.67 clusterIPs: - - 10.0.0.192 + - 10.0.0.67 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/control.yaml index 46bb154d69..34cd178c7a 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.193 + clusterIP: 10.0.0.134 clusterIPs: - - 10.0.0.193 + - 10.0.0.134 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/gateway.yaml index 871fca9b9e..1fcb661ec9 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.195 + clusterIP: 10.0.0.188 clusterIPs: - - 10.0.0.195 + - 10.0.0.188 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/payments.yaml index fdee4d2674..7c21774f8a 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.7 + clusterIP: 10.0.0.3 clusterIPs: - - 10.0.0.7 + - 10.0.0.3 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search-benthos.yaml index ae76216cb5..a48681fcc1 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.180 + clusterIP: 10.0.0.56 clusterIPs: - - 10.0.0.180 + - 10.0.0.56 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search.yaml index 5825398870..6ed5724b58 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.185 + clusterIP: 10.0.0.212 clusterIPs: - - 10.0.0.185 + - 10.0.0.212 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/stargate.yaml index 90d3926b4a..373b392509 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.230 + clusterIP: 10.0.0.4 clusterIPs: - - 10.0.0.230 + - 10.0.0.4 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/wallets.yaml index d0c17b0d36..cd1c20085a 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.8 + clusterIP: 10.0.0.5 clusterIPs: - - 10.0.0.8 + - 10.0.0.5 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/webhooks.yaml index 44c0e0c7c9..b95f171be9 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-disabled-one-service/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: monopod-disabled-one-service spec: - clusterIP: 10.0.0.164 + clusterIP: 10.0.0.196 clusterIPs: - - 10.0.0.164 + - 10.0.0.196 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/deployments-apps-v1/monopod-latest.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/deployments-apps-v1/monopod-latest.yaml index b25711b2c9..1fca72512e 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/deployments-apps-v1/monopod-latest.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/deployments-apps-v1/monopod-latest.yaml @@ -977,8 +977,8 @@ spec: name: search-benthos-templates status: conditions: - - lastTransitionTime: "2023-08-08T14:46:57Z" - lastUpdateTime: "2023-08-08T14:46:57Z" + - lastTransitionTime: "2023-08-10T13:51:56Z" + lastUpdateTime: "2023-08-10T13:51:56Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/auth.yaml index 9983b97119..d1099cf4e9 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: monopod-latest spec: - clusterIP: 10.0.0.236 + clusterIP: 10.0.0.72 clusterIPs: - - 10.0.0.236 + - 10.0.0.72 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/control.yaml index 006e4fff7e..d39a000b51 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: monopod-latest spec: - clusterIP: 10.0.0.35 + clusterIP: 10.0.0.2 clusterIPs: - - 10.0.0.35 + - 10.0.0.2 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/gateway.yaml index e762bffb8f..b1aca11ed3 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: monopod-latest spec: - clusterIP: 10.0.0.14 + clusterIP: 10.0.0.123 clusterIPs: - - 10.0.0.14 + - 10.0.0.123 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/ledger.yaml index 5a3d7a1743..a336116de3 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: monopod-latest spec: - clusterIP: 10.0.0.149 + clusterIP: 10.0.0.90 clusterIPs: - - 10.0.0.149 + - 10.0.0.90 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/orchestration.yaml index 0a3b86646f..c821ce0e26 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/orchestration.yaml @@ -6,9 +6,9 @@ metadata: name: orchestration namespace: monopod-latest spec: - clusterIP: 10.0.0.45 + clusterIP: 10.0.0.84 clusterIPs: - - 10.0.0.45 + - 10.0.0.84 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/payments.yaml index 069582b949..c9faf1b74e 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: monopod-latest spec: - clusterIP: 10.0.0.212 + clusterIP: 10.0.0.200 clusterIPs: - - 10.0.0.212 + - 10.0.0.200 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search-benthos.yaml index cd6e639371..2c943850f8 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: monopod-latest spec: - clusterIP: 10.0.0.29 + clusterIP: 10.0.0.99 clusterIPs: - - 10.0.0.29 + - 10.0.0.99 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search.yaml index 796722a1af..3a436bfc99 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: monopod-latest spec: - clusterIP: 10.0.0.166 + clusterIP: 10.0.0.216 clusterIPs: - - 10.0.0.166 + - 10.0.0.216 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/stargate.yaml index a0ad116e62..943e144019 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: monopod-latest spec: - clusterIP: 10.0.0.231 + clusterIP: 10.0.0.7 clusterIPs: - - 10.0.0.231 + - 10.0.0.7 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/wallets.yaml index efc8d0bbbe..d4bf2ebe73 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: monopod-latest spec: - clusterIP: 10.0.0.23 + clusterIP: 10.0.0.76 clusterIPs: - - 10.0.0.23 + - 10.0.0.76 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/webhooks.yaml index 0381a5cad7..9308882d9a 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-latest/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: monopod-latest spec: - clusterIP: 10.0.0.9 + clusterIP: 10.0.0.137 clusterIPs: - - 10.0.0.9 + - 10.0.0.137 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/deployments-apps-v1/monopod-ledgerv1.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/deployments-apps-v1/monopod-ledgerv1.yaml index 09bddbee26..fe841e6543 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/deployments-apps-v1/monopod-ledgerv1.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/deployments-apps-v1/monopod-ledgerv1.yaml @@ -980,8 +980,8 @@ spec: name: search-benthos-templates status: conditions: - - lastTransitionTime: "2023-08-08T14:46:57Z" - lastUpdateTime: "2023-08-08T14:46:57Z" + - lastTransitionTime: "2023-08-10T13:51:56Z" + lastUpdateTime: "2023-08-10T13:51:56Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/auth.yaml index 526e23ab8d..7ebca85be4 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.226 + clusterIP: 10.0.0.246 clusterIPs: - - 10.0.0.226 + - 10.0.0.246 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/control.yaml index 39c4beadcf..abc2a31dbd 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.98 + clusterIP: 10.0.0.158 clusterIPs: - - 10.0.0.98 + - 10.0.0.158 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/gateway.yaml index 94e800bf64..e10b9dc7a9 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.2 + clusterIP: 10.0.0.6 clusterIPs: - - 10.0.0.2 + - 10.0.0.6 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/ledger.yaml index e98f7bd1fb..7a436ce895 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.99 + clusterIP: 10.0.0.29 clusterIPs: - - 10.0.0.99 + - 10.0.0.29 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/orchestration.yaml index 9198aaee0c..5ea612fbd3 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/orchestration.yaml @@ -6,9 +6,9 @@ metadata: name: orchestration namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.3 + clusterIP: 10.0.0.110 clusterIPs: - - 10.0.0.3 + - 10.0.0.110 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/payments.yaml index 77fadaebe1..c86d27303f 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.190 + clusterIP: 10.0.0.176 clusterIPs: - - 10.0.0.190 + - 10.0.0.176 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search-benthos.yaml index 8d1a0b0cea..f366601b4f 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.37 + clusterIP: 10.0.0.38 clusterIPs: - - 10.0.0.37 + - 10.0.0.38 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search.yaml index 7e630d8d38..70435e9d53 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.172 + clusterIP: 10.0.0.175 clusterIPs: - - 10.0.0.172 + - 10.0.0.175 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/stargate.yaml index fb8ffb59f5..90bc6b7e6e 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.194 + clusterIP: 10.0.0.203 clusterIPs: - - 10.0.0.194 + - 10.0.0.203 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/wallets.yaml index 552ae484be..d650f37878 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.10 + clusterIP: 10.0.0.219 clusterIPs: - - 10.0.0.10 + - 10.0.0.219 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/webhooks.yaml index ca6f9f4ee0..3ebe012144 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-ledgerv1/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: monopod-ledgerv1 spec: - clusterIP: 10.0.0.109 + clusterIP: 10.0.0.75 clusterIPs: - - 10.0.0.109 + - 10.0.0.75 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/deployments-apps-v1/monopod-search-before-v0-7-0.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/deployments-apps-v1/monopod-search-before-v0-7-0.yaml index 0006f43c9c..2a01c39e58 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/deployments-apps-v1/monopod-search-before-v0-7-0.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/deployments-apps-v1/monopod-search-before-v0-7-0.yaml @@ -1016,8 +1016,8 @@ spec: name: search-benthos-templates status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/auth.yaml index 37e88363a9..ea2f38840b 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.235 + clusterIP: 10.0.0.241 clusterIPs: - - 10.0.0.235 + - 10.0.0.241 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/control.yaml index 07031c3fc4..f2e3a78b05 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.240 + clusterIP: 10.0.0.213 clusterIPs: - - 10.0.0.240 + - 10.0.0.213 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/gateway.yaml index af2cc88363..88a8700a42 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.245 + clusterIP: 10.0.0.172 clusterIPs: - - 10.0.0.245 + - 10.0.0.172 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/ledger.yaml index c507b6cee7..dfe9dc5ead 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.49 + clusterIP: 10.0.0.21 clusterIPs: - - 10.0.0.49 + - 10.0.0.21 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/orchestration.yaml index 5e9a2d2bb3..ebc5572a6f 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/orchestration.yaml @@ -6,9 +6,9 @@ metadata: name: orchestration namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.184 + clusterIP: 10.0.0.159 clusterIPs: - - 10.0.0.184 + - 10.0.0.159 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/payments.yaml index 52dc1d0d22..7b095558e1 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.123 + clusterIP: 10.0.0.220 clusterIPs: - - 10.0.0.123 + - 10.0.0.220 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search-benthos.yaml index a1cda2f64a..605fbe8658 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.241 + clusterIP: 10.0.0.71 clusterIPs: - - 10.0.0.241 + - 10.0.0.71 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search.yaml index b007a8f192..f199f0c4be 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.103 + clusterIP: 10.0.0.44 clusterIPs: - - 10.0.0.103 + - 10.0.0.44 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/stargate.yaml index 305758a482..4aea03cbfa 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.26 + clusterIP: 10.0.0.181 clusterIPs: - - 10.0.0.26 + - 10.0.0.181 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/wallets.yaml index 1c9ddc26c1..7bf051874c 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.207 + clusterIP: 10.0.0.48 clusterIPs: - - 10.0.0.207 + - 10.0.0.48 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/webhooks.yaml index 1c8583a147..337aecd467 100644 --- a/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/monopod-search-before-v0.7.0/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: monopod-search-before-v0-7-0 spec: - clusterIP: 10.0.0.181 + clusterIP: 10.0.0.31 clusterIPs: - - 10.0.0.181 + - 10.0.0.31 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/auth.yaml index 2bf08b1fef..207f8d87a3 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/auth.yaml @@ -128,8 +128,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/control.yaml index a2a6e1aa6e..4bb396d40a 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/control.yaml @@ -91,8 +91,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/gateway.yaml index 08fa71cc4c..13dfbe3837 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/gateway.yaml @@ -94,8 +94,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/ledger.yaml index 844f1ea502..7f48bc2c3e 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/ledger.yaml @@ -112,8 +112,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration-worker.yaml index db2221f32d..ed232a1c9c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration-worker.yaml @@ -101,8 +101,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration.yaml index 5e3f31b61f..c4208de02d 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/orchestration.yaml @@ -113,8 +113,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/payments.yaml index da1ad85cab..f1ad253e12 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/payments.yaml @@ -114,8 +114,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search-benthos.yaml index a1457b49a5..3dde766264 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search-benthos.yaml @@ -143,8 +143,8 @@ spec: name: templates status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search.yaml index 1104af0cbe..0b114504c1 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/search.yaml @@ -108,8 +108,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/stargate.yaml index a60c24d83d..7083b46e2f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/stargate.yaml @@ -99,8 +99,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:46:59Z" - lastUpdateTime: "2023-08-08T14:46:59Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/wallets.yaml index f974718251..75a29ec8e8 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/wallets.yaml @@ -95,8 +95,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks-worker.yaml index eebac0f666..bacb082a16 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks-worker.yaml @@ -101,8 +101,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks.yaml index 296bee3be8..2055e3d79c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/deployments-apps-v1/webhooks.yaml @@ -111,8 +111,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:57Z" + lastUpdateTime: "2023-08-10T13:51:57Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/auth.yaml index 9896683cec..110653c235 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: multipod-debug spec: - clusterIP: 10.0.0.48 + clusterIP: 10.0.0.168 clusterIPs: - - 10.0.0.48 + - 10.0.0.168 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/control.yaml index 8d607169a3..38e4f8a138 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: multipod-debug spec: - clusterIP: 10.0.0.11 + clusterIP: 10.0.0.55 clusterIPs: - - 10.0.0.11 + - 10.0.0.55 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/gateway.yaml index 31220a47d0..8951b4dd06 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: multipod-debug spec: - clusterIP: 10.0.0.68 + clusterIP: 10.0.0.237 clusterIPs: - - 10.0.0.68 + - 10.0.0.237 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/ledger.yaml index 0cf0649ff3..b334330aff 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: multipod-debug spec: - clusterIP: 10.0.0.114 + clusterIP: 10.0.0.8 clusterIPs: - - 10.0.0.114 + - 10.0.0.8 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/orchestration.yaml index 31ad6c2bd9..b27807d603 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/orchestration.yaml @@ -6,9 +6,9 @@ metadata: name: orchestration namespace: multipod-debug spec: - clusterIP: 10.0.0.116 + clusterIP: 10.0.0.182 clusterIPs: - - 10.0.0.116 + - 10.0.0.182 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/payments.yaml index 82e93e8406..828c130aa3 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: multipod-debug spec: - clusterIP: 10.0.0.115 + clusterIP: 10.0.0.91 clusterIPs: - - 10.0.0.115 + - 10.0.0.91 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search-benthos.yaml index 7bfd157903..0f9d08f9e5 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: multipod-debug spec: - clusterIP: 10.0.0.249 + clusterIP: 10.0.0.37 clusterIPs: - - 10.0.0.249 + - 10.0.0.37 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search.yaml index 33b01d6fb2..d805e9fc8e 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: multipod-debug spec: - clusterIP: 10.0.0.117 + clusterIP: 10.0.0.140 clusterIPs: - - 10.0.0.117 + - 10.0.0.140 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/stargate.yaml index 89c6fc81bd..5e7ab81003 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: multipod-debug spec: - clusterIP: 10.0.0.246 + clusterIP: 10.0.0.88 clusterIPs: - - 10.0.0.246 + - 10.0.0.88 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/wallets.yaml index 72590f875e..6c641e00f5 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: multipod-debug spec: - clusterIP: 10.0.0.251 + clusterIP: 10.0.0.193 clusterIPs: - - 10.0.0.251 + - 10.0.0.193 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/webhooks.yaml index 11a9336216..d40c3afccb 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-debug/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: multipod-debug spec: - clusterIP: 10.0.0.118 + clusterIP: 10.0.0.108 clusterIPs: - - 10.0.0.118 + - 10.0.0.108 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/auth.yaml index e171f6e79d..b122ce7b2f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/auth.yaml @@ -126,8 +126,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/control.yaml index 79d58bce6d..dc563167bd 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/control.yaml @@ -91,8 +91,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/gateway.yaml index be3151e2e9..0e54f3d24b 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/gateway.yaml @@ -94,8 +94,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/ledger.yaml index d1206e63fd..238f46af3c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/ledger.yaml @@ -112,8 +112,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/payments.yaml index 17ed505fef..443492a7ef 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/payments.yaml @@ -114,8 +114,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search-benthos.yaml index ec8a142f0c..7a2b1e83f2 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search-benthos.yaml @@ -143,8 +143,8 @@ spec: name: templates status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search.yaml index aa877bb841..226a2cf8c4 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/search.yaml @@ -108,8 +108,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/stargate.yaml index d7835f36e8..77a763565a 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/stargate.yaml @@ -99,8 +99,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/wallets.yaml index 064cc70786..50a9d8524a 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/wallets.yaml @@ -95,8 +95,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks-worker.yaml index 388c174cd4..8534643cb5 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks-worker.yaml @@ -101,8 +101,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks.yaml index b75d7d1de1..452bff411c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/deployments-apps-v1/webhooks.yaml @@ -111,8 +111,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:00Z" - lastUpdateTime: "2023-08-08T14:47:00Z" + - lastTransitionTime: "2023-08-10T13:51:58Z" + lastUpdateTime: "2023-08-10T13:51:58Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/auth.yaml index 761fa92bea..e8b399b765 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.4 + clusterIP: 10.0.0.124 clusterIPs: - - 10.0.0.4 + - 10.0.0.124 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/control.yaml index 4276e484db..f50336900c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.233 + clusterIP: 10.0.0.77 clusterIPs: - - 10.0.0.233 + - 10.0.0.77 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/gateway.yaml index 81507d84ea..efc99542d0 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.119 + clusterIP: 10.0.0.184 clusterIPs: - - 10.0.0.119 + - 10.0.0.184 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/ledger.yaml index 0a67fec2f1..8adff36891 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.139 + clusterIP: 10.0.0.235 clusterIPs: - - 10.0.0.139 + - 10.0.0.235 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/payments.yaml index aa82d3b956..fd67c513bd 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.83 + clusterIP: 10.0.0.240 clusterIPs: - - 10.0.0.83 + - 10.0.0.240 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search-benthos.yaml index e6465c55de..bd2891ae39 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.54 + clusterIP: 10.0.0.86 clusterIPs: - - 10.0.0.54 + - 10.0.0.86 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search.yaml index d1f0844f59..8f0812cd54 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.57 + clusterIP: 10.0.0.247 clusterIPs: - - 10.0.0.57 + - 10.0.0.247 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/stargate.yaml index 1f736019a4..8a95f81e19 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.183 + clusterIP: 10.0.0.117 clusterIPs: - - 10.0.0.183 + - 10.0.0.117 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/wallets.yaml index 87ac48b345..d7839f66e8 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.227 + clusterIP: 10.0.0.53 clusterIPs: - - 10.0.0.227 + - 10.0.0.53 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/webhooks.yaml index 5b0218f1a2..55c41e7ad6 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-disabled-one-service/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: multipod-disabled-one-service spec: - clusterIP: 10.0.0.171 + clusterIP: 10.0.0.232 clusterIPs: - - 10.0.0.171 + - 10.0.0.232 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/auth.yaml index 2794e61834..3a2c93aa62 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/auth.yaml @@ -109,8 +109,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/control.yaml index a0b3115b34..0f75a46f12 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/control.yaml @@ -74,8 +74,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/gateway.yaml index 2e682a1793..84190f4b95 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/gateway.yaml @@ -77,8 +77,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/ledger.yaml index ca21966eb6..983d34bd32 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/ledger.yaml @@ -95,8 +95,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration-worker.yaml index 987eff3ae3..66dca0755a 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration-worker.yaml @@ -84,8 +84,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration.yaml index e85e5f86b4..e4872936aa 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/orchestration.yaml @@ -96,8 +96,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/payments.yaml index 0dc5ca1928..d2a17b58b6 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/payments.yaml @@ -97,8 +97,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search-benthos.yaml index 1396704f99..322048145d 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search-benthos.yaml @@ -117,8 +117,8 @@ spec: name: templates status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search.yaml index 95de803b8b..55240a952f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/search.yaml @@ -91,8 +91,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/stargate.yaml index fa3df2c24a..88209d8c86 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/stargate.yaml @@ -82,8 +82,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/wallets.yaml index 99adad699f..570c204701 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/wallets.yaml @@ -78,8 +78,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks-worker.yaml index f94b147f67..5833b2e8f1 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks-worker.yaml @@ -84,8 +84,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks.yaml index cd58bd52dc..6b01403bf3 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/deployments-apps-v1/webhooks.yaml @@ -94,8 +94,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:02Z" - lastUpdateTime: "2023-08-08T14:47:02Z" + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/auth.yaml index f70b76938a..8ff537804b 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.5 + clusterIP: 10.0.0.160 clusterIPs: - - 10.0.0.5 + - 10.0.0.160 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/control.yaml index bc156f76ba..90558c009f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.34 + clusterIP: 10.0.0.230 clusterIPs: - - 10.0.0.34 + - 10.0.0.230 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/gateway.yaml index 5e995420c4..64d8f1e0fc 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.153 + clusterIP: 10.0.0.173 clusterIPs: - - 10.0.0.153 + - 10.0.0.173 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/ledger.yaml index e0346e16e9..8cbec54c8b 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.130 + clusterIP: 10.0.0.92 clusterIPs: - - 10.0.0.130 + - 10.0.0.92 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/orchestration.yaml index 44eaa13050..e34ddec445 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/orchestration.yaml @@ -6,9 +6,9 @@ metadata: name: orchestration namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.189 + clusterIP: 10.0.0.96 clusterIPs: - - 10.0.0.189 + - 10.0.0.96 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/payments.yaml index bc476e867e..d6b3d04210 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.47 + clusterIP: 10.0.0.73 clusterIPs: - - 10.0.0.47 + - 10.0.0.73 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search-benthos.yaml index d36a247aff..3c5b89f6ad 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.213 + clusterIP: 10.0.0.178 clusterIPs: - - 10.0.0.213 + - 10.0.0.178 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search.yaml index 393a43c266..5858a98b62 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.215 + clusterIP: 10.0.0.223 clusterIPs: - - 10.0.0.215 + - 10.0.0.223 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/stargate.yaml index 9861a57d70..776bc944c4 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.136 + clusterIP: 10.0.0.139 clusterIPs: - - 10.0.0.136 + - 10.0.0.139 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/wallets.yaml index 2d4303082f..c413fdb69f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.148 + clusterIP: 10.0.0.231 clusterIPs: - - 10.0.0.148 + - 10.0.0.231 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/webhooks.yaml index b6a6d37d37..9454ac5fcf 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest-no-monitoring/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: multipod-latest-no-monitoring spec: - clusterIP: 10.0.0.121 + clusterIP: 10.0.0.15 clusterIPs: - - 10.0.0.121 + - 10.0.0.15 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/auth.yaml index cba92ea3d8..78ab52fcd8 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/auth.yaml @@ -126,8 +126,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/control.yaml index 4202950f06..20b51b619b 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/control.yaml @@ -91,8 +91,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/gateway.yaml index 3181d7cbc7..81173aca89 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/gateway.yaml @@ -94,8 +94,8 @@ spec: name: config status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/ledger.yaml index 2794e353c2..2d2eee7879 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/ledger.yaml @@ -112,8 +112,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration-worker.yaml index 034e850906..eeb323113c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration-worker.yaml @@ -101,8 +101,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration.yaml index 9feb9844d3..5b46ad3b06 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/orchestration.yaml @@ -113,8 +113,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/payments.yaml index 6c004d380b..b5241f30d3 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/payments.yaml @@ -114,8 +114,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search-benthos.yaml index 6e3a559e32..8d7e617a9d 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search-benthos.yaml @@ -143,8 +143,8 @@ spec: name: templates status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search.yaml index 551de80463..850d1b132f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/search.yaml @@ -108,8 +108,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/stargate.yaml index 704eb29944..89bb6dac69 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/stargate.yaml @@ -99,8 +99,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/wallets.yaml index 9dfa2be463..850ecc64df 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/wallets.yaml @@ -95,8 +95,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks-worker.yaml index a4c438efb6..ddfeee0309 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks-worker.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks-worker.yaml @@ -101,8 +101,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks.yaml index fc811f177b..9ac2fb2ca2 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/deployments-apps-v1/webhooks.yaml @@ -111,8 +111,8 @@ spec: terminationGracePeriodSeconds: 30 status: conditions: - - lastTransitionTime: "2023-08-08T14:47:01Z" - lastUpdateTime: "2023-08-08T14:47:01Z" + - lastTransitionTime: "2023-08-10T13:51:59Z" + lastUpdateTime: "2023-08-10T13:51:59Z" status: "True" type: Available observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/auth.yaml index dab0e0e5c2..a5b48b207d 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/auth.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/auth.yaml @@ -6,9 +6,9 @@ metadata: name: auth namespace: multipod-latest spec: - clusterIP: 10.0.0.120 + clusterIP: 10.0.0.132 clusterIPs: - - 10.0.0.120 + - 10.0.0.132 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/control.yaml index 80cdb0fad9..02ae45a682 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/control.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/control.yaml @@ -6,9 +6,9 @@ metadata: name: control namespace: multipod-latest spec: - clusterIP: 10.0.0.205 + clusterIP: 10.0.0.9 clusterIPs: - - 10.0.0.205 + - 10.0.0.9 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/gateway.yaml index 27118333b9..245703a53c 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/gateway.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/gateway.yaml @@ -6,9 +6,9 @@ metadata: name: gateway namespace: multipod-latest spec: - clusterIP: 10.0.0.33 + clusterIP: 10.0.0.131 clusterIPs: - - 10.0.0.33 + - 10.0.0.131 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/ledger.yaml index 122cc176ea..a31d11a247 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/ledger.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/ledger.yaml @@ -6,9 +6,9 @@ metadata: name: ledger namespace: multipod-latest spec: - clusterIP: 10.0.0.15 + clusterIP: 10.0.0.138 clusterIPs: - - 10.0.0.15 + - 10.0.0.138 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/orchestration.yaml index 9753f2e8c4..22c6fba2a6 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/orchestration.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/orchestration.yaml @@ -6,9 +6,9 @@ metadata: name: orchestration namespace: multipod-latest spec: - clusterIP: 10.0.0.28 + clusterIP: 10.0.0.87 clusterIPs: - - 10.0.0.28 + - 10.0.0.87 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/payments.yaml index c54b14d014..438b371ac6 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/payments.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/payments.yaml @@ -6,9 +6,9 @@ metadata: name: payments namespace: multipod-latest spec: - clusterIP: 10.0.0.61 + clusterIP: 10.0.0.236 clusterIPs: - - 10.0.0.61 + - 10.0.0.236 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search-benthos.yaml index 6f2ca0c08c..016b04f844 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search-benthos.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search-benthos.yaml @@ -6,9 +6,9 @@ metadata: name: search-benthos namespace: multipod-latest spec: - clusterIP: 10.0.0.174 + clusterIP: 10.0.0.32 clusterIPs: - - 10.0.0.174 + - 10.0.0.32 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search.yaml index 9297df3d8a..cda789fe7f 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/search.yaml @@ -6,9 +6,9 @@ metadata: name: search namespace: multipod-latest spec: - clusterIP: 10.0.0.12 + clusterIP: 10.0.0.41 clusterIPs: - - 10.0.0.12 + - 10.0.0.41 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/stargate.yaml index 4d1ea5e935..6b1d3a20bf 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/stargate.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/stargate.yaml @@ -6,9 +6,9 @@ metadata: name: stargate namespace: multipod-latest spec: - clusterIP: 10.0.0.237 + clusterIP: 10.0.0.125 clusterIPs: - - 10.0.0.237 + - 10.0.0.125 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/wallets.yaml index 7ca25b1a6d..a7fe5916d5 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/wallets.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/wallets.yaml @@ -6,9 +6,9 @@ metadata: name: wallets namespace: multipod-latest spec: - clusterIP: 10.0.0.17 + clusterIP: 10.0.0.126 clusterIPs: - - 10.0.0.17 + - 10.0.0.126 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/webhooks.yaml index 8414e91e49..b854600de1 100644 --- a/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/webhooks.yaml +++ b/components/operator/internal/controllers/stack/testdata/multipod-latest/results/services--v1/webhooks.yaml @@ -6,9 +6,9 @@ metadata: name: webhooks namespace: multipod-latest spec: - clusterIP: 10.0.0.176 + clusterIP: 10.0.0.46 clusterIPs: - - 10.0.0.176 + - 10.0.0.46 internalTrafficPolicy: Cluster ipFamilies: - IPv4 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/configuration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/configuration.yaml new file mode 100644 index 0000000000..cab7594118 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/configuration.yaml @@ -0,0 +1,68 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Configuration +metadata: + name: default +spec: + broker: + kafka: + brokers: + - kafka:1234 + services: + auth: + postgres: + disableSSLMode: true + host: localhost + password: root + port: 5432 + username: root + control: {} + ledger: + postgres: + disableSSLMode: true + host: localhost + password: root + port: 5432 + username: root + orchestration: + postgres: + disableSSLMode: true + host: localhost + password: root + port: 5432 + username: root + payments: + encryptionKey: + postgres: + disableSSLMode: true + host: localhost + password: root + port: 5432 + username: root + search: + batching: + count: + period: + elasticSearch: + host: elasticsearch + pathPrefix: '' + port: 9200 + scheme: http + stargate: + wallets: + gateway: + annotations: + service: + traefik.ingress.kubernetes.io/router.entrypoints: web + webhooks: + postgres: + disableSSLMode: true + host: localhost + password: root + port: 5432 + username: root + temporal: + address: + namespace: + tls: + crt: + key: diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/auth-config.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/auth-config.yaml new file mode 100644 index 0000000000..ec7cadc5be --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/auth-config.yaml @@ -0,0 +1,51 @@ +apiVersion: v1 +data: + config.yaml: | + clients: + - public: false + description: null + redirectUris: + - http://example.net/auth/login + PostLogoutRedirectUris: + - http://example.net/auth/destroy + scopes: + - openid + - profile + - email + - offline + id: control + secrets: + - mocked-secret + - public: false + description: null + redirectUris: [] + PostLogoutRedirectUris: [] + scopes: + - openid + id: orchestration + secrets: + - mocked-secret + - public: false + description: null + redirectUris: [] + PostLogoutRedirectUris: [] + scopes: + - openid + id: stargate + secrets: + - mocked-secret + - public: false + description: null + redirectUris: [] + PostLogoutRedirectUris: [] + scopes: + - openid + id: wallets + secrets: + - mocked-secret +kind: ConfigMap +metadata: + labels: + stack: "true" + name: auth-config + namespace: multipod-service-annotation diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/gateway-config.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/gateway-config.yaml new file mode 100644 index 0000000000..97e187f409 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/gateway-config.yaml @@ -0,0 +1,106 @@ +apiVersion: v1 +data: + Caddyfile: |- + (cors) { + header { + Access-Control-Allow-Methods "GET,OPTIONS,PUT,POST,DELETE,HEAD,PATCH" + Access-Control-Allow-Headers content-type + Access-Control-Max-Age 100 + Access-Control-Allow-Origin * + } + } + + (handle_route_without_auth) { + # handle does not strips the prefix from the request path + handle {args.0}/* { + reverse_proxy {args.1} + + import cors + } + } + + (handle_path_route_with_auth) { + # handle_path automatically strips the prefix from the request path + handle_path {args.0}* { + reverse_proxy {args.1} + + import cors + + import auth + } + } + + (handle_path_route_without_auth) { + # handle_path automatically strips the prefix from the request path + handle_path {args.0}* { + reverse_proxy {args.1} + + import cors + } + } + + (auth) { + auth { + issuer http://example.net/api/auth + + read_key_set_max_retries 10 + } + } + + { + + + # Many directives manipulate the HTTP handler chain and the order in which + # those directives are evaluated matters. So the jwtauth directive must be + # ordered. + # c.f. https://caddyserver.com/docs/caddyfile/directives#directive-order + order auth before basicauth + order versions after metrics + } + + :8000 { + tracing { + span gateway + } + log { + output stdout + } + import handle_path_route_without_auth /api/auth auth:8080 + import handle_path_route_with_auth /api/ledger ledger:8080 + import handle_path_route_with_auth /api/orchestration orchestration:8080 + import handle_path_route_with_auth /api/payments payments:8080 + import handle_path_route_with_auth /api/search search:8080 + import handle_path_route_with_auth /api/search-benthos search-benthos:4195 + import handle_path_route_with_auth /api/stargate stargate:8080 + import handle_path_route_with_auth /api/wallets wallets:8080 + import handle_path_route_with_auth /api/webhooks webhooks:8080 + + handle /versions { + versions { + region "us-west-1" + env "staging" + endpoints { + auth http://auth:8080/_info http://auth:8080/_healthcheck + ledger http://ledger:8080/_info http://ledger:8080/_healthcheck + orchestration http://orchestration:8080/_info http://orchestration:8080/_healthcheck + payments http://payments:8080/_info http://payments:8080/_health + search http://search:8080/_info http://search:8080/_healthcheck + stargate http://stargate:8080/_info http://stargate:8080/_healthcheck + wallets http://wallets:8080/_info http://wallets:8080/_healthcheck + webhooks http://webhooks:8080/_info http://webhooks:8080/_healthcheck + } + } + } + + # handle all other requests + handle { + reverse_proxy control:3000 + import cors + } + } +kind: ConfigMap +metadata: + labels: + stack: "true" + name: gateway-config + namespace: multipod-service-annotation diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-resources.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-resources.yaml new file mode 100644 index 0000000000..48daf86ac6 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-resources.yaml @@ -0,0 +1,35 @@ +apiVersion: v1 +data: + output_elasticsearch.yaml: | + output_resources: + - label: elasticsearch + processors: + - mapping: | + root = this.merge({ + "stack": env("STACK") + }) + meta id = "%s-%s".format(env("STACK"), meta("id")) + elasticsearch: + urls: + - ${OPENSEARCH_URL} + id: ${!meta("id")} + sniff: false + healthcheck: false + index: ${OPENSEARCH_INDEX} + action: ${!meta("action")} + tls: + enabled: true + skip_cert_verify: true + basic_auth: + enabled: ${BASIC_AUTH_ENABLED} + username: ${BASIC_AUTH_USERNAME} + password: ${BASIC_AUTH_PASSWORD} + batching: + count: ${OPENSEARCH_BATCHING_COUNT} + period: ${OPENSEARCH_BATCHING_PERIOD} +kind: ConfigMap +metadata: + labels: + stack: "true" + name: search-benthos-resources + namespace: multipod-service-annotation diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-streams.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-streams.yaml new file mode 100644 index 0000000000..3bb814f78c --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-streams.yaml @@ -0,0 +1,458 @@ +apiVersion: v1 +data: + ledger_ingestion.yaml: | + --- + input: + event_bus: + topic: ledger + consumer_group: search + + pipeline: + processors: + - switch_event_type: + events: + - label: COMMITTED_TRANSACTIONS + processors: + - bloblang: | + map account { + root = this.map_each(v -> v.value.map_each(v2 -> { + "action": "upsert", + "id": v.key, + "document": { + "data": { + "address": v.key + }, + "indexed": { + "address": v.key + }, + "kind": "ACCOUNT" + } + }).values()).values().flatten() + } + + map tx { + root = { + "action": "index", + "id": "%s".format(this.txid), + "document": { + "data": { + "postings": this.postings, + "reference": this.reference, + "txid": this.txid, + "timestamp": this.timestamp, + "metadata": if this.metadata { this.metadata } else {{}} + }, + "indexed": { + "reference": this.reference, + "txid": this.txid, + "timestamp": this.timestamp, + "asset": this.postings.map_each(p -> p.asset), + "source": this.postings.map_each(p -> p.source), + "destination": this.postings.map_each(p -> p.destination), + "amount": this.postings.map_each(p -> if p.asset.contains("/") { + [ + p.amount, + p.amount / if p.asset.split("/").index(1).number(){ range(0, p.asset.split("/").index(1).number()).fold(1, t -> t.tally * 10) } else { 1 } # amount / pow(10, decimal part of asset) + ] + } else { [ p.amount ] }).flatten().map_each(v -> "%v".format(v)) + }, + "kind": "TRANSACTION" + } + } + } + + map committedTransactions { + root = [ + this.payload.transactions.map_each(t -> t.apply("tx")).map_each(t -> t.assign({ + "id": "TRANSACTION-%s-%s".format(this.payload.ledger, t.id) + })), + this.payload.transactions.map_each(t -> t.postings.map_each(p -> [{ + "action": "upsert", + "id": "ACCOUNT-%s-%s".format(this.payload.ledger, p.source), + "document": { + "data": { + "address": p.source + }, + "indexed": { + "address": p.source + }, + "kind": "ACCOUNT" + } + }, { + "action": "upsert", + "id": "ACCOUNT-%s-%s".format(this.payload.ledger, p.destination), + "document": { + "data": { + "address": p.destination + }, + "indexed": { + "address": p.destination + }, + "kind": "ACCOUNT" + } + }])).flatten().flatten() + ].flatten().map_each(t -> t.merge({ + "document": { + "when": this.date, + "ledger": this.payload.ledger, + "data": { + "ledger": this.payload.ledger + }, + "indexed": { + "ledger": this.payload.ledger + } + }, + })) + } + + root = this.apply("committedTransactions") + - unarchive: + format: json_array + - bloblang: | + meta action = this.action + meta id = this.id + root = this.document + - label: SAVED_METADATA + processors: + - bloblang: | + meta targetType = this.payload.targetType + meta targetId = this.payload.targetId + meta ledger = this.payload.ledger + meta id = "%s-%s-%s".format(this.payload.targetType, this.payload.ledger, this.payload.targetId) + meta action = "upsert" + root = this + - get_doc: + id: ${!meta("id")} + - catch: + - log: + level: INFO + message: Document not found, assume it is an account + - bloblang: | + root = this.assign({ + "_doc": { + "data": { + "address": meta("targetId"), + "metadata": {} + }, + "indexed": { + "address": meta("targetId") + }, + "kind": "ACCOUNT", # If not found, so, this is an account + } + }) + - bloblang: | + root = this._doc.assign({ + "data": { + "metadata": this.payload.metadata, + "ledger": this.payload.ledger + }, + "indexed": { + "ledger": this.payload.ledger + }, + "ledger": this.payload.ledger, + "when": this.date + }) + + output: + resource: elasticsearch + ledger_reindex.yaml: | + input: + http_server: + path: / + + output: + broker: + outputs: + - http_client: + verb: POST + url: http://localhost:4195/ledger_reindex_volumes + - http_client: + verb: POST + url: http://localhost:4195/ledger_reindex_transactions + - http_client: + verb: POST + url: http://localhost:4195/ledger_reindex_accounts + ledger_reindex_accounts.yaml: | + input: + http_server: + path: / + + pipeline: + processors: + - bloblang: | + meta ledger = this.ledger + meta batchSize = 100 + - postgres_query: + service: ledger + query: 'select count(*) as accounts_count from "${! meta("ledger") }".accounts' + - unarchive: + format: json_array + - bloblang: | + meta loopCount = (this.accounts_count.number() / meta("batchSize").number()).ceil() + meta loopIndex = 0 + - while: + check: 'meta("loopIndex") < meta("loopCount")' + processors: + - postgres_query: + service: ledger + query: | + select address, metadata + from "${! meta("ledger") }".accounts + offset ${! meta("loopIndex").number() * meta("batchSize").number() } + limit ${! meta("batchSize") } + - bloblang: + meta loopIndex = meta("loopIndex").number() + 1 + - unarchive: + format: json_array + - bloblang: | + root = this.assign({ + "metadata": this.metadata.parse_json() + }) + - bloblang: | + meta action = "upsert" + meta id = "ACCOUNT-%s-%d".format(meta("ledger"), this.address) + root = { + "data": { + "address": this.address, + "ledger": meta("ledger"), + "metadata": this.metadata + }, + "indexed": { + "address": this.address, + "ledger": meta("ledger") + }, + "kind": "ACCOUNT", + "ledger": meta("ledger") + } + + output: + resource: elasticsearch + ledger_reindex_all.yaml: | + input: + http_server: + path: / + + pipeline: + processors: + - postgres_query: + service: ledger + query: 'select * from "_system".ledgers' + - unarchive: + format: json_array + + output: + broker: + outputs: + - http_client: + verb: POST + url: http://localhost:4195/ledger_reindex + ledger_reindex_transactions.yaml: | + input: + http_server: + path: / + + pipeline: + processors: + - bloblang: | + meta ledger = this.ledger + meta batchSize = 100 + - postgres_query: + service: ledger + query: 'select count(*) as transactions_count from "${! meta("ledger") }".transactions' + - unarchive: + format: json_array + - bloblang: | + meta loopCount = (this.transactions_count.number() / meta("batchSize").number()).ceil() + meta loopIndex = 0 + - while: + check: 'meta("loopIndex") < meta("loopCount")' + processors: + - postgres_query: + service: ledger + query: | + select id, timestamp, reference, metadata, postings + from "${! meta("ledger") }".transactions + offset ${! meta("loopIndex").number() * meta("batchSize").number() } + limit ${! meta("batchSize") } + - bloblang: + meta loopIndex = meta("loopIndex").number() + 1 + - unarchive: + format: json_array + - bloblang: | + root = this.assign({ + "postings": this.postings.parse_json(), + "metadata": this.metadata.parse_json() + }) + - bloblang: | + meta action = "upsert" + meta id = "TRANSACTION-%s-%d".format(meta("ledger"), this.id) + root = { + "data": { + "postings": this.postings, + "reference": this.reference, + "txid": this.id, + "timestamp": this.timestamp, + "metadata": if this.metadata { this.metadata } else {{}}, + "ledger": meta("ledger") + }, + "indexed": { + "reference": this.reference, + "txid": this.id, + "timestamp": this.timestamp, + "asset": this.postings.map_each(p -> p.asset), + "source": this.postings.map_each(p -> p.source), + "destination": this.postings.map_each(p -> p.destination), + "amount": this.postings.map_each(p -> if p.asset.contains("/") { + [ + p.amount, + p.amount / range(0, p.asset.split("/").index(1).number()).fold(1, t -> t.tally * 10) # amount / pow(10, decimal part of asset) + ] + } else { [ p.amount ] }).flatten().map_each(v -> "%v".format(v)), + "ledger": meta("ledger") + }, + "kind": "TRANSACTION", + "ledger": meta("ledger") + } + + output: + resource: elasticsearch + ledger_reindex_volumes.yaml: | + input: + http_server: + path: / + + pipeline: + processors: + - bloblang: | + meta ledger = this.ledger + meta batchSize = 100 + - postgres_query: + service: ledger + query: 'select count(*) as volumes_count from "${! meta("ledger") }".volumes' + - unarchive: + format: json_array + - bloblang: | + meta loopCount = (this.volumes_count.number() / meta("batchSize").number()).ceil() + meta loopIndex = 0 + - while: + check: 'meta("loopIndex") < meta("loopCount")' + processors: + - postgres_query: + service: ledger + query: | + select account, asset, input, output + from "${! meta("ledger") }".volumes + offset ${! meta("loopIndex").number() * meta("batchSize").number() } + limit ${! meta("batchSize") } + - bloblang: + meta loopIndex = meta("loopIndex").number() + 1 + - unarchive: + format: json_array + - bloblang: | + meta action = "upsert" + meta id = "ASSET-%s-%s-%s".format(meta("ledger"), this.account, this.asset) + root = { + "data": { + "name": this.asset, + "input": this.input, + "output": this.output, + "account": this.account, + "ledger": meta("ledger") + }, + "indexed": { + "account": this.account, + "name": this.asset, + "ledger": meta("ledger") + }, + "kind": "ASSET", + "ledger": meta("ledger") + } + + output: + resource: elasticsearch + payments_ingestion.yaml: | + input: + event_bus: + topic: payments + consumer_group: search + + pipeline: + processors: + - switch_event_type: + events: + - label: SAVED_PAYMENT + processors: + - bloblang: | + root = { + "data": this.payload, + "indexed": { + "provider": this.payload.provider, + "reference": this.payload.reference, + "scheme": this.payload.scheme, + "type": this.payload.type, + "status": this.payload.status, + "id": this.payload.id, + "initialAmount": this.payload.initialAmount, + "createdAt": this.payload.createdAt + }, + "kind": "PAYMENT", + "when": this.date + } + meta action = "index" + meta id = "PAYMENT-%s".format(this.payload.id) + + output: + resource: elasticsearch + payments_reset.yaml: | + input: + event_bus: + topic: payments + consumer_group: search-payments-resets + + pipeline: + processors: + - switch_event_type: + events: + - label: CONNECTOR_RESET + processors: + - bloblang: | + root = { + "query": { + "bool": { + "must": [ + { + "match": { + "kind": "PAYMENT" + } + }, + { + "match": { + "indexed.provider": this.payload.connector + } + }, + { + "match": { + "stack": env("STACK") + } + } + ] + } + } + } + + output: + http_client: + url: ${OPENSEARCH_URL}/${OPENSEARCH_INDEX}/_delete_by_query + verb: POST + headers: + Content-Type: application/json + basic_auth: + enabled: ${BASIC_AUTH_ENABLED} + username: ${BASIC_AUTH_USERNAME} + password: ${BASIC_AUTH_PASSWORD} +kind: ConfigMap +metadata: + labels: + stack: "true" + name: search-benthos-streams + namespace: multipod-service-annotation diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-templates.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-templates.yaml new file mode 100644 index 0000000000..3bf9431e30 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/configmaps--v1/search-benthos-templates.yaml @@ -0,0 +1,124 @@ +apiVersion: v1 +data: + event_bus.yaml: | + name: event_bus + type: input + + fields: + - name: topic + type: string + - name: consumer_group + type: string + + mapping: | + root = if env("BROKER") == "kafka" {{ + "kafka": { + "addresses": [ env("KAFKA_ADDRESS") ], + "topics": [ env("TOPIC_PREFIX") + this.topic ], + "target_version": env("KAFKA_VERSION"), + "consumer_group": this.consumer_group, + "checkpoint_limit": 1024, + "sasl": { + "mechanism": env("KAFKA_SASL_MECHANISM"), + "password": env("KAFKA_SASL_PASSWORD"), + "user": env("KAFKA_SASL_USERNAME") + }, + "tls": { + "enabled": env("KAFKA_TLS_ENABLED") == "true" + }, + "extract_tracing_map": "root = meta()" + } + }} else {{ + "nats_jetstream": { + "urls": [env("NATS_URL")], + "queue": this.consumer_group, + "subject": env("TOPIC_PREFIX") + this.topic, + "durable": this.consumer_group + } + }} + get_doc.yaml: | + name: get_doc + type: processor + + fields: + - name: id + type: string + + mapping: | + root = { + "branch": { + "request_map": "root = \"\"", + "result_map": "root._doc = this", + "processors": [ + { + "http": { + "url": "%s/%s/_doc/%s-%s".format(env("OPENSEARCH_URL"), env("OPENSEARCH_INDEX"), env("STACK"), this.id), + "verb": "GET", + "basic_auth": { + "enabled": env("BASIC_AUTH_ENABLED") == "true", + "username": env("BASIC_AUTH_USERNAME"), + "password": env("BASIC_AUTH_PASSWORD") + }, + "tls": { + "enabled": true, + "skip_cert_verify": true + } + } + }, { + "bloblang": "root = this._source" + } + ] + } + } + postgres_query.yaml: | + name: postgres_query + type: processor + + fields: + - name: query + type: string + - name: service + type: string + + mapping: | + root = { + "sql_raw": { + "dsn": env("%s_POSTGRES_URI".format(this.service.uppercase())), + "driver": "postgres", + "query": this.query, + "unsafe_dynamic_query": true + } + } + switch_event_type.yaml: | + name: switch_event_type + type: processor + + fields: + - kind: list + type: unknown + name: events + + mapping: | + root = { + "switch": this.events.map_each(eventDefinition -> { + "check": "this.type == \"%s\"".format(eventDefinition.label), + "processors": eventDefinition.processors + }).append({ + "processors": [ + { + "log": { + "message": "unable to handle message ${! content() }" + } + }, + { + "bloblang": "root = deleted()" + } + ] + }) + } +kind: ConfigMap +metadata: + labels: + stack: "true" + name: search-benthos-templates + namespace: multipod-service-annotation diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/auth.yaml new file mode 100644 index 0000000000..d3ff816003 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/auth.yaml @@ -0,0 +1,116 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: auth + formance.com/monopod: "false" + stack: "true" + name: auth + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: auth + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: auth + spec: + containers: + - args: + - serve + env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-auth + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: LISTEN + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: auth + - name: STACK + value: multipod-service-annotation + - name: CONFIG + value: /config/config/config.yaml + - name: DELEGATED_CLIENT_SECRET + - name: DELEGATED_CLIENT_ID + - name: DELEGATED_ISSUER + - name: BASE_URL + value: http://example.net/api/auth + - name: SIGNING_KEY + valueFrom: + secretKeyRef: + key: signingKey + name: auth-secret + image: ghcr.io/formancehq/auth:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: auth + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + volumeMounts: + - mountPath: /config/config + name: config + readOnly: true + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 + volumes: + - configMap: + defaultMode: 420 + name: auth-config + name: config +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/control.yaml new file mode 100644 index 0000000000..83d1f627ea --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/control.yaml @@ -0,0 +1,81 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: control + formance.com/monopod: "false" + stack: "true" + name: control + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: control + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: control + spec: + containers: + - env: + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: control + - name: STACK + value: multipod-service-annotation + - name: API_URL + value: http://example.net + - name: ENCRYPTION_KEY + value: 9h44y2ZqrDuUy5R9NGLA9hca7uRUr932 + - name: ENCRYPTION_IV + value: b6747T6eP9DnMvEw + - name: CLIENT_ID + value: control + - name: CLIENT_SECRET + value: mocked-secret + - name: REDIRECT_URI + value: http://example.net + - name: UNSECURE_COOKIES + value: "false" + image: ghcr.io/formancehq/control:latest + imagePullPolicy: Always + name: control + ports: + - containerPort: 3000 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 512Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/gateway.yaml new file mode 100644 index 0000000000..71ae1ed0f0 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/gateway.yaml @@ -0,0 +1,84 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: gateway + formance.com/monopod: "false" + stack: "true" + name: gateway + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: gateway + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: gateway + spec: + containers: + - args: + - run + - --config + - /config/config/Caddyfile + - --adapter + - caddyfile + command: + - /usr/bin/caddy + env: + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: gateway + - name: STACK + value: multipod-service-annotation + image: ghcr.io/formancehq/gateway:latest + imagePullPolicy: Always + name: gateway + ports: + - containerPort: 8000 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + volumeMounts: + - mountPath: /config/config + name: config + readOnly: true + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 + volumes: + - configMap: + defaultMode: 420 + name: gateway-config + name: config +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/ledger.yaml new file mode 100644 index 0000000000..07fd1d0f1b --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/ledger.yaml @@ -0,0 +1,102 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: ledger + formance.com/monopod: "false" + stack: "true" + name: ledger + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: ledger + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: ledger + spec: + containers: + - env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-ledger + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: BIND + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: ledger + - name: STACK + value: multipod-service-annotation + - name: STORAGE_DRIVER + value: postgres + - name: PUBLISHER_TOPIC_MAPPING + value: '*:multipod-service-annotation-ledger' + - name: BROKER + value: kafka + - name: PUBLISHER_KAFKA_ENABLED + value: "true" + - name: PUBLISHER_KAFKA_BROKER + value: kafka:1234 + - name: STORAGE_POSTGRES_CONN_STRING + value: $(POSTGRES_URI) + image: ghcr.io/formancehq/ledger:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: ledger + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: {} + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration-worker.yaml new file mode 100644 index 0000000000..404d287b25 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration-worker.yaml @@ -0,0 +1,91 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: orchestration + formance.com/monopod: "false" + stack: "true" + name: orchestration-worker + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: orchestration-worker + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: orchestration-worker + spec: + containers: + - args: + - worker + env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-orchestration + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: orchestration-worker + - name: STACK + value: multipod-service-annotation + - name: POSTGRES_DSN + value: $(POSTGRES_URI) + - name: TEMPORAL_TASK_QUEUE + value: multipod-service-annotation + - name: TEMPORAL_ADDRESS + - name: TEMPORAL_NAMESPACE + - name: TEMPORAL_SSL_CLIENT_KEY + - name: TEMPORAL_SSL_CLIENT_CERT + - name: STACK_CLIENT_ID + value: orchestration + - name: STACK_CLIENT_SECRET + value: mocked-secret + image: ghcr.io/formancehq/orchestration:latest + imagePullPolicy: Always + name: orchestration-worker + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration.yaml new file mode 100644 index 0000000000..d22603c8ec --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/orchestration.yaml @@ -0,0 +1,103 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: orchestration + formance.com/monopod: "false" + stack: "true" + name: orchestration + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: orchestration + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: orchestration + spec: + containers: + - env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-orchestration + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: orchestration + - name: STACK + value: multipod-service-annotation + - name: POSTGRES_DSN + value: $(POSTGRES_URI) + - name: TEMPORAL_TASK_QUEUE + value: multipod-service-annotation + - name: TEMPORAL_ADDRESS + - name: TEMPORAL_NAMESPACE + - name: TEMPORAL_SSL_CLIENT_KEY + - name: TEMPORAL_SSL_CLIENT_CERT + - name: STACK_CLIENT_ID + value: orchestration + - name: STACK_CLIENT_SECRET + value: mocked-secret + image: ghcr.io/formancehq/orchestration:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: orchestration + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/payments.yaml new file mode 100644 index 0000000000..d6bfcffbbb --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/payments.yaml @@ -0,0 +1,104 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: payments + formance.com/monopod: "false" + stack: "true" + name: payments + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: payments + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: payments + spec: + containers: + - env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-payments + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: LISTEN + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: payments + - name: STACK + value: multipod-service-annotation + - name: BROKER + value: kafka + - name: PUBLISHER_KAFKA_ENABLED + value: "true" + - name: PUBLISHER_KAFKA_BROKER + value: kafka:1234 + - name: POSTGRES_DATABASE_NAME + value: $(POSTGRES_DATABASE) + - name: CONFIG_ENCRYPTION_KEY + - name: PUBLISHER_TOPIC_MAPPING + value: '*:multipod-service-annotation-payments' + image: ghcr.io/formancehq/payments:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_health + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: payments + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search-benthos.yaml new file mode 100644 index 0000000000..8c621b038b --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search-benthos.yaml @@ -0,0 +1,124 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: search + formance.com/monopod: "false" + stack: "true" + name: search-benthos + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: search-benthos + strategy: + type: Recreate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: search-benthos + spec: + containers: + - command: + - /benthos + - -r + - /config/resources/*.yaml + - -t + - /config/templates/*.yaml + - --log.level + - trace + - streams + - /config/streams/*.yaml + env: + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: search-benthos + - name: STACK + value: multipod-service-annotation + - name: OPENSEARCH_URL + value: http://elasticsearch:9200 + - name: OPENSEARCH_BATCHING_COUNT + value: "0" + - name: OPENSEARCH_BATCHING_PERIOD + - name: TOPIC_PREFIX + value: multipod-service-annotation- + - name: OPENSEARCH_INDEX + value: stacks + - name: KAFKA_ADDRESS + value: kafka:1234 + - name: LEDGER_POSTGRES_HOST + value: localhost + - name: LEDGER_POSTGRES_PORT + value: "5432" + - name: LEDGER_POSTGRES_DATABASE + value: multipod-service-annotation-ledger + - name: LEDGER_POSTGRES_USERNAME + value: root + - name: LEDGER_POSTGRES_PASSWORD + value: root + - name: LEDGER_POSTGRES_NO_DATABASE_URI + value: postgresql://$(LEDGER_POSTGRES_USERNAME):$(LEDGER_POSTGRES_PASSWORD)@$(LEDGER_POSTGRES_HOST):$(LEDGER_POSTGRES_PORT) + - name: LEDGER_POSTGRES_URI + value: $(LEDGER_POSTGRES_NO_DATABASE_URI)/$(LEDGER_POSTGRES_DATABASE)?sslmode=disable + - name: BROKER + value: kafka + image: public.ecr.aws/h9j1u6h3/jeffail/benthos:4.12.1 + imagePullPolicy: IfNotPresent + name: search-benthos + ports: + - containerPort: 4195 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + volumeMounts: + - mountPath: /config/resources + name: resources + readOnly: true + - mountPath: /config/streams + name: streams + readOnly: true + - mountPath: /config/templates + name: templates + readOnly: true + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 + volumes: + - configMap: + defaultMode: 420 + name: search-benthos-resources + name: resources + - configMap: + defaultMode: 420 + name: search-benthos-streams + name: streams + - configMap: + defaultMode: 420 + name: search-benthos-templates + name: templates +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search.yaml new file mode 100644 index 0000000000..089243c3c1 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/search.yaml @@ -0,0 +1,98 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: search + formance.com/monopod: "false" + stack: "true" + name: search + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: search + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: search + spec: + containers: + - env: + - name: BIND + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: search + - name: STACK + value: multipod-service-annotation + - name: OPENSEARCH_URL + value: http://elasticsearch:9200 + - name: OPENSEARCH_BATCHING_COUNT + value: "0" + - name: OPENSEARCH_BATCHING_PERIOD + - name: TOPIC_PREFIX + value: multipod-service-annotation- + - name: OPENSEARCH_INDEX + value: stacks + - name: KAFKA_ADDRESS + value: kafka:1234 + - name: OPEN_SEARCH_SERVICE + value: elasticsearch:9200 + - name: OPEN_SEARCH_SCHEME + value: http + - name: MAPPING_INIT_DISABLED + value: "true" + - name: ES_INDICES + value: stacks + image: ghcr.io/formancehq/search:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: search + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/stargate.yaml new file mode 100644 index 0000000000..add3ff5838 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/stargate.yaml @@ -0,0 +1,89 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: stargate + formance.com/monopod: "false" + stack: "true" + name: stargate + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: stargate + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: stargate + spec: + containers: + - env: + - name: BIND + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: stargate + - name: STACK + value: multipod-service-annotation + - name: ORGANIZATION_ID + value: multipod + - name: STACK_ID + value: service + - name: STARGATE_SERVER_URL + - name: GATEWAY_URL + value: http://gateway:8000 + - name: STARGATE_AUTH_CLIENT_ID + - name: STARGATE_AUTH_CLIENT_SECRET + - name: STARGATE_AUTH_ISSUER_URL + image: ghcr.io/formancehq/stargate:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: stargate + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/wallets.yaml new file mode 100644 index 0000000000..62d360038f --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/wallets.yaml @@ -0,0 +1,85 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: wallets + formance.com/monopod: "false" + stack: "true" + name: wallets + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: wallets + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: wallets + spec: + containers: + - env: + - name: LISTEN + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: wallets + - name: STACK + value: multipod-service-annotation + - name: STORAGE_POSTGRES_CONN_STRING + value: $(POSTGRES_URI) + - name: STACK_CLIENT_ID + value: wallets + - name: STACK_CLIENT_SECRET + value: mocked-secret + image: ghcr.io/formancehq/wallets:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: wallets + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks-worker.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks-worker.yaml new file mode 100644 index 0000000000..960450059d --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks-worker.yaml @@ -0,0 +1,91 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: webhooks + formance.com/monopod: "false" + stack: "true" + name: webhooks-worker + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: webhooks-worker + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: webhooks-worker + spec: + containers: + - args: + - worker + env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-webhooks + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: LISTEN + value: :0 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: webhooks-worker + - name: STACK + value: multipod-service-annotation + - name: BROKER + value: kafka + - name: PUBLISHER_KAFKA_ENABLED + value: "true" + - name: PUBLISHER_KAFKA_BROKER + value: kafka:1234 + - name: STORAGE_POSTGRES_CONN_STRING + value: $(POSTGRES_URI) + - name: KAFKA_TOPICS + value: multipod-service-annotation-ledger multipod-service-annotation-payments + image: ghcr.io/formancehq/webhooks:latest + imagePullPolicy: Always + name: webhooks-worker + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks.yaml new file mode 100644 index 0000000000..49236c1d61 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/deployments-apps-v1/webhooks.yaml @@ -0,0 +1,101 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + app.kubernetes.io/name: webhooks + formance.com/monopod: "false" + stack: "true" + name: webhooks + namespace: multipod-service-annotation +spec: + progressDeadlineSeconds: 600 + replicas: 1 + revisionHistoryLimit: 10 + selector: + matchLabels: + app.kubernetes.io/name: webhooks + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + creationTimestamp: null + labels: + app.kubernetes.io/name: webhooks + spec: + containers: + - env: + - name: POSTGRES_HOST + value: localhost + - name: POSTGRES_PORT + value: "5432" + - name: POSTGRES_DATABASE + value: multipod-service-annotation-webhooks + - name: POSTGRES_USERNAME + value: root + - name: POSTGRES_PASSWORD + value: root + - name: POSTGRES_NO_DATABASE_URI + value: postgresql://$(POSTGRES_USERNAME):$(POSTGRES_PASSWORD)@$(POSTGRES_HOST):$(POSTGRES_PORT) + - name: POSTGRES_URI + value: $(POSTGRES_NO_DATABASE_URI)/$(POSTGRES_DATABASE)?sslmode=disable + - name: LISTEN + value: :8080 + - name: DEBUG + value: "false" + - name: DEV + value: "false" + - name: STACK_URL + value: http://example.net + - name: OTEL_SERVICE_NAME + value: webhooks + - name: STACK + value: multipod-service-annotation + - name: BROKER + value: kafka + - name: PUBLISHER_KAFKA_ENABLED + value: "true" + - name: PUBLISHER_KAFKA_BROKER + value: kafka:1234 + - name: STORAGE_POSTGRES_CONN_STRING + value: $(POSTGRES_URI) + image: ghcr.io/formancehq/webhooks:latest + imagePullPolicy: Always + livenessProbe: + failureThreshold: 20 + httpGet: + path: /_healthcheck + port: 8080 + scheme: HTTP + initialDelaySeconds: 1 + periodSeconds: 2 + successThreshold: 1 + timeoutSeconds: 30 + name: webhooks + ports: + - containerPort: 8080 + name: http + protocol: TCP + resources: + requests: + cpu: 100m + memory: 50Mi + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30 +status: + conditions: + - lastTransitionTime: "2023-08-10T13:52:00Z" + lastUpdateTime: "2023-08-10T13:52:00Z" + status: "True" + type: Available + observedGeneration: 1 diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/ingresses-networking.k8s.io-v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/ingresses-networking.k8s.io-v1/gateway.yaml new file mode 100644 index 0000000000..8ce8fc7033 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/ingresses-networking.k8s.io-v1/gateway.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + generation: 1 + labels: + stack: "true" + name: gateway + namespace: multipod-service-annotation +spec: + rules: + - host: example.net + http: + paths: + - backend: + service: + name: gateway + port: + name: http + path: / + pathType: Prefix +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-post-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-post-upgrade.yaml new file mode 100644 index 0000000000..8097b68845 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-post-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.6.5-post-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: true + targetedVersion: v0.6.5 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-pre-upgrade.yaml new file mode 100644 index 0000000000..3362ffdaaa --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.5-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.6.5-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.6.5 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.7-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.7-pre-upgrade.yaml new file mode 100644 index 0000000000..d536ceb773 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.7-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.6.7-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.6.7 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.8-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.8-pre-upgrade.yaml new file mode 100644 index 0000000000..09b5a71f5f --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.6.8-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.6.8-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.6.8 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-post-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-post-upgrade.yaml new file mode 100644 index 0000000000..32fb4501c9 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-post-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.7.0-post-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: true + targetedVersion: v0.7.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-pre-upgrade.yaml new file mode 100644 index 0000000000..546105b52f --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.7.0-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.7.0-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.7.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-post-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-post-upgrade.yaml new file mode 100644 index 0000000000..bd90ddf733 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-post-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.8.0-post-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: true + targetedVersion: v0.8.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-pre-upgrade.yaml new file mode 100644 index 0000000000..02ab8d0b43 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.0-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.8.0-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.8.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.1-post-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.1-post-upgrade.yaml new file mode 100644 index 0000000000..2b2b3a53f1 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.8.1-post-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.8.1-post-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: true + targetedVersion: v0.8.1 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.0-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.0-pre-upgrade.yaml new file mode 100644 index 0000000000..38be380705 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.0-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.9.0-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.9.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.1-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.1-pre-upgrade.yaml new file mode 100644 index 0000000000..3b9dd68995 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.1-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.9.1-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.9.1 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.4-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.4-pre-upgrade.yaml new file mode 100644 index 0000000000..c2a5e52ece --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/payments-v0.9.4-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: payments-v0.9.4-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: payments + postUpgrade: false + targetedVersion: v0.9.4 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-post-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-post-upgrade.yaml new file mode 100644 index 0000000000..fb7f48ba62 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-post-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: search-v0.7.0-post-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: search + postUpgrade: true + targetedVersion: v0.7.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-pre-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-pre-upgrade.yaml new file mode 100644 index 0000000000..0353e7f600 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/search-v0.7.0-pre-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: search-v0.7.0-pre-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: search + postUpgrade: false + targetedVersion: v0.7.0 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/wallets-v0.4.3-post-upgrade.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/wallets-v0.4.3-post-upgrade.yaml new file mode 100644 index 0000000000..7f36e22847 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/migrations-stack.formance.com-v1beta3/wallets-v0.4.3-post-upgrade.yaml @@ -0,0 +1,18 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Migration +metadata: + annotations: + reloader.stakater.com/auto: "true" + generation: 1 + labels: + stack: "true" + name: wallets-v0.4.3-post-upgrade + namespace: multipod-service-annotation +spec: + configuration: multipod-service-annotation + module: wallets + postUpgrade: true + targetedVersion: v0.4.3 + version: multipod-service-annotation +status: + terminated: true diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/secrets--v1/auth-secret.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/secrets--v1/auth-secret.yaml new file mode 100644 index 0000000000..fa797d9daf --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/secrets--v1/auth-secret.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +data: + signingKey: ZmFrZS1yc2Eta2V5 +kind: Secret +metadata: + labels: + stack: "true" + name: auth-secret + namespace: multipod-service-annotation +type: Opaque diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/auth.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/auth.yaml new file mode 100644 index 0000000000..a9934c2ddf --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/auth.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: auth + name: auth + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.214 + clusterIPs: + - 10.0.0.214 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: auth + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/control.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/control.yaml new file mode 100644 index 0000000000..d22f539048 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/control.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: control + name: control + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.33 + clusterIPs: + - 10.0.0.33 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 3000 + protocol: TCP + targetPort: 3000 + selector: + app.kubernetes.io/name: control + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/gateway.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/gateway.yaml new file mode 100644 index 0000000000..d3324a5218 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/gateway.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: web + labels: + app.kubernetes.io/service-name: gateway + name: gateway + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.19 + clusterIPs: + - 10.0.0.19 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8000 + protocol: TCP + targetPort: 8000 + selector: + app.kubernetes.io/name: gateway + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/ledger.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/ledger.yaml new file mode 100644 index 0000000000..34824e436e --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/ledger.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: ledger + name: ledger + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.248 + clusterIPs: + - 10.0.0.248 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: ledger + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/orchestration.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/orchestration.yaml new file mode 100644 index 0000000000..810ca39fc2 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/orchestration.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: orchestration + name: orchestration + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.148 + clusterIPs: + - 10.0.0.148 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: orchestration + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/payments.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/payments.yaml new file mode 100644 index 0000000000..4a60e3649c --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/payments.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: payments + name: payments + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.250 + clusterIPs: + - 10.0.0.250 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: payments + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search-benthos.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search-benthos.yaml new file mode 100644 index 0000000000..d1f30db53c --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search-benthos.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: search-benthos + name: search-benthos + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.205 + clusterIPs: + - 10.0.0.205 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 4195 + protocol: TCP + targetPort: 4195 + selector: + app.kubernetes.io/name: search-benthos + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search.yaml new file mode 100644 index 0000000000..cbee667228 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/search.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: search + name: search + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.82 + clusterIPs: + - 10.0.0.82 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: search + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/stargate.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/stargate.yaml new file mode 100644 index 0000000000..2014f8b2f6 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/stargate.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: stargate + name: stargate + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.118 + clusterIPs: + - 10.0.0.118 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: stargate + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/wallets.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/wallets.yaml new file mode 100644 index 0000000000..d9c4903fbf --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/wallets.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: wallets + name: wallets + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.34 + clusterIPs: + - 10.0.0.34 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: wallets + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/webhooks.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/webhooks.yaml new file mode 100644 index 0000000000..e1cef22576 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/results/services--v1/webhooks.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app.kubernetes.io/service-name: webhooks + name: webhooks + namespace: multipod-service-annotation +spec: + clusterIP: 10.0.0.103 + clusterIPs: + - 10.0.0.103 + internalTrafficPolicy: Cluster + ipFamilies: + - IPv4 + ipFamilyPolicy: SingleStack + ports: + - appProtocol: http + name: http + port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: webhooks + sessionAffinity: None + type: ClusterIP +status: + loadBalancer: {} diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/stack.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/stack.yaml new file mode 100644 index 0000000000..cc9a37df15 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/stack.yaml @@ -0,0 +1,11 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Stack +metadata: + name: stack1 +spec: + debug: false + dev: false + scheme: http + host: example.net + seed: stacks + versions: default diff --git a/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/versions.yaml b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/versions.yaml new file mode 100644 index 0000000000..73946e68c7 --- /dev/null +++ b/components/operator/internal/controllers/stack/testdata/multipod-service-annotation/versions.yaml @@ -0,0 +1,5 @@ +apiVersion: stack.formance.com/v1beta3 +kind: Versions +metadata: + name: default +spec: {} diff --git a/components/operator/internal/handlers/handler_auth.go b/components/operator/internal/handlers/handler_auth.go index a3d813b87c..2aeda0d384 100644 --- a/components/operator/internal/handlers/handler_auth.go +++ b/components/operator/internal/handlers/handler_auth.go @@ -31,6 +31,7 @@ func init() { Container: resolveAuthContainer, InjectPostgresVariables: true, HasVersionEndpoint: true, + Annotations: ctx.Configuration.Spec.Services.Auth.Annotations.Service, }} }, }, diff --git a/components/operator/internal/handlers/handler_control.go b/components/operator/internal/handlers/handler_control.go index cfe1928107..4e1f07e954 100644 --- a/components/operator/internal/handlers/handler_control.go +++ b/components/operator/internal/handlers/handler_control.go @@ -13,10 +13,11 @@ func init() { "v0.0.0": { Services: func(ctx modules.ModuleContext) modules.Services { return modules.Services{{ - Secured: true, - Port: 3000, - ExposeHTTP: true, - Liveness: modules.LivenessDisable, + Secured: true, + Port: 3000, + ExposeHTTP: true, + Liveness: modules.LivenessDisable, + Annotations: ctx.Configuration.Spec.Services.Control.Annotations.Service, AuthConfiguration: func(resolveContext modules.ModuleContext) stackv1beta3.ClientConfiguration { return stackv1beta3.NewClientConfiguration(). WithAdditionalScopes("profile", "email", "offline"). diff --git a/components/operator/internal/handlers/handler_gateway.go b/components/operator/internal/handlers/handler_gateway.go index f95dd9da4f..0a66752aa2 100644 --- a/components/operator/internal/handlers/handler_gateway.go +++ b/components/operator/internal/handlers/handler_gateway.go @@ -19,10 +19,11 @@ func init() { "v0.0.0": { Services: func(ctx modules.ModuleContext) modules.Services { return modules.Services{{ - Port: gatewayPort, - Path: "/", - ExposeHTTP: true, - Liveness: modules.LivenessDisable, + Port: gatewayPort, + Path: "/", + ExposeHTTP: true, + Liveness: modules.LivenessDisable, + Annotations: ctx.Configuration.Spec.Services.Gateway.Annotations.Service, Configs: func(resolveContext modules.ServiceInstallContext) modules.Configs { return modules.Configs{ "config": modules.Config{ diff --git a/components/operator/internal/handlers/handler_ledger.go b/components/operator/internal/handlers/handler_ledger.go index ba0cbf0913..6ba1975c5e 100644 --- a/components/operator/internal/handlers/handler_ledger.go +++ b/components/operator/internal/handlers/handler_ledger.go @@ -20,6 +20,7 @@ func init() { HasVersionEndpoint: true, ExposeHTTP: true, NeedTopic: true, + Annotations: ctx.Configuration.Spec.Services.Ledger.Annotations.Service, Container: func(resolveContext modules.ContainerResolutionContext) modules.Container { env := modules.NewEnv().Append( modules.Env("STORAGE_DRIVER", "postgres"), diff --git a/components/operator/internal/handlers/handler_orchestration.go b/components/operator/internal/handlers/handler_orchestration.go index 56f6085bb0..378bf2b026 100644 --- a/components/operator/internal/handlers/handler_orchestration.go +++ b/components/operator/internal/handlers/handler_orchestration.go @@ -34,6 +34,7 @@ func init() { ExposeHTTP: true, HasVersionEndpoint: true, InjectPostgresVariables: true, + Annotations: ctx.Configuration.Spec.Services.Orchestration.Annotations.Service, Container: func(resolveContext modules.ContainerResolutionContext) modules.Container { return modules.Container{ Env: orchestrationEnvVars(resolveContext), diff --git a/components/operator/internal/handlers/handler_payments.go b/components/operator/internal/handlers/handler_payments.go index 7f50cb7d1f..365aa0ec4d 100644 --- a/components/operator/internal/handlers/handler_payments.go +++ b/components/operator/internal/handlers/handler_payments.go @@ -40,6 +40,7 @@ func init() { ExposeHTTP: true, NeedTopic: true, Liveness: modules.LivenessLegacy, + Annotations: ctx.Configuration.Spec.Services.Payments.Annotations.Service, Container: func(resolveContext modules.ContainerResolutionContext) modules.Container { return modules.Container{ Env: env(resolveContext), diff --git a/components/operator/internal/handlers/handler_search.go b/components/operator/internal/handlers/handler_search.go index 23c4dea42f..e8ebf6a75f 100644 --- a/components/operator/internal/handlers/handler_search.go +++ b/components/operator/internal/handlers/handler_search.go @@ -121,6 +121,7 @@ func searchService(ctx modules.ModuleContext) *modules.Service { ListenEnvVar: "BIND", ExposeHTTP: true, HasVersionEndpoint: true, + Annotations: ctx.Configuration.Spec.Services.Search.Annotations.Service, Container: func(resolveContext modules.ContainerResolutionContext) modules.Container { env := elasticSearchEnvVars(resolveContext.Stack, resolveContext.Configuration, resolveContext.Versions). Append( @@ -153,10 +154,11 @@ func searchService(ctx modules.ModuleContext) *modules.Service { func benthosService(ctx modules.ModuleContext) *modules.Service { ret := &modules.Service{ - Name: "benthos", - Port: 4195, - ExposeHTTP: true, - Liveness: modules.LivenessDisable, + Name: "benthos", + Port: 4195, + ExposeHTTP: true, + Liveness: modules.LivenessDisable, + Annotations: ctx.Configuration.Spec.Services.Search.Annotations.Service, Configs: func(resolveContext modules.ServiceInstallContext) modules.Configs { ret := modules.Configs{} diff --git a/components/operator/internal/handlers/handler_stargate.go b/components/operator/internal/handlers/handler_stargate.go index 97b645c49e..90a9490c6c 100644 --- a/components/operator/internal/handlers/handler_stargate.go +++ b/components/operator/internal/handlers/handler_stargate.go @@ -39,6 +39,7 @@ func init() { HasVersionEndpoint: true, ExposeHTTP: true, Liveness: modules.LivenessDefault, + Annotations: ctx.Configuration.Spec.Services.Stargate.Annotations.Service, AuthConfiguration: func(resolveContext modules.ModuleContext) stackv1beta3.ClientConfiguration { return stackv1beta3.NewClientConfiguration() }, diff --git a/components/operator/internal/handlers/handler_wallets.go b/components/operator/internal/handlers/handler_wallets.go index d64b88fec6..9c97b4a2b8 100644 --- a/components/operator/internal/handlers/handler_wallets.go +++ b/components/operator/internal/handlers/handler_wallets.go @@ -20,6 +20,7 @@ func init() { HasVersionEndpoint: true, ExposeHTTP: true, ListenEnvVar: "LISTEN", + Annotations: ctx.Configuration.Spec.Services.Wallets.Annotations.Service, AuthConfiguration: func(resolveContext modules.ModuleContext) stackv1beta3.ClientConfiguration { return stackv1beta3.NewClientConfiguration() }, diff --git a/components/operator/internal/handlers/handler_webhooks.go b/components/operator/internal/handlers/handler_webhooks.go index 2d836b04ef..3d27a9b038 100644 --- a/components/operator/internal/handlers/handler_webhooks.go +++ b/components/operator/internal/handlers/handler_webhooks.go @@ -21,6 +21,7 @@ func init() { ExposeHTTP: true, InjectPostgresVariables: true, ListenEnvVar: "LISTEN", + Annotations: ctx.Configuration.Spec.Services.Webhooks.Annotations.Service, Container: func(resolveContext modules.ContainerResolutionContext) modules.Container { return modules.Container{ Image: modules.GetImage("webhooks", resolveContext.Versions.Spec.Webhooks), @@ -34,6 +35,7 @@ func init() { InjectPostgresVariables: true, ListenEnvVar: "LISTEN", Liveness: modules.LivenessDisable, + Annotations: ctx.Configuration.Spec.Services.Webhooks.Annotations.Service, Container: func(resolveContext modules.ContainerResolutionContext) modules.Container { return modules.Container{ Image: modules.GetImage("webhooks", resolveContext.Versions.Spec.Webhooks), diff --git a/components/operator/internal/modules/service.go b/components/operator/internal/modules/service.go index 68eda24c67..09102e5f79 100644 --- a/components/operator/internal/modules/service.go +++ b/components/operator/internal/modules/service.go @@ -293,7 +293,9 @@ type Service struct { // All services should have the --listen flag to allow the operator to specify the port Port int32 // Path indicates the path used to expose the service using an ingress - Path string + Path string + // Annotations indicates the annotations apply to the Service + Annotations map[string]string InjectPostgresVariables bool HasVersionEndpoint bool Liveness Liveness @@ -361,6 +363,14 @@ func (service *Service) Prepare(ctx ModuleContext, serviceName string) { func (service Service) installService(ctx ServiceInstallContext, deployer Deployer, serviceName string) error { return controllerutils.JustError(deployer.Services().CreateOrUpdate(ctx, serviceName, func(t *corev1.Service) { + annotations := service.Annotations + if annotations == nil { + annotations = map[string]string{} + } else { + annotations = collectionutils.CopyMap(annotations) + } + t.ObjectMeta.Annotations = annotations + selector := serviceName if ctx.Configuration.Spec.LightMode { selector = ctx.Stack.Name