Changed requiredSecrets to defaultSecrets

This commit is contained in:
2025-12-30 00:03:31 +00:00
parent 2684c46de4
commit 8d62d65d6f
20 changed files with 35 additions and 35 deletions

View File

@@ -63,14 +63,14 @@ deploy_secrets() {
local app_name="$1"
local target_namespace="${2:-${app_name}}" # Default to app name if not specified
# Check if app has a manifest with requiredSecrets
# Check if app has a manifest with defaultSecrets
local manifest_file="apps/${app_name}/manifest.yaml"
if [ ! -f "${manifest_file}" ]; then
return 0
fi
# Check if there are required secrets defined
if ! yq eval '.requiredSecrets' "${manifest_file}" | grep -q -v '^null$'; then
if ! yq eval '.defaultSecrets' "${manifest_file}" | grep -q -v '^null$'; then
return 0
fi
@@ -89,7 +89,7 @@ deploy_secrets() {
echo "Error: Required secret '${secret_path}' not found in ${SECRETS_FILE} for app '${app_name}'"
exit 1
fi
done < <(yq eval '.requiredSecrets[]' "${manifest_file}")
done < <(yq eval '.defaultSecrets[]' "${manifest_file}")
# Create/update app secret in cluster
if [ -n "${secret_data}" ]; then