Skip to content

Commit 1576752

Browse files
committed
Add extra cloud18 fiels for certications , external dbops and external sysops
1 parent 045543a commit 1576752

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

cluster/cluster_set.go

+15
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,18 @@ func (cluster *Cluster) SetCloud18InfraCPUModel(value string) {
462462
cluster.Conf.Cloud18InfraCPUModel = value
463463
}
464464

465+
func (cluster *Cluster) SetCloud18ExternalSysOps(value string) {
466+
cluster.Conf.Cloud18ExternalSysOps = value
467+
}
468+
469+
func (cluster *Cluster) SetCloud18ExternalDbOps(value string) {
470+
cluster.Conf.Cloud18ExternalDbOps = value
471+
}
472+
473+
func (cluster *Cluster) SetCloud18InfraCertifications(value string) {
474+
cluster.Conf.Cloud18InfraCertifications = value
475+
}
476+
465477
func (cluster *Cluster) SetCloud18InfraCPUFreq(value string) {
466478
cluster.Conf.Cloud18InfraCPUFreq = value
467479
}
@@ -1299,6 +1311,9 @@ func (cluster *Cluster) SetServicePlanInfos(theplan string) error {
12991311
cluster.SetCloud18CostCurrency(plan.Devise)
13001312
cluster.SetCloud18InfraCPUFreq(plan.CPUFreq)
13011313
cluster.SetCloud18InfraCPUModel(plan.CPU)
1314+
cluster.SetCloud18InfraCertifications(plan.Certs)
1315+
cluster.SetCloud18ExternalDbOps(plan.ExtDbOps)
1316+
cluster.SetCloud18ExternalSysOps(plan.ExtSysOps)
13021317
cluster.SetCloud18InfraDescription(plan.Infra)
13031318
cluster.SetCloud18InfraDataCenters(plan.DC)
13041319
cluster.SetCloud18InfraPublicBandwidth(plan.BP)

config/config.go

+10
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,10 @@ type Config struct {
700700
Cloud18InfraDataCenters string `mapstructure:"cloud18-infra-data-centers" toml:"cloud18-infra-data-centers" json:"cloud18InfraDataCenters"`
701701
Cloud18InfraPublicBandwidth float64 `mapstructure:"cloud18-infra-public-bandwidth" toml:"cloud18-infra-public-bandwidth" json:"cloud18InfraPublicBandwidth"`
702702
Cloud18InfraGeoLocalizations string `mapstructure:"cloud18-infra-geo-localizations" toml:"cloud18-infra-geo-localizations" json:"cloud18InfraGeoLocalizations"`
703+
Cloud18DbOps string `mapstructure:"cloud18-dbops" toml:"cloud18-dbops" json:"cloud18DbOps"`
704+
Cloud18ExternalDbOps string `mapstructure:"cloud18-external-dbops" toml:"cloud18-external-dbops" json:"cloud18ExternalDbOps"`
705+
Cloud18ExternalSysOps string `mapstructure:"cloud18-external-sysops" toml:"cloud18-external-sysops" json:"cloud18ExternalSysOps"`
706+
Cloud18InfraCertifications string `mapstructure:"cloud18-infra-certifications" toml:"cloud18-infra-certifications" json:"cloud18InfraCertifications"`
703707
Cloud18OpenDbops bool `mapstructure:"cloud18-open-dbops" toml:"cloud18-open-dbops" json:"cloud18OpenDbops"`
704708
Cloud18SubscribedDbops bool `mapstructure:"cloud18-subscribed-dbops" toml:"cloud18-subscribed-dbops" json:"cloud18SubscribedDbops"`
705709
Cloud18OpenSysops bool `mapstructure:"cloud18-open-sysops" toml:"cloud18-open-sysops" json:"cloud18OpenSysops"`
@@ -785,6 +789,9 @@ type PeerCluster struct {
785789
Cloud18SlaRepairTime float64 `json:"cloud18-sla-repair-time,string"`
786790
Cloud18SlaProvisionTime float64 `json:"cloud18-sla-provision-time,string"`
787791
Cloud18PromotionPct float64 `json:"cloud18-promotion-pct,string"`
792+
Cloud18ExtDbOps string `json:"cloud18-external-dbops"`
793+
Cloud18ExtSysOps string `json"cloud18-external-sysops"`
794+
Cloud18InfraCertifications string `json:"cloud18-infra-certifications"`
788795
}
789796

790797
// Compliance created in OpenSVC collector and exported as JSON
@@ -900,6 +907,9 @@ type ServicePlan struct {
900907
ProvisionTime float64 `json:"provtime,string"`
901908
PromotionPct float64 `json:"promo,string"`
902909
BP float64 `json:"bp,string"`
910+
Certs string `json:"certs"`
911+
ExtDbOps string `json:"extdbops"`
912+
ExtSysOps string `json:"extsysops"`
903913
}
904914

905915
type DockerTag struct {

server/server.go

+4
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,10 @@ func (repman *ReplicationManager) AddFlags(flags *pflag.FlagSet, conf *config.Co
866866
flags.StringVar(&conf.Cloud18DatabaseReadWriteSrvRecord, "cloud18-database-read-write-srv-record", "", "Database read write SRV record host:port")
867867
flags.StringVar(&conf.Cloud18DbaUserCredentials, "cloud18-dba-user-credentials", "", "Database credential")
868868
flags.StringVar(&conf.Cloud18CostCurrency, "cloud18-cost-currency", "", "Cost currency")
869+
flags.StringVar(&conf.Cloud18DbOps, "cloud18-dbops", "", "Email for infrastucure dba")
870+
flags.StringVar(&conf.Cloud18ExternalDbOps, "cloud18-external-dbops", "", "Email for external partner dba")
871+
flags.StringVar(&conf.Cloud18ExternalSysOps, "cloud18-external-dbops", "", "Email for external partner sysadmin")
872+
flags.StringVar(&conf.Cloud18InfraCertifications, "cloud18-infra-certifications", "", "The type of auditing certificats made on the infrastructure")
869873
if WithProvisioning == "ON" {
870874
flags.StringVar(&conf.ProvDatadirVersion, "prov-db-datadir-version", "10.2", "Empty datadir to deploy for localtest")
871875
flags.StringVar(&conf.ProvDiskSystemSize, "prov-db-disk-system-size", "2", "Disk in g for micro service VM")

0 commit comments

Comments
 (0)