Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
make generate manifests
make generate manifests copywrite-headers
if [ -n "$(git status --porcelain)" ]; then
echo "Generated manifests are out of date. Please run 'make generate manifests' and commit the changes."
exit 1
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ sdk-generate: copywrite operator-sdk
$(OPERATOR_SDK) generate kustomize manifests -q
$(COPYWRITE) headers -d $(CONFIG_SRC_DIR)

.PHONE: copywrite-headers
copywrite-headers: copywrite
@$(COPYWRITE) headers

.PHONY: bundle
bundle: manifests kustomize set-image-ubi yq ## Generate bundle manifests and metadata, then validate generated files.
@rm -rf $(BUNDLE_DIR)
Expand Down
3 changes: 3 additions & 0 deletions demo/infra/app/csi-app.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

# Deploys the CSI app to the Kubernetes cluster. It will pull Vault secrets using the VSO CSI driver.
resource "kubernetes_namespace" "demo-ns-vso-csi" {
count = local.csi_enabled ? 1 : 0
Expand Down
3 changes: 3 additions & 0 deletions demo/infra/app/vault-auth-global.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

resource "kubernetes_manifest" "vault-auth-global" {
manifest = {
apiVersion = "secrets.hashicorp.com/v1beta1"
Expand Down
3 changes: 3 additions & 0 deletions test/integration/charts/postgresql/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

apiVersion: v2
name: postgresql
description: A Helm chart for Kubernetes
Expand Down
3 changes: 3 additions & 0 deletions test/integration/charts/postgresql/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
Expand Down
3 changes: 3 additions & 0 deletions test/integration/charts/postgresql/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand Down
3 changes: 3 additions & 0 deletions test/integration/charts/postgresql/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

apiVersion: v1
kind: Secret
metadata:
Expand Down
3 changes: 3 additions & 0 deletions test/integration/charts/postgresql/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
Comment on lines +1 to +2
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These may need special handling because they're helm templates? Like in the vso chart:

{{- /*
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
*/ -}}

Suggested change
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
{{- /*
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
*/ -}}


apiVersion: v1
kind: Pod
metadata:
Expand Down
3 changes: 3 additions & 0 deletions test/integration/charts/postgresql/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

# Default values for postgresql.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

terraform {
required_providers {
helm = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

terraform {
required_providers {
aws = {
Expand Down
3 changes: 3 additions & 0 deletions test/integration/vaultdynamicsecret/terraform/xns.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

# Setup for cross namespace auth testing

# sets the group policy application to work with with cross Vault namespace auth
Expand Down
Loading