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: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -167,7 +167,7 @@ func abapEnvironmentCreateSystemMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -131,7 +131,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -151,7 +151,7 @@ func cloudFoundryCreateServiceKeyMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -147,7 +147,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -167,7 +167,7 @@ func cloudFoundryCreateServiceMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -128,7 +128,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -148,7 +148,7 @@ func cloudFoundryDeleteServiceMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -407,7 +407,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -451,7 +451,7 @@ func cloudFoundryDeployMetadata() config.StepData {
|
|||||||
|
|
||||||
{
|
{
|
||||||
Name: "",
|
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",
|
Type: "vaultSecret",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -40,9 +40,9 @@ spec:
|
|||||||
param: username
|
param: username
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: password
|
- name: password
|
||||||
type: string
|
type: string
|
||||||
description: Password for Cloud Foundry User
|
description: Password for Cloud Foundry User
|
||||||
@ -58,9 +58,9 @@ spec:
|
|||||||
param: password
|
param: password
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: cfOrg
|
- name: cfOrg
|
||||||
type: string
|
type: string
|
||||||
description: Cloud Foundry org
|
description: Cloud Foundry org
|
||||||
|
@ -48,9 +48,9 @@ spec:
|
|||||||
param: username
|
param: username
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: password
|
- name: password
|
||||||
type: string
|
type: string
|
||||||
description: Password for Cloud Foundry User
|
description: Password for Cloud Foundry User
|
||||||
@ -66,9 +66,9 @@ spec:
|
|||||||
param: password
|
param: password
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: cfOrg
|
- name: cfOrg
|
||||||
type: string
|
type: string
|
||||||
description: Cloud Foundry org
|
description: Cloud Foundry org
|
||||||
|
@ -36,9 +36,9 @@ spec:
|
|||||||
param: username
|
param: username
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: password
|
- name: password
|
||||||
type: string
|
type: string
|
||||||
description: User Password for CF User
|
description: User Password for CF User
|
||||||
@ -54,9 +54,9 @@ spec:
|
|||||||
param: password
|
param: password
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: cfOrg
|
- name: cfOrg
|
||||||
type: string
|
type: string
|
||||||
description: CF org
|
description: CF org
|
||||||
|
@ -36,9 +36,9 @@ spec:
|
|||||||
param: username
|
param: username
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: password
|
- name: password
|
||||||
type: string
|
type: string
|
||||||
description: User Password for CF User
|
description: User Password for CF User
|
||||||
@ -54,9 +54,9 @@ spec:
|
|||||||
param: password
|
param: password
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: cfOrg
|
- name: cfOrg
|
||||||
type: string
|
type: string
|
||||||
description: CF org
|
description: CF org
|
||||||
|
@ -302,9 +302,9 @@ spec:
|
|||||||
param: password
|
param: password
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
- name: smokeTestScript
|
- name: smokeTestScript
|
||||||
type: string
|
type: string
|
||||||
description:
|
description:
|
||||||
@ -357,9 +357,9 @@ spec:
|
|||||||
param: username
|
param: username
|
||||||
- type: vaultSecret
|
- type: vaultSecret
|
||||||
paths:
|
paths:
|
||||||
- $(vaultPath)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultPath)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/$(vaultPipelineName)/cloudfoundry-$(org)-$(space)
|
||||||
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(cfOrg)-$(cfSpace)
|
- $(vaultBasePath)/GROUP-SECRETS/cloudfoundry-$(org)-$(space)
|
||||||
containers:
|
containers:
|
||||||
- name: cfDeploy
|
- name: cfDeploy
|
||||||
image: ppiper/cf-cli
|
image: ppiper/cf-cli
|
||||||
|
Loading…
Reference in New Issue
Block a user