[bitnami/*] Fix license headers (#25447)

This commit is contained in:
Juan Ariza Toledano
2024-04-29 13:20:53 +02:00
committed by GitHub
parent 7f863f3fa4
commit 2d7dca6116
9 changed files with 16 additions and 12 deletions

View File

@@ -58,10 +58,10 @@ jobs:
done <<< "$(echo "$files_changed" | grep -oE "^bitnami/.*\.ya?ml$" | sort | uniq || true)"
if [[ ${#templates[@]} -gt 0 ]] || [[ ${#regular_files[@]} -gt 0 ]]; then
if [[ ${#templates[@]} -gt 0 ]]; then
# There are modifications over yaml tamplates
export tamplates_json=$(printf "%s\n" "${templates[@]}" | jq -R . | jq -cs .)
# There are modifications over yaml templates
export templates_json=$(printf "%s\n" "${templates[@]}" | jq -R . | jq -cs .)
# Overwrite configuration file to analyze only changed templates
yq -i '. | .header[0].paths=env(tamplates_json)' .licenserc.yaml
yq -i '. | .header[0].paths=env(templates_json)' .licenserc.yaml
fi
if [[ ${#regular_files[@]} -gt 0 ]]; then
# There are modifications over yaml files

View File

@@ -1,7 +1,8 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $replicaCount := int .Values.broker.replicaCount }}
{{- if and (gt $replicaCount 0) .Values.broker.autoscaling.hpa.enabled }}
apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }}

View File

@@ -1,7 +1,8 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $replicaCount := int .Values.broker.replicaCount }}
{{- if and (gt $replicaCount 0) (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1/VerticalPodAutoscaler") .Values.broker.autoscaling.vpa.enabled }}
apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }}

View File

@@ -1,7 +1,8 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $replicaCount := int .Values.controller.replicaCount }}
{{- if and .Values.kraft.enabled (gt $replicaCount 0) .Values.controller.autoscaling.hpa.enabled }}
apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }}

View File

@@ -1,7 +1,8 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- $replicaCount := int .Values.controller.replicaCount }}
{{- if and .Values.kraft.enabled (gt $replicaCount 0) (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1/VerticalPodAutoscaler") .Values.controller.autoscaling.vpa.enabled }}
apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }}

View File

@@ -1,5 +1,5 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}
@@ -105,4 +105,4 @@ data:
hostname Router
line vty
log file /etc/frr/frr.log informational
{{- end }}
{{- end }}

View File

@@ -1,5 +1,5 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

View File

@@ -1,5 +1,5 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}

View File

@@ -1,5 +1,5 @@
{{- /*
Copyright VMware, Inc.
Copyright Broadcom, Inc. All Rights Reserved.
SPDX-License-Identifier: APACHE-2.0
*/}}