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

chore(deps): update chart opentelemetry-operator to 0.79.0 #226

Merged
merged 2 commits into from
Jan 25, 2025
Merged
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
18 changes: 12 additions & 6 deletions .github/workflows/pr-argo-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
id: deployed_apps
run: |
# Extract deployed app names from applicationset.yaml
DEPLOYED_APPS=$(yq eval '.spec.generators[0].list.elements[].name' argocd-apps/applicationset.yaml)
DEPLOYED_APPS=$(yq eval '.spec.generators[0].list.elements[].name' argocd-apps/applicationset.yaml | tr '\n' ' ')
echo "Deployed apps: $DEPLOYED_APPS"
echo "deployed_apps=$DEPLOYED_APPS" >> $GITHUB_OUTPUT

Expand All @@ -35,14 +35,20 @@ jobs:
run: |
git fetch origin
# Extract unique app names from modified paths under k8s-apps
MODIFIED_APPS=$(git diff --name-only origin/main...HEAD | grep '^k8s-apps/' | awk -F'/' '{print $2}' | sort -u)
DEPLOYED_APPS=${{ steps.deployed_apps.outputs.deployed_apps }}
FILTERED_APPS=$(echo "$MODIFIED_APPS" | tr ' ' '\n' | grep -Fx -f <(echo "$DEPLOYED_APPS") || true)
MODIFIED_APPS=$(git diff --name-only origin/main...HEAD | grep '^k8s-apps/' | awk -F'/' '{print $2}' | sort -u | tr '\n' ' ')
echo "Modified apps: $MODIFIED_APPS"

# Get deployed apps from previous step
DEPLOYED_APPS="${{ steps.deployed_apps.outputs.deployed_apps }}"

# Filter modified apps to include only deployed apps
FILTERED_APPS=$(echo "$MODIFIED_APPS" | tr ' ' '\n' | grep -Fx -f <(echo "$DEPLOYED_APPS" | tr ' ' '\n') || true)
echo "Filtered deployed apps: $FILTERED_APPS"

if [ -z "$FILTERED_APPS" ]; then
echo "No deployed apps changed"
echo "apps=" >> $GITHUB_OUTPUT
else
echo "Modified and deployed apps: $FILTERED_APPS"
echo "apps=$FILTERED_APPS" >> $GITHUB_OUTPUT
fi

Expand All @@ -69,7 +75,7 @@ jobs:
--loglevel warn \
--exit-code=false)
if [ -n "$DIFF" ]; then
DIFF_OUTPUT="${DIFF_OUTPUT}\n\n### Diff for $APP:\n\`\`\`diff$DIFF\n\`\`\`"
DIFF_OUTPUT="${DIFF_OUTPUT}\n\n### Diff for $APP:\n\`\`\`diff\n$DIFF\n\`\`\`"
else
DIFF_OUTPUT="${DIFF_OUTPUT}\n\n### Diff for $APP:\nNo changes detected"
fi
Expand Down
2 changes: 1 addition & 1 deletion k8s-apps/opentelemetry-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ version: 0.1.0
dependencies:
- name: opentelemetry-operator
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
version: 0.78.2
version: 0.79.0
Loading