mirror of
https://github.com/SigNoz/signoz.git
synced 2026-10-07 10:40:42 +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 the cloud integration agent's version to latest v0.0.15 <!--Reference issues using `Closes #issue-number` to enable automatic closure on merge. --> #### Issues closed by this PR Contributes to https://github.com/SigNoz/keystone-pod/issues/101
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.15",
|
|
},
|
|
}
|
|
}
|
|
|
|
func (c Config) Validate() error {
|
|
return nil
|
|
}
|