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

[DEVOPS-18799 - Update to v0.7.0 #2

Merged
merged 80 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
d5becc4
Update codeowners (#654)
benashz Mar 14, 2024
3f7e025
Helm: set min k8s version to 1.21 (#656)
benashz Mar 14, 2024
4768598
Bump google.golang.org/api from 0.169.0 to 0.170.0 (#664)
dependabot[bot] Mar 20, 2024
04abf4e
Bump k8s.io/client-go from 0.29.2 to 0.29.3 (#660)
dependabot[bot] Mar 20, 2024
ae4a421
Bump github.com/hashicorp/vault/api from 1.12.0 to 1.12.1 (#662)
dependabot[bot] Mar 20, 2024
1d4351e
Bump github.com/hashicorp/vault/sdk from 0.11.0 to 0.11.1 (#661)
dependabot[bot] Mar 20, 2024
cefaf1d
Bump google.golang.org/api from 0.170.0 to 0.171.0 (#668)
dependabot[bot] Mar 25, 2024
d3fe5d2
Bump github.com/gruntwork-io/terratest from 0.46.11 to 0.46.13 (#669)
dependabot[bot] Mar 25, 2024
535803b
Bump github.com/hashicorp/vault/api from 1.12.1 to 1.12.2 (#667)
dependabot[bot] Mar 25, 2024
9b2202f
Bump github.com/onsi/gomega from 1.31.1 to 1.32.0 (#666)
dependabot[bot] Mar 25, 2024
20ceab9
Bump github.com/cenkalti/backoff/v4 from 4.2.1 to 4.3.0 (#673)
dependabot[bot] Apr 5, 2024
09f84ee
Bump google.golang.org/api from 0.171.0 to 0.172.0 (#672)
dependabot[bot] Apr 5, 2024
1b8f50f
CI: Fix tests in GKE (#675)
tvoran Apr 5, 2024
fc02fd9
Use go 1.21.9 and update golang.org/x/net (#677)
tvoran Apr 5, 2024
c1bdd15
Bump github.com/hashicorp/go-hclog from 1.6.2 to 1.6.3 (#679)
dependabot[bot] Apr 9, 2024
45ebf91
Bump github.com/prometheus/client_model from 0.6.0 to 0.6.1 (#678)
dependabot[bot] Apr 9, 2024
af2681a
Upgrade to go 1.22.2 (#683)
benashz Apr 12, 2024
41b899d
Bump sigs.k8s.io/controller-runtime from 0.17.2 to 0.17.3 (#688)
dependabot[bot] Apr 15, 2024
01642d1
Bump github.com/hashicorp/vault/sdk from 0.11.1 to 0.12.0 (#687)
dependabot[bot] Apr 15, 2024
5f520b2
Ensure the integration tests exits with the correct status code (#691)
benashz Apr 17, 2024
4beed9e
Bump github.com/onsi/gomega from 1.32.0 to 1.33.0 (#696)
dependabot[bot] Apr 22, 2024
0c1ad6b
olm: remove the `skips` from the last release (#703)
tvoran Apr 24, 2024
775b413
Temporarily skip flaky PKI integration test (#705)
benashz Apr 24, 2024
5c62c3c
Reconcile VDS instances on lifetimeWatcher done events (#665)
benashz Apr 24, 2024
57b8739
Release updates for v0.6.0 (#707)
benashz Apr 24, 2024
b654485
Bump google.golang.org/api from 0.172.0 to 0.176.1 (#706)
dependabot[bot] Apr 25, 2024
9d6a75a
Bump github.com/hashicorp/go-getter from 1.7.1 to 1.7.4 (#711)
dependabot[bot] Apr 29, 2024
8f48e03
Bump k8s.io/client-go from 0.29.3 to 0.30.0 and sigs.k8s.io/controlle…
benashz Apr 29, 2024
9d3d4e1
Bump github.com/gruntwork-io/terratest from 0.46.13 to 0.46.14 (#713)
dependabot[bot] Apr 29, 2024
f994f29
CI: test against vault-1.16.2 (#715)
benashz Apr 30, 2024
32a0413
Bump ubi9/ubi-minimal from 9.3-1612 to 9.4-949 (#720)
dependabot[bot] May 1, 2024
17fec58
Bump ubi9/ubi-micro from 9.3-15 to 9.4-6 (#719)
dependabot[bot] May 1, 2024
ae151c2
VDS: Selectively log calls to SyncRegistry.Delete() (#718)
benashz May 2, 2024
00b33d4
Client: skip LifetimeWatcher validation for non-renewable auth tokens…
benashz May 3, 2024
5b6c0ad
Bump github.com/onsi/gomega from 1.33.0 to 1.33.1 (#727)
dependabot[bot] May 7, 2024
629bbbd
Bump ubi9/ubi-minimal from 9.4-949 to 9.4-949.1714662671 (#728)
dependabot[bot] May 7, 2024
cda4cc7
Bump sigs.k8s.io/controller-runtime from 0.18.0 to 0.18.1 (#726)
dependabot[bot] May 7, 2024
a502e74
Bump google.golang.org/api from 0.176.1 to 0.177.0 (#724)
dependabot[bot] May 7, 2024
cccca7f
Bump github.com/hashicorp/vault/api from 1.12.2 to 1.13.0 (#725)
dependabot[bot] May 8, 2024
c30a82b
add argo.Rollout support for RolloutRestartTarget (#702)
thyton May 8, 2024
cd702f4
Rename Vault OSS to Vault Community (#733)
benashz May 9, 2024
aba70bb
Build: sync ClusteRole to the chart (#736)
benashz May 10, 2024
595e502
Bump GH actions for node 16 obsolescence (#738)
benashz May 10, 2024
c1032fd
Bump TF provider versions (#737)
benashz May 10, 2024
b2c924e
Bump golang.org/x/crypto from 0.22.0 to 0.23.0 (#744)
dependabot[bot] May 13, 2024
6a7ca42
Bump sigs.k8s.io/controller-runtime from 0.18.1 to 0.18.2 (#743)
dependabot[bot] May 13, 2024
28abd74
Bump github.com/prometheus/client_golang from 1.19.0 to 1.19.1 (#741)
dependabot[bot] May 13, 2024
c2f7a4e
Bump google.golang.org/api from 0.177.0 to 0.180.0 (#742)
dependabot[bot] May 13, 2024
cd8dee6
Call VDS callbacks on VaultAuth and VaultConnection changes (#739)
benashz May 14, 2024
3ad6d40
CachingClientFactory: lock by client cache key (#716)
benashz May 15, 2024
5b0a602
Disable development logger mode by default (#751)
benashz May 15, 2024
0565d6e
Tests: retry VaultConnection updates (#750)
benashz May 15, 2024
17f8448
Use exponential backoffs on secret source errors. (#732)
benashz May 16, 2024
a315414
Tests: retry VaultAuth updates (#754)
benashz May 16, 2024
92e1eb7
Ensure that spec.hmacSecretData's value is honoured (#753)
benashz May 16, 2024
8753315
Core: add support for setting maxElapsedTime backoff (#755)
benashz May 17, 2024
757b362
Fix backoff registry tests (#762)
benashz May 21, 2024
699ff12
CI: reduce total vault ready wait time to 5m (#765)
benashz May 22, 2024
cc855ab
Core: lock on get backoff (#764)
benashz May 22, 2024
7aa0030
Helm: add support for cluster role aggregates (#752)
benashz May 22, 2024
156321d
Secrets transformation: add htpasswd template function (#708)
sebglon May 22, 2024
babf61d
Bump k8s.io/api from 0.30.0 to 0.30.1 (#761)
dependabot[bot] May 22, 2024
d8acfd6
Skip storing kind cluster logs on main (temporary workaround) (#766)
benashz May 22, 2024
1df826c
Rename back-off to backoff (#763)
benashz May 22, 2024
c73adba
Bump k8s.io/client-go from 0.30.0 to 0.30.1 (#760)
dependabot[bot] May 22, 2024
ece8f06
Bump google.golang.org/api from 0.180.0 to 0.181.0 (#758)
dependabot[bot] May 22, 2024
3fc249e
Helm: add support configuring strategy on controller deployment (#709)
sebglon May 22, 2024
fbe72a4
SEC-090: Automated trusted workflow pinning (2024-05-27) (#777)
hashicorp-tsccr[bot] May 27, 2024
c9666ee
Bump github.com/gruntwork-io/terratest from 0.46.14 to 0.46.15 (#776)
dependabot[bot] May 27, 2024
08d7304
Bump sigs.k8s.io/controller-runtime from 0.18.2 to 0.18.3 (#772)
dependabot[bot] May 27, 2024
fca6e9e
Fix: Overwriting tls.crt and tls.key when using secret type kubernete…
jacob-faber May 27, 2024
90479b3
Bump github.com/go-logr/logr from 1.4.1 to 1.4.2 (#775)
dependabot[bot] May 27, 2024
ca304d3
Bump github.com/hashicorp/vault/sdk from 0.12.0 to 0.13.0 (#773)
dependabot[bot] May 27, 2024
cbcfc15
Helm: rename backOffOnSecretSourceError to backoffOnSecretSourceError…
benashz May 27, 2024
bc96a02
Helm: adds values for setting VSO's logging options (#778)
benashz May 27, 2024
f9ddeb6
Release updates for v0.7.0 (#780)
benashz May 27, 2024
64bd04f
Fix versioned build (#781)
benashz May 27, 2024
54dde37
Ensure version is set when loading image into kind (#782)
benashz May 27, 2024
edb807a
Merge tag 'v0.7.0' into update_v070
ebdekock May 28, 2024
5b5f51d
Remove our deps, upstream added it
ebdekock May 28, 2024
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
2 changes: 2 additions & 0 deletions .copywrite.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ project {
# files or folders should be ignored
# Default: []
header_ignore = [
".idea/**",
"build/**"
# "vendor/**",
# "**autogen**",
]
Expand Down
131 changes: 131 additions & 0 deletions .github/actions/integration-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

name: Integration test
description: Run the integration tests against a single version of k8s and Vault
inputs:
k8s-version:
description: 'Kubernetes version to use for the kind cluster'
required: true
version:
description: 'Vault Secrets Operator version to use for the tests'
required: true
vault-version:
description: 'Vault version to use for the tests'
required: true
vault-enterprise:
description: 'Test against Vault Enterprise'
required: true
operator-image-archive:
description: 'Name of the docker image archive artifact to download'
required: true
kind-cluster-name:
description: 'Name of the kind cluster to create and test against'
default: vault-secrets-operator
log-prefix:
description: 'Prefix for the log artifact name'
installation-method:
description: 'Installation method to use for the tests'
required: true
vault-license-ci:
description: 'Vault license to use for enterprise tests'
hcp-organization-id:
description: 'HCP organization ID'
required: true
hcp-project-id:
description: 'HCP project ID'
required: true
hcp-client-id:
description: 'HCP client ID'
required: true
hcp-client-secret:
description: 'HCP client secret'
required: true
github-token:
description: 'GitHub token'
required: true
runs:
using: "composite"
steps:
- name: Validate inputs
shell: bash
run: |
[ -n "${{ inputs.operator-image-archive }}" ] || (echo "inputs.operator-image-archive not set" >&2 ; exit 1)
if [ ${{ inputs.vault-enterprise }} == 'true' ]; then
[ -n "${{ inputs.vault-license-ci }}" ] || (echo "inputs.vault-license-ci not set" >&2 ; exit 1)
fi
[ -n "${{ inputs.version }}" ] || (echo "inputs.version not set" >&2 ; exit 1)
# Checkout this repo.
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .go-version
- name: Create Kind Cluster
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
with:
cluster_name: ${{ inputs.kind-cluster-name }}
config: test/integration/kind/config.yaml
node_image: kindest/node:v${{ inputs.k8s-version }}
version: "v0.22.0"
- name: Create kind export log root
id: create_kind_export_log_root
shell: bash
run: |
vault_flavor=community
if [ ${{ inputs.vault-enterprise }} == 'true' ]; then
vault_flavor=ent
fi
log_artifact_name="${{ inputs.log-prefix }}kind-${{ inputs.kind-cluster-name }}-$(git rev-parse --short ${{ github.sha }})-${{ inputs.k8s-version }}-${{ inputs.vault-version }}-${vault_flavor}-${{ inputs.installation-method }}-logs"
log_root="/tmp/${log_artifact_name}"
mkdir -vp "${log_root}"
echo "log_root=${log_root}" >> $GITHUB_OUTPUT
echo "log_artifact_name=${log_artifact_name}" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: ${{ inputs.operator-image-archive }}
- name: Load vault-secrets-operator ${{ inputs.version }} image
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
# used by scripts that fetch build tools from GH
GH_GET_RETRIES: 5
shell: bash
run: |
make docker-image-load load-docker-image VERSION=${{ inputs.version }} IMAGE_ARCHIVE_FILE="${{ inputs.operator-image-archive }}"
- name: "${{ inputs.installation-method }} enterprise=${{ inputs.vault-enterprise }}"
env:
INTEGRATION_TESTS: "true"
VAULT_IMAGE_TAG: ${{ inputs.vault-version }}
VAULT_LICENSE_CI: ${{ inputs.vault-license-ci }}
HCP_ORGANIZATION_ID: ${{ inputs.hcp-organization-id }}
HCP_PROJECT_ID: ${{ inputs.hcp-project-id }}
HCP_CLIENT_ID: ${{ inputs.hcp-client-id }}
HCP_CLIENT_SECRET: ${{ inputs.hcp-client-secret }}
GITHUB_TOKEN: ${{ inputs.github-token }}
# used by scripts that fetch build tools from GH
GH_GET_RETRIES: 5
shell: bash
run: |
make_target=integration-test
if [ ${{ inputs.installation-method }} == 'helm' ]; then
make_target+='-helm'
fi
if [ ${{ inputs.vault-enterprise }} == 'true' ]; then
make_target+='-ent'
export VAULT_IMAGE_TAG='${{ inputs.vault-version }}-ent'
fi
make $make_target VERSION=${{ inputs.version }} INTEGRATION_TESTS_PARALLEL=true SUPPRESS_TF_OUTPUT=true EXPORT_KIND_LOGS_ROOT=${{ steps.create_kind_export_log_root.outputs.log_root }}
- name: Store kind cluster logs
# skip main as a temporary workaround for CRT build prepare issue ref: https://github.com/hashicorp/bob/pull/189.
if: success() && !contains(github.ref, 'refs/heads/main')
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ${{ steps.create_kind_export_log_root.outputs.log_artifact_name }}
path: ${{ steps.create_kind_export_log_root.outputs.log_root }}
- name: Store kind cluster logs failure
# skip main as a temporary workaround for CRT build prepare issue ref: https://github.com/hashicorp/bob/pull/189.
if: failure() && !contains(github.ref, 'refs/heads/main')
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ${{ steps.create_kind_export_log_root.outputs.log_artifact_name }}-failed
path: ${{ steps.create_kind_export_log_root.outputs.log_root }}
Loading
Loading