v1.0.8
This commit is contained in:
1 parent
c885f22775
commit
3e25635f9b
5 files changed
+7
-34
No files matched your search
@@ -125,8 +125,6 @@ type InstallRequest struct {
|
||||
// Required.
|
||||
ReleaseNamespace string `json:"releaseNamespace" form:"releaseNamespace"`
|
||||
// Hostname for custom app
|
||||
//
|
||||
// Required.
|
||||
Hostname string `json:"hostname" form:"hostname"`
|
||||
// Install timeout in minutes. Max is 60 minutes, min is 5 minutes. If not specified, default timeout of 10 minutes will be used
|
||||
InstallTimeout int64 `json:"installTimeout" form:"installTimeout"`
|
||||
@@ -159,9 +157,6 @@ func (a *DeCustomAppService) Install(ctx context.Context, req InstallRequest) (C
|
||||
if utils.IsRequiredParamMissing(req.ReleaseNamespace) {
|
||||
missingRequiredParams = append(missingRequiredParams, "releaseNamespace")
|
||||
}
|
||||
if utils.IsRequiredParamMissing(req.Hostname) {
|
||||
missingRequiredParams = append(missingRequiredParams, "hostname")
|
||||
}
|
||||
if len(missingRequiredParams) > 0 {
|
||||
return result, utils.MissingRequiredParamsError(missingRequiredParams)
|
||||
}
|
||||
|
||||
@@ -112,8 +112,6 @@ type InstallRequest struct {
|
||||
//
|
||||
// Required.
|
||||
ClusterID int64 `json:"clusterId" form:"clusterId"`
|
||||
// hostname for integagent
|
||||
IntegagentHostname string `json:"integagentHostname" form:"integagentHostname"`
|
||||
// images apps repository ID. If the ID is zero or the value is empty, the default images apps repository will be used.
|
||||
AppsRepositoryID int64 `json:"appsRepositoryId" form:"appsRepositoryId"`
|
||||
// charts repository ID. If the ID is zero or the value is empty, the default charts repository will be used.
|
||||
@@ -160,7 +158,6 @@ func (a *DeFalcoService) Install(ctx context.Context, req InstallRequest) (Creat
|
||||
}
|
||||
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "clusterId", req.ClusterID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "integagentHostname", req.IntegagentHostname, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "downloadChartAnyway", req.DownloadChartAnyway, "", "")
|
||||
|
||||
@@ -116,8 +116,6 @@ type InstallRequest struct {
|
||||
//
|
||||
// Required.
|
||||
Hostname string `json:"hostname" form:"hostname"`
|
||||
// Hostname for integagent
|
||||
IntegagentHostname string `json:"integagentHostname" form:"integagentHostname"`
|
||||
// images apps repository ID. If the ID is zero or the value is empty, the default images apps repository will be used.
|
||||
AppsRepositoryID int64 `json:"appsRepositoryId" form:"appsRepositoryId"`
|
||||
// charts repository ID. If the ID is zero or the value is empty, the default charts repository will be used.
|
||||
@@ -170,7 +168,6 @@ func (a *DeIstioService) Install(ctx context.Context, req InstallRequest) (Creat
|
||||
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "clusterId", req.ClusterID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "hostname", req.Hostname, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "integagentHostname", req.IntegagentHostname, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "workerGroupName", req.WorkerGroupName, "", "")
|
||||
|
||||
@@ -112,8 +112,6 @@ type InstallRequest struct {
|
||||
//
|
||||
// Required.
|
||||
ClusterID int64 `json:"clusterId" form:"clusterId"`
|
||||
// Hostname for integagent
|
||||
IntegagentHostname string `json:"integagentHostname" form:"integagentHostname"`
|
||||
// images apps repository ID. If the ID is zero or the value is empty, the default images apps repository will be used.
|
||||
AppsRepositoryID int64 `json:"appsRepositoryId" form:"appsRepositoryId"`
|
||||
// charts repository ID. If the ID is zero or the value is empty, the default charts repository will be used.
|
||||
@@ -162,7 +160,6 @@ func (a *DeOpenELBService) Install(ctx context.Context, req InstallRequest) (Cre
|
||||
}
|
||||
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "clusterId", req.ClusterID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "integagentHostname", req.IntegagentHostname, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "appsRepositoryId", req.AppsRepositoryID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "chartsRepositoryId", req.ChartsRepositoryID, "", "")
|
||||
utils.ParameterAddToHeaderOrQuery(formParams, "workerGroupName", req.WorkerGroupName, "", "")
|
||||
|
||||
Reference in new issue
Block a user