Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATAGO-59401: Upgrading vault to 1.11.x #18

Merged
merged 87 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
c47ff33
add staticSecretRenderInterval to injector (#621)
kaitoii11 Nov 6, 2021
21cc21f
Update jira action (#644)
tomhjp Nov 16, 2021
0375b18
remove support for the leader-elector container (#649)
tvoran Nov 17, 2021
9fa25e9
vault-helm 0.18.0 release (#650)
tvoran Nov 17, 2021
48eebb0
Run CI tests in github workflows (#657)
tvoran Dec 11, 2021
609444d
Configurable PodDisruptionBudget for Injector (#653)
sosheskaz Dec 14, 2021
b4a9249
Fix spelling error in server disruptionbudget test (#654)
sosheskaz Dec 14, 2021
248397f
Make terminationGracePeriodSeconds configurable (#659)
mikutas Dec 15, 2021
0c0b6e3
injector: ability to set deployment update strategy (continued) (#661)
tvoran Dec 16, 2021
0043023
csi: ability to set priorityClassName for csi daemonset pods (#670)
brainiac84 Jan 4, 2022
c511d30
Fixed a small typo (#672)
nikstur Jan 7, 2022
0a1f8d1
Disable unit and acceptance tests in CircleCI (#675)
tvoran Jan 11, 2022
d6e1cd0
update CONTRIBUTING.md (#677)
tvoran Jan 12, 2022
a84a61f
add namespace support for openshift route (#679)
Jan 14, 2022
e629dc9
Add volumes and env vars to helm hook test pod (#673)
Iristyle Jan 20, 2022
92da512
allow injection of TLS config for OpenShift routes (#686)
mbaldessari Jan 20, 2022
b0528fc
Release 0.19.0 (#687)
tvoran Jan 20, 2022
a2d9a01
Add extraLabels for CSI DaemonSet (#690)
michaeljs1990 Feb 25, 2022
b447a92
Updated hashicorp/vault-csi-provider image to v1.0.0 (#689)
TroyFluegge Feb 25, 2022
19b417c
Fix unit test assertions (#693)
tomhjp Feb 25, 2022
a7e56d8
vault: bump image to 1.9.3 (#695)
lion24 Mar 2, 2022
4f5c01f
changelog++ (#699)
tomhjp Mar 2, 2022
a81a992
change helm trigger branch from master to main (#700)
alvin-huang Mar 3, 2022
f59f3d4
Add namespace to injector-leader-elector role, rolebinding and secret…
thechristschn Mar 16, 2022
549d9b8
allow to configure publishNotReadyAddresses on server services (#694)
avoidik Mar 17, 2022
56a253b
Maintain pre-existing Mutating Webhook default values for Kubernetes …
RemcoBuddelmeijer Mar 18, 2022
7109159
VAULT-571 Matching documented behavior and consul (#703)
swenson Mar 21, 2022
460b5e1
Update k8s versions (#706)
tvoran Mar 21, 2022
4da0638
Fix values schema to support config in YAML (#684)
gw0 Mar 28, 2022
12444bf
Support policy/v1 disruptionbudget beyond kube 1.21 (#710)
sharkannon Apr 5, 2022
4ae52c8
Remove unncessary template calls (#712)
Iristyle Apr 13, 2022
87e4567
Issue 629: updated to allow customization of the CLUSTER_ADDR the sam…
sharkannon Apr 14, 2022
230bba4
VAULT-5838 Update CSI provider to 1.1.0 (#721)
swenson Apr 27, 2022
9b43054
VUALT-5838 Restore Secrets Store CSI driver to 1.0.0 (#722)
swenson Apr 27, 2022
4005767
Implement support for Topology Spread Constraints (#652)
sosheskaz Apr 28, 2022
eba7548
Update the changelog with changes from 614 and 652 (#723)
swenson Apr 28, 2022
6ca2f72
Prepare v0.20.0 release (#727)
tomhjp May 16, 2022
86b3009
Fix CSI acceptance tests (#728)
tomhjp May 16, 2022
3dcc3fd
Update minimum required helm version in readme (#730)
tvoran May 20, 2022
830761a
Restore missing 'vault' service account (#737)
swenson May 24, 2022
daa2b3b
Set default object selector for webhooks to exclude injector itself (…
swenson May 24, 2022
45897a6
Prepare for release 0.20.1 (#739)
swenson May 26, 2022
80560f5
Mention minimum helm version in changelog (#742)
tvoran Jun 1, 2022
48f4ab8
Start testing against Kubernetes 1.24 (#744)
swenson Jun 2, 2022
d78a292
Update .helmignore (#732)
alexey-ban-test Jun 2, 2022
44a07b8
Set VAULT_ADDR env var for CSI Provider pods (#745)
tomhjp Jun 7, 2022
6c14d9d
Support to add annotations in injector serviceaccount (#753)
brunopadz Jul 11, 2022
324d689
changelog++ (#757)
tvoran Jul 18, 2022
999b0b7
jira-sync: transition to "Closed" not "Close" (#758)
tvoran Jul 19, 2022
553af86
Add support for nodePort for active and standby services (#610)
jzck Aug 1, 2022
eb95ac5
Feat/adding pod and container security context (#750)
ChrisFraun Aug 2, 2022
6931720
Changelog and schema update for active/standby node port (#761)
swenson Aug 2, 2022
91b6c64
changelog++ and json schema update (#762)
tvoran Aug 3, 2022
8bc1604
Update jira sync (#768)
benashz Aug 5, 2022
9efd98a
csi/server.statefulset: custom security context (#767)
swenson Aug 8, 2022
eca526b
Prepare for 0.21.0 release (#771)
swenson Aug 10, 2022
9fa4c6c
DOC: Minor typos fixes (#669)
hayorov Aug 16, 2022
85562b4
update values comments for server.securityContext (#778)
tvoran Aug 26, 2022
8a6872e
CI: run acceptance tests on push to any (#781)
benashz Sep 1, 2022
0407431
Add support for the Prometheus Operator (#772)
benashz Sep 1, 2022
99d745c
Update vault-k8s to 1.0.0 (#784)
swenson Sep 8, 2022
c15d83e
Prepare for 0.22.0 release (#785)
swenson Sep 8, 2022
a63dd55
Explain this fork in the README
j-setiawan Apr 2, 2020
ef468b6
Adding support for LoadBalancerIP field in ServiceSpec
Apr 10, 2020
90755ae
DATAGO-13861: Adding support for logrotate
hadielaham88 May 19, 2021
e62f072
DATAGO-13861: Adding audit log rotation and shipment to datdog
hadielaham88 May 26, 2021
09cdf52
Fixing minor typos and removing extra lines
hadielaham88 May 26, 2021
8efa410
Explain this fork in the README
j-setiawan Apr 2, 2020
b27ba0a
Adding support for LoadBalancerIP field in ServiceSpec
Apr 10, 2020
782a9ae
DATAGO-13861: Adding support for logrotate
hadielaham88 May 19, 2021
fd5c062
DATAGO-13861: Adding audit log rotation and shipment to datdog
hadielaham88 May 26, 2021
70eaeef
Fixing minor typos and removing extra lines
hadielaham88 May 26, 2021
e19dda3
feat(DATAGO-27002): Upgrade vault to version 1.7.9 (#12)
nagsubhrajitt Jun 1, 2022
a310025
fix: deploy_local.sh error with file
adhish2001 Jul 14, 2022
ac36a5c
minor changes
adhish2001 Jul 14, 2022
e16ec42
Adding support for LoadBalancerIP field in ServiceSpec
Apr 10, 2020
65c92c9
DATAGO-13861: Adding support for logrotate
hadielaham88 May 19, 2021
7474af1
DATAGO-13861: Adding audit log rotation and shipment to datdog
hadielaham88 May 26, 2021
32cc88e
Fixing minor typos and removing extra lines
hadielaham88 May 26, 2021
b829f33
DATAGO-13861: Adding support for logrotate
hadielaham88 May 19, 2021
f0e3fca
DATAGO-13861: Adding audit log rotation and shipment to datdog
hadielaham88 May 26, 2021
21ebe61
Fixing minor typos and removing extra lines
hadielaham88 May 26, 2021
b505aa3
feat(DATAGO-27002): Upgrade vault to version 1.7.9 (#12)
nagsubhrajitt Jun 1, 2022
cc8706d
Datago 30304/upgrading vault to 1.9.2 (#14)
adhish2001 Jul 27, 2022
b1a79ae
feat(DATAGO-30305): Upgrade vault server to 1.10.x (#16)
xiaocongji Mar 21, 2023
057888d
Merge branch 'develop' into DATAGO-59401/upgrading-vault-to-1.11.x
xiaocongji Jul 31, 2023
3ff00b8
chore(59401): Upgrade vault to 1.11.x
xiaocongji Aug 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions .github/workflows/acceptance.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
name: Acceptance Tests

on:
push:
branches:
- main
workflow_dispatch: {}
on: [push, workflow_dispatch]

jobs:
kind:
strategy:
fail-fast: false
matrix:
kind-k8s-version: [1.16.15, 1.20.15, 1.21.10, 1.22.7, 1.23.4]
kind-k8s-version: [1.16.15, 1.20.15, 1.21.14, 1.22.13, 1.23.10, 1.24.4, 1.25.0]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -23,12 +19,8 @@ jobs:
with:
config: test/kind/config.yaml
node_image: kindest/node:v${{ matrix.kind-k8s-version }}
version: v0.14.0

# Skip CSI tests if K8s version < 1.16.x
- run: echo K8S_MINOR=$(kubectl version -o json | jq -r .serverVersion.minor) >> $GITHUB_ENV
- if: ${{ env.K8S_MINOR < 16 }}
run: echo "SKIP_CSI=true" >> $GITHUB_ENV

- run: bats ./test/acceptance -t
- run: bats --tap --timing ./test/acceptance
env:
VAULT_LICENSE_CI: ${{ secrets.VAULT_LICENSE_CI }}
4 changes: 2 additions & 2 deletions .github/workflows/jira.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
description: "${{ github.event.issue.body || github.event.pull_request.body }}\n\n_Created from GitHub Action for ${{ github.event.issue.html_url || github.event.pull_request.html_url }} from ${{ github.actor }}_"
# customfield_10089 is Issue Link custom field
# customfield_10091 is team custom field
extraFields: '{"fixVersions": [{"name": "TBD"}], "customfield_10091": ["ecosystem", "runtime"], "customfield_10089": "${{ github.event.issue.html_url || github.event.pull_request.html_url }}"}'
extraFields: '{"fixVersions": [{"name": "TBD"}], "customfield_10091": ["ecosystem", "foundations"], "customfield_10089": "${{ github.event.issue.html_url || github.event.pull_request.html_url }}"}'

- name: Search
if: github.event.action != 'opened'
Expand All @@ -62,7 +62,7 @@ jobs:
uses: atlassian/[email protected]
with:
issue: ${{ steps.search.outputs.issue }}
transition: Close
transition: Closed

- name: Reopen ticket
if: github.event.action == 'reopened' && steps.search.outputs.issue
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/setup-test-tools
- run: bats ./test/unit -t
- run: bats --tap --timing ./test/unit

chart-verifier:
runs-on: ubuntu-latest
Expand All @@ -22,4 +22,4 @@ jobs:
with:
go-version: '1.17.4'
- run: go install github.com/redhat-certification/chart-verifier@${CHART_VERIFIER_VERSION}
- run: bats ./test/chart -t
- run: bats --tap --timing ./test/chart
26 changes: 25 additions & 1 deletion .helmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.terraform/
bin/
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj

# CI and test
.circleci/
.github/
.gitlab-ci.yml
test/
43 changes: 42 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
## Unreleased


## 0.22.0 (September 8th, 2022)

Features:
* Add PrometheusOperator support for collecting Vault server metrics. [GH-772](https://github.com/hashicorp/vault-helm/pull/772)

Changes:
* `vault-k8s` to 1.0.0 [GH-784](https://github.com/hashicorp/vault-helm/pull/784)
* Test against Kubernetes 1.25 [GH-784](https://github.com/hashicorp/vault-helm/pull/784)
* `vault` updated to 1.11.3 [GH-785](https://github.com/hashicorp/vault-helm/pull/785)

## 0.21.0 (August 10th, 2022)

CHANGES:
* `vault-k8s` updated to 0.17.0. [GH-771](https://github.com/hashicorp/vault-helm/pull/771)
* `vault-csi-provider` updated to 1.2.0 [GH-771](https://github.com/hashicorp/vault-helm/pull/771)
* `vault` updated to 1.11.2 [GH-771](https://github.com/hashicorp/vault-helm/pull/771)
* Start testing against Kubernetes 1.24. [GH-744](https://github.com/hashicorp/vault-helm/pull/744)
* Deprecated `injector.externalVaultAddr`. Added `global.externalVaultAddr`, which applies to both the Injector and the CSI Provider. [GH-745](https://github.com/hashicorp/vault-helm/pull/745)
* CSI Provider pods now set the `VAULT_ADDR` environment variable to either the internal Vault service or the configured external address. [GH-745](https://github.com/hashicorp/vault-helm/pull/745)

Features:
* server: Add `server.statefulSet.securityContext` to override pod and container `securityContext`. [GH-767](https://github.com/hashicorp/vault-helm/pull/767)
* csi: Add `csi.daemonSet.securityContext` to override pod and container `securityContext`. [GH-767](https://github.com/hashicorp/vault-helm/pull/767)
* injector: Add `injector.securityContext` to override pod and container `securityContext`. [GH-750](https://github.com/hashicorp/vault-helm/pull/750) and [GH-767](https://github.com/hashicorp/vault-helm/pull/767)
* Add `server.service.activeNodePort` and `server.service.standbyNodePort` to specify the `nodePort` for active and standby services. [GH-610](https://github.com/hashicorp/vault-helm/pull/610)
* Support for setting annotations on the injector's serviceAccount [GH-753](https://github.com/hashicorp/vault-helm/pull/753)

## 0.20.1 (May 25th, 2022)
CHANGES:
* `vault-k8s` updated to 0.16.1 [GH-739](https://github.com/hashicorp/vault-helm/pull/739)

Improvements:
* Mutating webhook will no longer target the agent injector pod [GH-736](https://github.com/hashicorp/vault-helm/pull/736)

Bugs:
* `vault` service account is now created even if the server is set to disabled, as per before 0.20.0 [GH-737](https://github.com/hashicorp/vault-helm/pull/737)

## 0.20.0 (May 16th, 2022)

CHANGES:
Expand All @@ -9,8 +47,10 @@ CHANGES:
* CSI provider default image to 1.1.0
* Vault K8s default image to 0.16.0
* Earliest Kubernetes version tested is now 1.16
* Helm 3.6+ now required

Features:
* Support topologySpreadConstraints in server and injector. [GH-652](https://github.com/hashicorp/vault-helm/pull/652)
* Maintain default MutatingWebhookConfiguration values from `v1beta1` [GH-692](https://github.com/hashicorp/vault-helm/pull/692)

Improvements:
* CSI: Set `extraLabels` for daemonset, pods, and service account [GH-690](https://github.com/hashicorp/vault-helm/pull/690)
Expand All @@ -19,6 +59,7 @@ Improvements:
* Make the Cluster Address (CLUSTER_ADDR) configurable [GH-629](https://github.com/hashicorp/vault-helm/pull/709)
* server: Make `publishNotReadyAddresses` configurable for services [GH-694](https://github.com/hashicorp/vault-helm/pull/694)
* server: Allow config to be defined as a YAML object in the values file [GH-684](https://github.com/hashicorp/vault-helm/pull/684)
* Maintain default MutatingWebhookConfiguration values from `v1beta1` [GH-692](https://github.com/hashicorp/vault-helm/pull/692)

## 0.19.0 (January 20th, 2022)

Expand Down
4 changes: 2 additions & 2 deletions Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: vault
version: 0.20.0
appVersion: 1.10.3
version: 0.22.0
appVersion: 1.11.3
kubeVersion: ">= 1.16.0-0"
description: Official HashiCorp Vault Chart
home: https://www.vaultproject.io
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LOCAL_ACCEPTANCE_TESTS?=false
KIND_CLUSTER_NAME?=vault-helm

# kind k8s version
KIND_K8S_VERSION?=v1.20.2
KIND_K8S_VERSION?=v1.25.0

# Generate json schema for chart values. See test/README.md for more details.
values-schema:
Expand Down Expand Up @@ -72,7 +72,7 @@ acceptance:
ifneq ($(LOCAL_ACCEPTANCE_TESTS),true)
gcloud auth activate-service-account --key-file=${GOOGLE_CREDENTIALS}
endif
bats test/${ACCEPTANCE_TESTS}
bats --tap --timing test/${ACCEPTANCE_TESTS}

# this target is for provisioning the GKE cluster
# it is run in the docker container above when the test-provision target is invoked
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ this README. Please refer to the Kubernetes and Helm documentation.

The versions required are:

* **Helm 3.0+** - This is the earliest version of Helm tested. It is possible
it works with earlier versions but this chart is untested for those versions.
* **Helm 3.6+**
* **Kubernetes 1.16+** - This is the earliest version of Kubernetes tested.
It is possible that this chart works with earlier versions but it is
untested.
Expand Down
Loading