Skip to content

Commit

Permalink
Add extra cloud18 fiels for certications , external dbops and externa…
Browse files Browse the repository at this point in the history
…l sysops
  • Loading branch information
svaroqui committed Dec 20, 2024
1 parent 045543a commit 1576752
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cluster/cluster_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,18 @@ func (cluster *Cluster) SetCloud18InfraCPUModel(value string) {
cluster.Conf.Cloud18InfraCPUModel = value
}

func (cluster *Cluster) SetCloud18ExternalSysOps(value string) {
cluster.Conf.Cloud18ExternalSysOps = value
}

func (cluster *Cluster) SetCloud18ExternalDbOps(value string) {
cluster.Conf.Cloud18ExternalDbOps = value
}

func (cluster *Cluster) SetCloud18InfraCertifications(value string) {
cluster.Conf.Cloud18InfraCertifications = value
}

func (cluster *Cluster) SetCloud18InfraCPUFreq(value string) {
cluster.Conf.Cloud18InfraCPUFreq = value
}
Expand Down Expand Up @@ -1299,6 +1311,9 @@ func (cluster *Cluster) SetServicePlanInfos(theplan string) error {
cluster.SetCloud18CostCurrency(plan.Devise)
cluster.SetCloud18InfraCPUFreq(plan.CPUFreq)
cluster.SetCloud18InfraCPUModel(plan.CPU)
cluster.SetCloud18InfraCertifications(plan.Certs)
cluster.SetCloud18ExternalDbOps(plan.ExtDbOps)
cluster.SetCloud18ExternalSysOps(plan.ExtSysOps)
cluster.SetCloud18InfraDescription(plan.Infra)
cluster.SetCloud18InfraDataCenters(plan.DC)
cluster.SetCloud18InfraPublicBandwidth(plan.BP)
Expand Down
10 changes: 10 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,10 @@ type Config struct {
Cloud18InfraDataCenters string `mapstructure:"cloud18-infra-data-centers" toml:"cloud18-infra-data-centers" json:"cloud18InfraDataCenters"`
Cloud18InfraPublicBandwidth float64 `mapstructure:"cloud18-infra-public-bandwidth" toml:"cloud18-infra-public-bandwidth" json:"cloud18InfraPublicBandwidth"`
Cloud18InfraGeoLocalizations string `mapstructure:"cloud18-infra-geo-localizations" toml:"cloud18-infra-geo-localizations" json:"cloud18InfraGeoLocalizations"`
Cloud18DbOps string `mapstructure:"cloud18-dbops" toml:"cloud18-dbops" json:"cloud18DbOps"`
Cloud18ExternalDbOps string `mapstructure:"cloud18-external-dbops" toml:"cloud18-external-dbops" json:"cloud18ExternalDbOps"`
Cloud18ExternalSysOps string `mapstructure:"cloud18-external-sysops" toml:"cloud18-external-sysops" json:"cloud18ExternalSysOps"`
Cloud18InfraCertifications string `mapstructure:"cloud18-infra-certifications" toml:"cloud18-infra-certifications" json:"cloud18InfraCertifications"`
Cloud18OpenDbops bool `mapstructure:"cloud18-open-dbops" toml:"cloud18-open-dbops" json:"cloud18OpenDbops"`
Cloud18SubscribedDbops bool `mapstructure:"cloud18-subscribed-dbops" toml:"cloud18-subscribed-dbops" json:"cloud18SubscribedDbops"`
Cloud18OpenSysops bool `mapstructure:"cloud18-open-sysops" toml:"cloud18-open-sysops" json:"cloud18OpenSysops"`
Expand Down Expand Up @@ -785,6 +789,9 @@ type PeerCluster struct {
Cloud18SlaRepairTime float64 `json:"cloud18-sla-repair-time,string"`
Cloud18SlaProvisionTime float64 `json:"cloud18-sla-provision-time,string"`
Cloud18PromotionPct float64 `json:"cloud18-promotion-pct,string"`
Cloud18ExtDbOps string `json:"cloud18-external-dbops"`
Cloud18ExtSysOps string `json"cloud18-external-sysops"`
Cloud18InfraCertifications string `json:"cloud18-infra-certifications"`
}

// Compliance created in OpenSVC collector and exported as JSON
Expand Down Expand Up @@ -900,6 +907,9 @@ type ServicePlan struct {
ProvisionTime float64 `json:"provtime,string"`
PromotionPct float64 `json:"promo,string"`
BP float64 `json:"bp,string"`
Certs string `json:"certs"`
ExtDbOps string `json:"extdbops"`
ExtSysOps string `json:"extsysops"`
}

type DockerTag struct {
Expand Down
4 changes: 4 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,10 @@ func (repman *ReplicationManager) AddFlags(flags *pflag.FlagSet, conf *config.Co
flags.StringVar(&conf.Cloud18DatabaseReadWriteSrvRecord, "cloud18-database-read-write-srv-record", "", "Database read write SRV record host:port")
flags.StringVar(&conf.Cloud18DbaUserCredentials, "cloud18-dba-user-credentials", "", "Database credential")
flags.StringVar(&conf.Cloud18CostCurrency, "cloud18-cost-currency", "", "Cost currency")
flags.StringVar(&conf.Cloud18DbOps, "cloud18-dbops", "", "Email for infrastucure dba")
flags.StringVar(&conf.Cloud18ExternalDbOps, "cloud18-external-dbops", "", "Email for external partner dba")
flags.StringVar(&conf.Cloud18ExternalSysOps, "cloud18-external-dbops", "", "Email for external partner sysadmin")
flags.StringVar(&conf.Cloud18InfraCertifications, "cloud18-infra-certifications", "", "The type of auditing certificats made on the infrastructure")
if WithProvisioning == "ON" {
flags.StringVar(&conf.ProvDatadirVersion, "prov-db-datadir-version", "10.2", "Empty datadir to deploy for localtest")
flags.StringVar(&conf.ProvDiskSystemSize, "prov-db-disk-system-size", "2", "Disk in g for micro service VM")
Expand Down

0 comments on commit 1576752

Please sign in to comment.