-
Notifications
You must be signed in to change notification settings - Fork 8
chore: update harbor client to 2.13.0 #238
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
base: main
Are you sure you want to change the base?
Conversation
Coverage report
Show new covered files 🐣
Test suite run success23 tests passing in 4 suites. Report generated by 🧪jest coverage report action from db333ec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments still need to test it.
src/operator/harbor.ts
Outdated
@@ -598,7 +617,7 @@ async function ensureTeamBuildsPushRobotAccount(projectName: string): Promise<an | |||
if (existing?.name) { | |||
const existingId = existing.id | |||
await doApiCall(errors, `Deleting previous build push robot account ${fullName}`, () => | |||
robotApi.deleteRobot(existingId), | |||
robotApi.deleteRobot(existingId!), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can better check if existing.id is there instead of name. Then we also don't need the postfix !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good ✅
This PR updates the Harbor api client to 2.13.0 and makes the code compatible with this version.
Also added all operator related stuff into their own folders.