Skip to content
Snippets Groups Projects
Verified Commit 989b41bc authored by David Hoese's avatar David Hoese
Browse files

Add initial bucket lifecycle configs

parent a4ed4074
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@ stages:
- get chart
- build prereqs
- deploy rabbit
- deploy storage
- deploy GRB
- deploy G2G
- deploy WMS
......@@ -129,45 +128,6 @@ deploy_prod_rabbit:
- when: on_success
deploy_prod_minio:
environment:
name: production
url: http://geosphere.ssec.wisc.edu
extends: .helm_based_job
stage: deploy storage
script:
- if [ -n "$CI_COMMIT_TAG" ]; then
ns="geosphere";
else
ns="geosphere-test";
fi
# copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation
- auth_sec="geosphere-minio"
- sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace $ns $auth_sec || echo "")
- echo "$sec_info"
# if we've installed this once then reuse the existing secret
# otherwise force the chart to generate random values for accessKey and secretKey
# by setting them to false
- if [ "$sec_info" != "" ]; then
ak=$(kubectl --kubeconfig $kubeconfig get secret --namespace "$ns" "$auth_sec" -o jsonpath="{.data.accesskey}" | base64 -d);
sk=$(kubectl --kubeconfig $kubeconfig get secret --namespace "$ns" "$auth_sec" -o jsonpath="{.data.secretkey}" | base64 -d);
EXTRA_ARGS="--set accessKey=$ak --set secretKey=$sk";
else
EXTRA_ARGS="--set accessKey=false --set secretKey=false";
fi
- echo $EXTRA_ARGS
- helm upgrade -v 2 --install --kubeconfig $kubeconfig -f production/values-geosphere-minio.yaml $EXTRA_ARGS --namespace $ns geosphere-minio stable/minio
# this job doesn't actually need any artifacts from previous jobs
dependencies: []
rules:
- if: '$kubekorner_k3s_config == ""'
when: never
- when: on_success
deploy_g16_grb:
environment:
name: production
......
{
"Rules": [
{
"ID": "Expire old NetCDF files",
"Expiration": {
"Days": 1
},
"Prefix": "",
"Status": "Enabled"
}
]
}
\ No newline at end of file
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