-
Notifications
You must be signed in to change notification settings - Fork 101
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
Support user-provided NSFSAccountConfig when creating OBCs #1342
Merged
Neon-White
merged 26 commits into
noobaa:master
from
Neon-White:pass-nsfs-cfg-in-obc-creation
May 15, 2024
Merged
Support user-provided NSFSAccountConfig when creating OBCs #1342
Neon-White
merged 26 commits into
noobaa:master
from
Neon-White:pass-nsfs-cfg-in-obc-creation
May 15, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
romayalon
requested changes
Apr 15, 2024
Neon-White
force-pushed
the
pass-nsfs-cfg-in-obc-creation
branch
from
April 17, 2024 11:57
eb29062
to
489e540
Compare
Neon-White
force-pushed
the
pass-nsfs-cfg-in-obc-creation
branch
from
April 25, 2024 07:29
771e822
to
07111b1
Compare
romayalon
reviewed
Apr 25, 2024
Neon-White
force-pushed
the
pass-nsfs-cfg-in-obc-creation
branch
from
May 8, 2024 09:43
62f8200
to
2f36728
Compare
romayalon
reviewed
May 8, 2024
Neon-White
force-pushed
the
pass-nsfs-cfg-in-obc-creation
branch
from
May 8, 2024 15:19
de1dea6
to
f18c606
Compare
…nJSON` function - Add CLI support for passing an NSFS configuration - Pass NsfsAccountConfig to `CreateAccountAPI` when creating a new OBC - Add NSFS account config validation Signed-off-by: Ben <[email protected]>
- Cater to linter Signed-off-by: Ben <[email protected]>
- Add operator support for distinguished_name Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
- Always default to NSFS-only account creation when creating NSFS OBCs - Recapitalize `nsfsAccountConfig` to adhere to style Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
- Force all NSFS OBCs to be NSFS-only, and to not accept any value for `new_buckets_path` Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
- Change UID and GID in `AccountNsfsConfig` to be pointers to allow us to pass 0-values to the core - Revamp validations - Add CLI tests Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Neon-White
force-pushed
the
pass-nsfs-cfg-in-obc-creation
branch
from
May 13, 2024 06:46
c13eeb0
to
a6bfdbe
Compare
Signed-off-by: Ben <[email protected]>
- Use correct controller-gen output - Improve OBC docs - Change CLI `distinguished-name` check to be consistent with other `distinguished-name` checks - Add `CreateAccountAPI` clarifications for posterity - Uncomment tests - Validate case where YAMLs are supplied with an NSFS config but without UID/GID/DN Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
- Add bucketclass check Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
Signed-off-by: Ben <[email protected]>
romayalon
approved these changes
May 15, 2024
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.
approved :)
please don't forget to squash the commits before merge :)
liranmauda
pushed a commit
to liranmauda/noobaa-operator
that referenced
this pull request
Sep 9, 2024
Support user-provided NSFSAccountConfig when creating OBCs Refactor LoadBucketReplicationJSON to a generic LoadConfigurationJSON function Add CLI support for passing an NSFS configuration Pass NsfsAccountConfig to CreateAccountAPI when creating a new OBC Add NSFS account config validation Add distinguished_name support Convert NsfsAccountConfig's GID and UID properties to be pointers to support a 0-value without omitempty getting rid of them Fix bug that wouldn't allow setting UID/GID to 0 Signed-off-by: Ben <[email protected]> (cherry picked from commit fa6f6e4)
liranmauda
pushed a commit
to liranmauda/noobaa-operator
that referenced
this pull request
Sep 9, 2024
Support user-provided NSFSAccountConfig when creating OBCs Refactor LoadBucketReplicationJSON to a generic LoadConfigurationJSON function Add CLI support for passing an NSFS configuration Pass NsfsAccountConfig to CreateAccountAPI when creating a new OBC Add NSFS account config validation Add distinguished_name support Convert NsfsAccountConfig's GID and UID properties to be pointers to support a 0-value without omitempty getting rid of them Fix bug that wouldn't allow setting UID/GID to 0 Signed-off-by: Ben <[email protected]> (cherry picked from commit fa6f6e4) Signed-off-by: liranmauda <[email protected]>
liranmauda
pushed a commit
to liranmauda/noobaa-operator
that referenced
this pull request
Sep 11, 2024
Support user-provided NSFSAccountConfig when creating OBCs Refactor LoadBucketReplicationJSON to a generic LoadConfigurationJSON function Add CLI support for passing an NSFS configuration Pass NsfsAccountConfig to CreateAccountAPI when creating a new OBC Add NSFS account config validation Add distinguished_name support Convert NsfsAccountConfig's GID and UID properties to be pointers to support a 0-value without omitempty getting rid of them Fix bug that wouldn't allow setting UID/GID to 0 Signed-off-by: Ben <[email protected]> (cherry picked from commit fa6f6e4)
liranmauda
pushed a commit
to liranmauda/noobaa-operator
that referenced
this pull request
Sep 11, 2024
Support user-provided NSFSAccountConfig when creating OBCs Refactor LoadBucketReplicationJSON to a generic LoadConfigurationJSON function Add CLI support for passing an NSFS configuration Pass NsfsAccountConfig to CreateAccountAPI when creating a new OBC Add NSFS account config validation Add distinguished_name support Convert NsfsAccountConfig's GID and UID properties to be pointers to support a 0-value without omitempty getting rid of them Fix bug that wouldn't allow setting UID/GID to 0 Signed-off-by: Ben <[email protected]> (cherry picked from commit fa6f6e4) Signed-off-by: liranmauda <[email protected]>
liranmauda
pushed a commit
to liranmauda/noobaa-operator
that referenced
this pull request
Sep 11, 2024
Support user-provided NSFSAccountConfig when creating OBCs Refactor LoadBucketReplicationJSON to a generic LoadConfigurationJSON function Add CLI support for passing an NSFS configuration Pass NsfsAccountConfig to CreateAccountAPI when creating a new OBC Add NSFS account config validation Add distinguished_name support Convert NsfsAccountConfig's GID and UID properties to be pointers to support a 0-value without omitempty getting rid of them Fix bug that wouldn't allow setting UID/GID to 0 Signed-off-by: Ben <[email protected]> (cherry picked from commit fa6f6e4) Signed-off-by: liranmauda <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explain the changes
LoadBucketReplicationJSON
to a genericLoadConfigurationJSON
functionCreateAccountAPI
when creating a new OBCdistinguished_name
supportNsfsAccountConfig
's GID and UID properties to be pointers to support a 0-value withoutomitempty
getting rid of themAll the changes are needed to support a flow where the user creates a new OBC on top of an NSFS namespacestore, and would like to use the OBC's credentials to interact with the bucket
Note:
path
is already supportedIssues: Fixed #xxx / Gap #xxx
Fixes #958
Testing Instructions: