mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
fix(cloudfoundry): fetch credentials from vault (#2444)
This commit is contained in:
parent
e1d140e513
commit
7d275b3ec3
@ -147,7 +147,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
@ -167,7 +167,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
|
@ -131,7 +131,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
@ -151,7 +151,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
|
@ -147,7 +147,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
@ -167,7 +167,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
|
@ -128,7 +128,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
@ -148,7 +148,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
|
@ -407,7 +407,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
@ -451,7 +451,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
||||
|
||||
{
|
||||
Name: "",
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)"},
|
||||
Paths: []string{"$(vaultPath)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)", "$(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)"},
|
||||
Type: "vaultSecret",
|
||||
},
|
||||
},
|
||||
|
@ -40,9 +40,9 @@ spec:
|
||||
param: username
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: password
|
||||
type: string
|
||||
description: Password for Cloud Foundry User
|
||||
@ -58,9 +58,9 @@ spec:
|
||||
param: password
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: cfOrg
|
||||
type: string
|
||||
description: Cloud Foundry org
|
||||
|
@ -48,9 +48,9 @@ spec:
|
||||
param: username
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: password
|
||||
type: string
|
||||
description: Password for Cloud Foundry User
|
||||
@ -66,9 +66,9 @@ spec:
|
||||
param: password
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: cfOrg
|
||||
type: string
|
||||
description: Cloud Foundry org
|
||||
|
@ -36,9 +36,9 @@ spec:
|
||||
param: username
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: password
|
||||
type: string
|
||||
description: User Password for CF User
|
||||
@ -54,9 +54,9 @@ spec:
|
||||
param: password
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: cfOrg
|
||||
type: string
|
||||
description: CF org
|
||||
|
@ -36,9 +36,9 @@ spec:
|
||||
param: username
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: password
|
||||
type: string
|
||||
description: User Password for CF User
|
||||
@ -54,9 +54,9 @@ spec:
|
||||
param: password
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: cfOrg
|
||||
type: string
|
||||
description: CF org
|
||||
|
@ -302,9 +302,9 @@ spec:
|
||||
param: password
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
- name: smokeTestScript
|
||||
type: string
|
||||
description:
|
||||
@ -357,9 +357,9 @@ spec:
|
||||
param: username
|
||||
- type: vaultSecret
|
||||
paths:
|
||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
||||
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||
containers:
|
||||
- name: cfDeploy
|
||||
image: ppiper/cf-cli
|
||||
|
Loading…
Reference in New Issue
Block a user