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(helm): stop requesting superfluous permissions #693

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

oleobal
Copy link
Contributor

@oleobal oleobal commented Jul 17, 2023

Description

Remove permissions that we think are superfluous.

(this was split from #671)

How has this been tested?

⬇️ (sufficient, I hope)

Checklist

  • changelog was updated with notable changes
  • documentation was updated

@oleobal
Copy link
Contributor Author

oleobal commented Jul 17, 2023

/e2e --tests sdk,substrafl,frontend

@Owlfred
Copy link

Owlfred commented Jul 17, 2023

End to end tests: ❌ FAILURE

Jobs status:

  • Camelyon: ⏭️
  • Distributed / distributed-sdk,substrafl,frontend:
  • MNIST: ⏭️
  • Standalone / standalone-sdk,substrafl,frontend:

Too bad.

@oleobal
Copy link
Contributor Author

oleobal commented Jul 18, 2023

/e2e --tests sdk,frontend

@Owlfred
Copy link

Owlfred commented Jul 18, 2023

End to end tests: ❌ FAILURE

Jobs status:

  • Camelyon: ⏭️
  • Distributed / distributed-sdk,frontend:
  • MNIST: ⏭️
  • Standalone / standalone-sdk,frontend:

Sorry, try again.

@oleobal
Copy link
Contributor Author

oleobal commented Jul 18, 2023

/e2e --tests sdk

@Owlfred
Copy link

Owlfred commented Jul 18, 2023

End to end tests: ✔️ SUCCESS

Copy link
Contributor

@SdgJlbl SdgJlbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a process to ensure that the helm chart version is the right one? 🤔

@oleobal
Copy link
Contributor Author

oleobal commented Jul 18, 2023

@SdgJlbl

Do we have a process to ensure that the helm chart version is the right one? 🤔

Sort of, the CI checks the proposed version doesn't already exist on the repo: https://github.com/Substra/substra-backend/blob/main/.github/workflows/helm.yml#L41

but that's it

@@ -20,9 +20,12 @@ rules:
resources: ["secrets"]
verbs: ["get", "watch", "list", "create", "update", "patch"]
Copy link
Contributor

@guilhem-barthes guilhem-barthes Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need "create", "update", "patch" on secrets? It looks like this Role just use read access on secret

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not, now you put it like this

verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["batch", "extensions"]
- apiGroups: ["batch"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually use batch jobs in the worker?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know 😅

Copy link
Contributor Author

@oleobal oleobal Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ctrl+F-ing batch in the code base would lead my to believe we don't

No, jobs is part of the batch kubernetes API group so that is normal

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But do we need to run jobs in the worker? I thought we just ran pods :x

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To the best of my knowledge, we don't use K8s Jobs currently

@oleobal
Copy link
Contributor Author

oleobal commented Aug 14, 2023

/e2e --tests sdk,substrafl,frontend

@Owlfred
Copy link

Owlfred commented Aug 14, 2023

End to end tests: ✔️ SUCCESS

That was easy.

@oleobal oleobal marked this pull request as ready for review August 16, 2023 09:00
@oleobal oleobal requested a review from a team as a code owner August 16, 2023 09:00
@oleobal oleobal merged commit d9d7b70 into main Aug 16, 2023
9 checks passed
@oleobal oleobal deleted the chore/k8s-permissions branch August 16, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants