UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit b1b511c1 authored by Thomas Runyon's avatar Thomas Runyon
Browse files

Set git commits individually

parent f1404523
Branches pin-umbrella
No related tags found
No related merge requests found
hostname: bigbang.dev
# Toggle sourcing from external repos
# TODO: All this does right now is toggle GitRepositories, it is _not_ fully functional
offline: false
# Registry credentials to use from pulling images from private registry, will create an appropriate imagePullSecret in all relevant namespaces
registryCredentials:
registry: registry1.dsop.io
username: ""
password: ""
email: ""
# Flux reconciliation parameters
flux:
interval: 2m
......@@ -21,57 +18,45 @@ flux:
rollback:
timeout: 5m
cleanupOnFail: true
istio:
enabled: true
git:
repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/servicemesh.git
branch: chart-release
# commit: ""
# tag: ""
commit: f40172dd278e4f3551e6a1e8d4c8625771fbf928
values: {}
clusterAuditor:
enabled: true
git:
git:
repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/cluster-auditor.git
branch: chart-release
# commit: ""
# tag: ""
commit: 4ca478df04063ec8cd91b3ae2d2472b77675495d
values: {}
gatekeeper:
enabled: true
git:
repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/policy.git
branch: chart-release
# commit: ""
# tag: ""
commit: 714069053e9696f5e116deb2f677f1c2d213e9b6
values: {}
logging:
enabled: true
git:
repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/logging.git
branch: release-v0.2.x
# commit: ""
# tag: ""
commit: 02d6e9a073d196ecdf0951941c432beea642fc73
values: {}
monitoring:
enabled: true
git:
repo: https://repo1.dsop.io/platform-one/big-bang/apps/core/monitoring.git
branch: release-v0.2.x
# commit: ""
# tag: ""
commit: 014fb187b81eb976e76a4bb1a76bb4479aa2cea3
values: {}
twistlock:
enabled: true
git:
repo: https://repo1.dsop.io/platform-one/big-bang/apps/security-tools/twistlock.git
branch: chart-release
# commit: ""
# tag: ""
commit: faf038197291915713e0f213a4e35991e72f73f6
values: {}
#!/bin/bash
# This script can be used to automate the setting of git commits in the values file to the head of each branch specified in the
# package's git settings. To run simply run:
# ./hack/update.sh
# which will call updates on istio, clusterAuditor, gatekeeper, logging, monitoring and twistlock.
# As more addons get added we will have to update the wrapper script to know about them, or loop
# over all addons.X section.
# To update just one package, pass it as an argument into the script:
# ./hack/update.sh monitoring
# Assumes we have yq installed
function update() {
# Get the git repo
REPO=`yq r chart/values.yaml "$1.git.repo"`
# Get the current branch specified in the values file
CURR_BRANCH=`yq r chart/values.yaml "$1.git.branch"`
# use the ls-remote git command to pull put the newest commit on that branch
NEW_HEAD=`git ls-remote ${REPO} | grep "refs/heads/${CURR_BRANCH}" | cut -f 1`
# echo "REPO: ${REPO}"
# echo "CURR_BRANCH: ${CURR_BRANCH}"
# echo "NEW_HEAD: ${NEW_HEAD}"
echo "Setting $1 (${REPO} ${CURR_BRANCH}) to newest commit: ${NEW_HEAD}"
# Update the values file in place
yq w -i chart/values.yaml "$1.git.commit" ${NEW_HEAD}
}
if [ "$1" == "" ]; then
update istio
update clusterAuditor
update gatekeeper
update logging
update monitoring
update twistlock
else
update $1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment