Skip to content

feat(operator): support configurable curl user-agent for SSI sync - #67

Open
gautamkrishnar wants to merge 1 commit into
spaship:mainfrom
gautamkrishnar:feat/APD-1984
Open

feat(operator): support configurable curl user-agent for SSI sync#67
gautamkrishnar wants to merge 1 commit into
spaship:mainfrom
gautamkrishnar:feat/APD-1984

Conversation

@gautamkrishnar

Copy link
Copy Markdown
Member

Summary

  • Adds operator.sync.user-agent config property to the operator
  • When set, propagates the value to the sidecar via two channels:
    • SIDECAR_SYNC_USER_AGENT key in the sidecar's ConfigMap (persistent across pod restarts)
    • userAgent field injected into the sync JSON payload sent to /api/sync
  • When unset, no changes to existing behavior

Related

Test plan

  • Set operator.sync.user-agent=MyBot/1.0 and trigger a sync — verify SIDECAR_SYNC_USER_AGENT appears in the sidecar ConfigMap
  • Verify Akamai/origin sees the custom user-agent during sync crawl
  • Without the property set, verify sync behaves as before

Comment thread src/main/java/io/spaship/operator/service/k8s/Operator.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request operator sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants