Skip to content

Conversation

@claudiolor
Copy link
Contributor

Description

When a token of a service account is used as identity for a virtual node, the creation of a shadowpod fails due to the liqo.io/creator-user which contains a string like the following, when the token of a SA is used:
"system:serviceaccount:liqo-tenant-cl01:user01". This PR makes sure that the string is escaped before being written in the label field.

@adamjensenbot
Copy link
Collaborator

Hi @claudiolor. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch (You can add the option test=true to launch the tests
    when the rebase operation is completed)
  • /merge: Merge this PR into the master branch
  • /build Build Liqo components
  • /test Launch the E2E and Unit tests
  • /hold, /unhold Add/remove the hold label to prevent merging with /merge

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • feat: 🚀 New Feature
  • fix: 🐛 Bug Fix
  • refactor: 🧹 Code Refactoring
  • docs: 📝 Documentation
  • style: 💄 Code Style
  • perf: 🐎 Performance Improvement
  • test: ✅ Tests
  • chore: 🚚 Dependencies Management
  • build: 📦 Builds Management
  • ci: 👷 CI/CD
  • revert: ⏪ Reverts Previous Changes

@github-actions github-actions bot added the fix Fixes a bug in the codebase. label May 26, 2025
@claudiolor claudiolor force-pushed the clo/fix-creator-label branch 3 times, most recently from f415031 to d91633b Compare May 26, 2025 14:45
@claudiolor
Copy link
Contributor Author

/build

@claudiolor
Copy link
Contributor Author

/rebase test=true

When a token of a service account is used as identity for a virtual
node, the creation of a shadowpod fails due to the
`liqo.io/creator-user` which contains a string like the following, when
the token of a SA is used:
"system:serviceaccount:liqo-tenant-cl01:user01". This PR make sure
that the string is escaped before being written in the label field.
@adamjensenbot adamjensenbot force-pushed the clo/fix-creator-label branch from d91633b to c84aac6 Compare May 27, 2025 15:10
@claudiolor claudiolor marked this pull request as ready for review May 27, 2025 15:10
@claudiolor claudiolor requested review from aleoli and fra98 and removed request for aleoli May 27, 2025 15:10
@aleoli aleoli merged commit 5351b98 into liqotech:master May 28, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fixes a bug in the codebase. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants