Skip to content

Commit

Permalink
feat: Add annotations for every services (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord authored Aug 11, 2023
1 parent 032d8cc commit 87cb9d6
Show file tree
Hide file tree
Showing 213 changed files with 3,235 additions and 327 deletions.
2 changes: 0 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
3 changes: 3 additions & 0 deletions components/operator/apis/stack/v1beta3/auth_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ type AuthSpec struct {
Postgres PostgresConfig `json:"postgres"`
// +optional
StaticClients []StaticClient `json:"staticClients,omitempty"`

// +optional
Annotations AnnotationsServicesSpec `json:"service"`
}
6 changes: 6 additions & 0 deletions components/operator/apis/stack/v1beta3/configuration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type ConfigurationServicesSpec struct {
Auth AuthSpec `json:"auth,omitempty"`

// +optional
Gateway GatewaySpec `json:"gateway,omitempty"`
Stargate StargateSpec `json:"stargate,omitempty"`
}

Expand Down Expand Up @@ -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"`
Expand Down
5 changes: 4 additions & 1 deletion components/operator/apis/stack/v1beta3/control_types.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package v1beta3

// +kubebuilder:object:generate=true
type ControlSpec struct{}
type ControlSpec struct {
// +optional
Annotations AnnotationsServicesSpec `json:"service"`
}
7 changes: 7 additions & 0 deletions components/operator/apis/stack/v1beta3/gateway_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package v1beta3

// +kubebuilder:object:generate=true
type GatewaySpec struct {
// +optional
Annotations AnnotationsServicesSpec `json:"annotations,omitempty"`
}
7 changes: 7 additions & 0 deletions components/operator/apis/stack/v1beta3/ledger_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
5 changes: 3 additions & 2 deletions components/operator/apis/stack/v1beta3/orchestration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
3 changes: 3 additions & 0 deletions components/operator/apis/stack/v1beta3/payments_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ package v1beta3
type PaymentsSpec struct {
EncryptionKey string `json:"encryptionKey"`
Postgres PostgresConfig `json:"postgres"`

// +optional
Annotations AnnotationsServicesSpec `json:"service"`
}
3 changes: 3 additions & 0 deletions components/operator/apis/stack/v1beta3/search_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ type SearchSpec struct {

// +optional
Batching Batching `json:"batching"`

// +optional
Annotations AnnotationsServicesSpec `json:"service"`
}

const DefaultESIndex = "stacks"
3 changes: 2 additions & 1 deletion components/operator/apis/stack/v1beta3/stargate_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package v1beta3

type StargateSpec struct {
DevProperties `json:",inline"`
// +optional
Annotations AnnotationsServicesSpec `json:"service"`
}
3 changes: 2 additions & 1 deletion components/operator/apis/stack/v1beta3/wallets_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ package v1beta3

// +kubebuilder:object:generate=true
type WalletsSpec struct {
DevProperties `json:",inline"`
// +optional
Annotations AnnotationsServicesSpec `json:"service"`
}
5 changes: 3 additions & 2 deletions components/operator/apis/stack/v1beta3/webhooks_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
88 changes: 77 additions & 11 deletions components/operator/apis/stack/v1beta3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

1 comment on commit 87cb9d6

@vercel
Copy link

@vercel vercel bot commented on 87cb9d6 Aug 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.