Skip to content

Commit

Permalink
api: add Env to specs
Browse files Browse the repository at this point in the history
  • Loading branch information
apetruhin committed Oct 3, 2024
1 parent 56ddec8 commit eeb30ff
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 47 deletions.
20 changes: 9 additions & 11 deletions api/v1/coroot_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ type NodeAgentSpec struct {
UpdateStrategy appsv1.DaemonSetUpdateStrategy `json:"update_strategy,omitempty"`
Affinity *corev1.Affinity `json:"affinity,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Env []corev1.EnvVar `json:"env,omitempty"`
}

type ClusterAgentSpec struct {
Version string `json:"version,omitempty"`

Affinity *corev1.Affinity `json:"affinity,omitempty"`
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
Env []corev1.EnvVar `json:"env,omitempty"`
}

type PrometheusSpec struct {
Expand Down Expand Up @@ -84,20 +86,16 @@ type ExternalClickhouseSpec struct {
}

type CorootSpec struct {
ApiKey string `json:"apiKey,omitempty"`
MetricRefreshInterval metav1.Duration `json:"metricRefreshInterval,omitempty"`

CommunityEdition CommunityEditionSpec `json:"communityEdition,omitempty"`
EnterpriseEdition *EnterpriseEditionSpec `json:"enterpriseEdition,omitempty"`

AgentsOnly *AgentsOnlySpec `json:"agentsOnly,omitempty"`

UrlBasePath string `json:"urlBasePath,omitempty"`
PgConnectionString string `json:"pgConnectionString,omitempty"`
ApiKey string `json:"apiKey,omitempty"`
MetricsRefreshInterval metav1.Duration `json:"metricsRefreshInterval,omitempty"`
CacheTTL metav1.Duration `json:"cacheTTL,omitempty"`
DisableUsageStatistics bool `json:"disableUsageStatistics,omitempty"`
AuthAnonymousRole string `json:"authAnonymousRole,omitempty"`
AuthBootstrapAdminPassword string `json:"authBootstrapAdminPassword,omitempty"`
Env []corev1.EnvVar `json:"env,omitempty"`

CommunityEdition CommunityEditionSpec `json:"communityEdition,omitempty"`
EnterpriseEdition *EnterpriseEditionSpec `json:"enterpriseEdition,omitempty"`
AgentsOnly *AgentsOnlySpec `json:"agentsOnly,omitempty"`

Service ServiceSpec `json:"service,omitempty"`

Expand Down
25 changes: 23 additions & 2 deletions api/v1/zz_generated.deepcopy.go

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

Loading

0 comments on commit eeb30ff

Please sign in to comment.