mirror of
https://github.com/SigNoz/signoz.git
synced 2026-09-26 21:30:41 +01:00
<!--A few plain bullets saying what changed and why, for a reviewer skimming it - not a wall of text, not a restatement of the diff, not generated boilerplate.--> #### Description Bumping cloud integration agent version from v0.0.13 to v0.0.14 #### Contributes to https://github.com/SigNoz/platform-pod/issues/3038
33 lines
698 B
Go
33 lines
698 B
Go
package cloudintegration
|
|
|
|
import (
|
|
"github.com/SigNoz/signoz/pkg/factory"
|
|
)
|
|
|
|
type Config struct {
|
|
// Agent config for cloud integration
|
|
Agent AgentConfig `mapstructure:"agent"`
|
|
}
|
|
|
|
type AgentConfig struct {
|
|
Version string `mapstructure:"version"`
|
|
}
|
|
|
|
func NewConfigFactory() factory.ConfigFactory {
|
|
return factory.NewConfigFactory(factory.MustNewName("cloudintegration"), newConfig)
|
|
}
|
|
|
|
func newConfig() factory.Config {
|
|
return &Config{
|
|
Agent: AgentConfig{
|
|
// we will maintain the latest version of cloud integration agent from here,
|
|
// till we automate it externally or figure out a way to validate it.
|
|
Version: "v0.0.14",
|
|
},
|
|
}
|
|
}
|
|
|
|
func (c Config) Validate() error {
|
|
return nil
|
|
}
|