Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Deployment and Operations
infra-azure-provisioning
Commits
365f0f12
Commit
365f0f12
authored
Oct 27, 2020
by
Daniel Scholl
Browse files
Merge branch 'charts/pipeline/job-fixes' into 'master'
Helm Chart fixes. See merge request
!37
parents
a19fe3fd
210047c1
Changes
11
Hide whitespace changes
Inline
Side-by-side
devops/build-stage.yml
View file @
365f0f12
...
...
@@ -27,6 +27,7 @@ parameters:
mavenPomFile
:
'
pom.xml'
mavenPublishJUnitResults
:
false
mavenOptions
:
'
'
checkoutRepo
:
self
stages
:
...
...
@@ -44,6 +45,8 @@ stages:
clean
:
all
steps
:
-
download
:
none
-
checkout
:
${{ parameters.checkoutRepo }}
persistCredentials
:
true
-
task
:
Maven@3
displayName
:
'
Maven:
validate'
inputs
:
...
...
devops/chart-stages.yml
View file @
365f0f12
...
...
@@ -18,6 +18,7 @@ parameters:
serviceName
:
"
"
skipDeploy
:
false
hldRegPath
:
"
providers/azure/hld-registry"
checkoutRepo
:
self
stages
:
-
${{ each provider in parameters.providers }}
:
...
...
@@ -49,6 +50,7 @@ stages:
valuesFile
:
${{ parameters.valuesFile }}
skipDeploy
:
${{ parameters.skipDeploy }}
hldRegPath
:
${{ parameters.hldRegPath }}
checkoutRepo
:
${{ parameters.checkoutRepo }}
-
template
:
tasks/flux-chart-wait.yml
parameters
:
...
...
devops/deploy-stages.yml
View file @
365f0f12
...
...
@@ -26,6 +26,7 @@ parameters:
skipDeploy
:
false
skipTest
:
'
false'
dockerFile
:
'
'
checkoutRepo
:
self
stages
:
...
...
@@ -79,3 +80,4 @@ stages:
runPythonTest
:
${{ parameters.runPythonTest }}
testPythonFilePath
:
${{ parameters.testPythonFilePath }}
testPythonFile
:
${{ parameters.testPythonFile }}
checkoutRepo
:
${{ parameters.checkoutRepo }}
devops/infra-validate-job.yml
View file @
365f0f12
...
...
@@ -21,6 +21,10 @@ jobs:
clean
:
all
steps
:
# Checkout to use the InfraRepo (resource repository from main pipeline) if creating the pipeline from outside of infra-azure-provisioning repo.
-
checkout
:
InfraRepo
persistCredentials
:
true
condition
:
ne(variables['INFRA_REPO'], '')
-
task
:
GoTool@0
displayName
:
'
Ensure
Golang'
inputs
:
...
...
devops/pipelines/infrastructure-central-resources.yml
View file @
365f0f12
...
...
@@ -25,6 +25,12 @@ trigger:
exclude
:
-
/**/*.md
# Use this resource when creating and using a pipeline external to this repo.
# resources:
# repositories:
# - repository: InfraRepo
# type: git
# name: infra-azure-provisioning
variables
:
-
name
:
'
TF_VERSION'
...
...
@@ -38,6 +44,9 @@ variables:
-
name
:
'
TEST_HARNESS_DIR'
value
:
'
test-harness'
-
group
:
'
Infrastructure
Pipeline
Variables'
# Add this variable when creating and using pipeline external to this repo.
# - name: 'INFRA_REPO'
# value: $[ resources.repositories['InfraRepo'].name ]
stages
:
-
template
:
/devops/infra-prepare-stage.yml
...
...
devops/pipelines/infrastructure-data-partition.yml
View file @
365f0f12
...
...
@@ -26,6 +26,12 @@ trigger:
exclude
:
-
/**/*.md
# Use this resource when creating and using a pipeline external to this repo.
# resources:
# repositories:
# - repository: InfraRepo
# type: git
# name: infra-azure-provisioning
variables
:
-
name
:
'
TF_VERSION'
...
...
@@ -39,6 +45,9 @@ variables:
-
name
:
'
TEST_HARNESS_DIR'
value
:
'
test-harness'
-
group
:
'
Infrastructure
Pipeline
Variables'
# Add this variable when creating and using pipeline external to this repo.
# - name: 'INFRA_REPO'
# value: $[ resources.repositories['InfraRepo'].name ]
stages
:
-
template
:
/devops/infra-prepare-stage.yml
...
...
devops/pipelines/infrastructure-service-resources.yml
View file @
365f0f12
...
...
@@ -26,6 +26,12 @@ trigger:
exclude
:
-
/**/*.md
# Use this resource when creating and using a pipeline external to this repo.
# resources:
# repositories:
# - repository: InfraRepo
# type: git
# name: infra-azure-provisioning
variables
:
-
name
:
'
TF_VERSION'
...
...
@@ -39,6 +45,9 @@ variables:
-
name
:
'
TEST_HARNESS_DIR'
value
:
'
test-harness'
-
group
:
'
Infrastructure
Pipeline
Variables'
# Add this variable when creating and using pipeline external to this repo.
# - name: 'INFRA_REPO'
# value: $[ resources.repositories['InfraRepo'].name ]
stages
:
-
template
:
/devops/infra-prepare-stage.yml
...
...
devops/tasks/aks-deployment-steps.yml
View file @
365f0f12
...
...
@@ -21,22 +21,29 @@ parameters:
skipDeploy
:
false
hldRegPath
:
"
"
generationPath
:
"
generated"
checkoutRepo
:
self
steps
:
# self to trigger clone of the current repo.
-
checkout
:
self
persistCredentials
:
true
-
checkout
:
FluxRepo
persistCredentials
:
true
-
checkout
:
${{ parameters.checkoutRepo }}
persistCredentials
:
true
-
task
:
"
HelmInstaller@1"
displayName
:
'
Helm
Install'
inputs
:
helmVersionToInstall
:
3.3.0
-
task
:
qetza.replacetokens.replacetokens-task.replacetokens@3
displayName
:
'
Helm
Values'
displayName
:
'
Helm
Values
-
Build
Repo
'
inputs
:
targetFiles
:
|
$(Build.SourcesDirectory)/$(Build.Repository.Name)/${{parameters.valuesFile}} => $(Build.SourcesDirectory)/$(Build.Repository.Name)/${{parameters.chartPath}}/values.yaml
condition
:
eq(variables['HELM_SOURCE'], '')
-
task
:
qetza.replacetokens.replacetokens-task.replacetokens@3
displayName
:
'
Helm
Values
-
Helm
Source
Repo'
inputs
:
targetFiles
:
|
$(Build.SourcesDirectory)/$(HELM_SOURCE)/${{parameters.valuesFile}} => $(Build.SourcesDirectory)/$(HELM_SOURCE)/${{parameters.chartPath}}/values.yaml
condition
:
ne(variables['HELM_SOURCE'], '')
-
template
:
helm-template.yml
parameters
:
serviceName
:
${{parameters.serviceName}}
...
...
devops/tasks/deployment-steps.yml
View file @
365f0f12
...
...
@@ -33,6 +33,7 @@ parameters:
testPythonFilePath
:
'
'
testPythonFile
:
'
'
runPythonTest
:
'
'
checkoutRepo
:
self
steps
:
-
template
:
detect-jar.yml
...
...
@@ -60,6 +61,7 @@ steps:
valuesFile
:
${{ parameters.valuesFile }}
hldRegPath
:
${{ parameters.hldRegPath }}
skipDeploy
:
${{ parameters.skipDeploy }}
checkoutRepo
:
${{ parameters.checkoutRepo }}
-
task
:
ExtractFiles@1
displayName
:
'
Extract
${{parameters.serviceName}}
integration
test
suite
'
...
...
devops/tasks/gitops.yml
View file @
365f0f12
...
...
@@ -32,7 +32,13 @@ steps:
#!/usr/bin/env bash
set -euo pipefail
GITOPS_MANIFEST_DIRECTORY=$(Build.SourcesDirectory)/$(Build.Repository.Name)/$CHART_PATH/$GENERATION_PATH
if [[ "$(HELM_SOURCE)" != "" ]]
then
HELM_SOURCE_NAME=$(HELM_SOURCE)
else
HELM_SOURCE_NAME=$(Build.Repository.Name)
fi
GITOPS_MANIFEST_DIRECTORY=$(Build.SourcesDirectory)/$HELM_SOURCE_NAME/$CHART_PATH/$GENERATION_PATH
cd $(Build.SourcesDirectory)/$(MANIFEST_REPO)
function configure_git_profile() {
...
...
devops/tasks/helm-template.yml
View file @
365f0f12
...
...
@@ -28,10 +28,21 @@ steps:
script
:
|
#!/usr/bin/env bash
cd $(Build.SourcesDirectory)/$(Build.Repository.Name)
echo "Helm Source: $(HELM_SOURCE)"
echo "Build Trigger Repo Name: $(Build.Repository.Name)"
if [[ "$(HELM_SOURCE)" != "" ]]
then
HELM_SOURCE_NAME=$(HELM_SOURCE)
else
HELM_SOURCE_NAME=$(Build.Repository.Name)
fi
echo "Helm Source Name: $HELM_SOURCE_NAME"
cd $(Build.SourcesDirectory)/$HELM_SOURCE_NAME
mkdir $CHART_PATH/$GENERATION_PATH
cat $(Build.SourcesDirectory)/$
(Build.Repository.Name)
/${{parameters.chartPath}}/values.yaml
cat $(Build.SourcesDirectory)/$
HELM_SOURCE_NAME
/${{parameters.chartPath}}/values.yaml
echo "Extracting Manifest"
helm template $SERVICE_NAME $CHART_PATH -f $(Build.SourcesDirectory)/$
(Build.Repository.Name)
/${{parameters.chartPath}}/values.yaml --output-dir $CHART_PATH/$GENERATION_PATH
helm template $SERVICE_NAME $CHART_PATH -f $(Build.SourcesDirectory)/$
HELM_SOURCE_NAME
/${{parameters.chartPath}}/values.yaml --output-dir $CHART_PATH/$GENERATION_PATH
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment