Skip to content

Conversation

@lmilleri
Copy link
Member

@lmilleri lmilleri commented May 17, 2024

  1. Volume functions moved to new file volumes.go
  2. First create all the volumes and then decide which container should mount it as volumeMount.
    The code should be more readable and flexible.

@lmilleri lmilleri requested a review from bpradipt May 17, 2024 16:34
@bpradipt
Copy link
Member

@lmilleri can you create a new PR related to code refactoring? We can get that merged first and then review this one related to running trustee as non-privileged container

@lmilleri lmilleri changed the title Run trustee as non-privileged container Volume and volumeMount refactoring May 20, 2024
}

// RunAsUser (root) 0
runAsUser := int64(0)
Copy link
Member

Choose a reason for hiding this comment

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

This should be in a separate PR

Copy link
Member Author

Choose a reason for hiding this comment

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

actually I didn't remove those lines, you can find them at line 424

lmilleri added 2 commits May 20, 2024 16:12
Added volumes.go

Signed-off-by: Leonardo Milleri <[email protected]>
First create all the volumes and then decide which
container should mount it as volumeMount.
The code should be more readable and flexible.

Signed-off-by: Leonardo Milleri <[email protected]>
Copy link
Member

@bpradipt bpradipt left a comment

Choose a reason for hiding this comment

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

/lgtm

@bpradipt bpradipt merged commit 2e15a63 into confidential-containers:main May 21, 2024
lmilleri pushed a commit to lmilleri/trustee-operator that referenced this pull request Jul 26, 2024
…references/main

chore(deps): update konflux references to f951900
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.

2 participants