[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)" 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 ]] || [[ ${#regular_files[@]} -gt 0 ]]; then
if [[ ${#templates[@]} -gt 0 ]]; then if [[ ${#templates[@]} -gt 0 ]]; then
# There are modifications over yaml tamplates # There are modifications over yaml templates
export tamplates_json=$(printf "%s\n" "${templates[@]}" | jq -R . | jq -cs .) export templates_json=$(printf "%s\n" "${templates[@]}" | jq -R . | jq -cs .)
# Overwrite configuration file to analyze only changed templates # 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 fi
if [[ ${#regular_files[@]} -gt 0 ]]; then if [[ ${#regular_files[@]} -gt 0 ]]; then
# There are modifications over yaml files # 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 SPDX-License-Identifier: APACHE-2.0
*/}} */}}
{{- $replicaCount := int .Values.broker.replicaCount }} {{- $replicaCount := int .Values.broker.replicaCount }}
{{- if and (gt $replicaCount 0) .Values.broker.autoscaling.hpa.enabled }} {{- if and (gt $replicaCount 0) .Values.broker.autoscaling.hpa.enabled }}
apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }} 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 SPDX-License-Identifier: APACHE-2.0
*/}} */}}
{{- $replicaCount := int .Values.broker.replicaCount }} {{- $replicaCount := int .Values.broker.replicaCount }}
{{- if and (gt $replicaCount 0) (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1/VerticalPodAutoscaler") .Values.broker.autoscaling.vpa.enabled }} {{- if and (gt $replicaCount 0) (.Capabilities.APIVersions.Has "autoscaling.k8s.io/v1/VerticalPodAutoscaler") .Values.broker.autoscaling.vpa.enabled }}
apiVersion: {{ include "common.capabilities.vpa.apiVersion" . }} 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 SPDX-License-Identifier: APACHE-2.0
*/}} */}}
{{- $replicaCount := int .Values.controller.replicaCount }} {{- $replicaCount := int .Values.controller.replicaCount }}
{{- if and .Values.kraft.enabled (gt $replicaCount 0) .Values.controller.autoscaling.hpa.enabled }} {{- if and .Values.kraft.enabled (gt $replicaCount 0) .Values.controller.autoscaling.hpa.enabled }}
apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }} 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 SPDX-License-Identifier: APACHE-2.0
*/}} */}}
{{- $replicaCount := int .Values.controller.replicaCount }} {{- $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 }} {{- 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" . }} 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 SPDX-License-Identifier: APACHE-2.0
*/}} */}}
@@ -105,4 +105,4 @@ data:
hostname Router hostname Router
line vty line vty
log file /etc/frr/frr.log informational 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 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 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 SPDX-License-Identifier: APACHE-2.0
*/}} */}}