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

Some code fixes and getting proper restricted kubeconfig structs #2

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

PrimalPimmy
Copy link
Member

This PR involves improving the process of generating restricted kubeconfigs for the spire-server to pick up

@PrimalPimmy
Copy link
Member Author

Other PRs will follow for fixing:

  • Writing of secrets to another vault folder
  • Push updated bundle by watching for it

nephio-project#779 

Main change here was to remove the use of the replace directive for
porch in the go.mod files.
Update the import paths.
Minor code updates.
Update the other dependencies to satisfy the existing codebase.
@PrimalPimmy PrimalPimmy force-pushed the spire-fixes branch 3 times, most recently from 26c7d74 to 2880aa9 Compare August 2, 2024 03:42
efiacor and others added 7 commits August 2, 2024 11:03
Change approval controller PR Get to hit the api directly instead of
reading from local cache.
Adjust the reque duration to prevent race condition.

During debugging the approval delay issue reported
[here](nephio-project#462) it became
apparent that the packagerev being fetched was a cached version which
didn't get updated for quite some time.
To circumvent this, we are retrieving the PR using the apiReader
interface which bypasses the local cache and hits the k8s api directly.
…ephio-project#525)

Solves nephio-project#493 
These changes will ensure we have nf deploy fn to apply de dupulication
logic to NF Deploy Param Ref

1. Changes to Add Dependency to check if it already exist before adding.
Thanks @gvbalaji for the code snippet in chat.
2. Added test cases to handle dependency, if same file is present
multiple times. Its not in our use case, but its better to add that too.
3. Added changes to pipeline tests to ensure, if I run the NF Deploy Fn
multiples after that, it doesn't break the idempotency principle.
Update pkgrev.get to use api Reader to bypass cache
Additional logging
Update kyaml versions to sync with porch version
efiacor and others added 6 commits September 18, 2024 07:19
There were some build fails that slipped trough tests resulting in
broken build. Enabling 'always_run' as those are not long-running, just
to be on safe side.
Signed-off-by: PrimalPimmy <[email protected]>

minor fix

Signed-off-by: PrimalPimmy <[email protected]>

Cluster reconciler

Signed-off-by: PrimalPimmy <[email protected]>

Cluster reconciler

Signed-off-by: PrimalPimmy <[email protected]>

sending bundle to remote cluster

Signed-off-by: PrimalPimmy <[email protected]>

Test

Signed-off-by: PrimalPimmy <[email protected]>

Spire auth inside reconciler

Signed-off-by: PrimalPimmy <[email protected]>

Vault authentication and fetching kubeconfig

Signed-off-by: PrimalPimmy <[email protected]>

Some testing

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing-2

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing-2

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing-2

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing-3

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing-3

Signed-off-by: PrimalPimmy <[email protected]>

Mid testing-3

Signed-off-by: PrimalPimmy <[email protected]>

Refactoring

Signed-off-by: PrimalPimmy <[email protected]>

Kubeconfig test

Signed-off-by: PrimalPimmy <[email protected]>

Removed found

Signed-off-by: PrimalPimmy <[email protected]>

log testing

Signed-off-by: PrimalPimmy <[email protected]>

log testing

Signed-off-by: PrimalPimmy <[email protected]>

log testing

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid-2

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid-2

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid-3

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid-4

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid-5

Signed-off-by: PrimalPimmy <[email protected]>

Getting svid-6

Signed-off-by: PrimalPimmy <[email protected]>

Vault addr and patch configmap

Signed-off-by: PrimalPimmy <[email protected]>

Vault addr and patch configmap

Signed-off-by: PrimalPimmy <[email protected]>

Restricted Kubeconfig

Signed-off-by: PrimalPimmy <[email protected]>

configmap perms

Signed-off-by: PrimalPimmy <[email protected]>

server addr

Signed-off-by: PrimalPimmy <[email protected]>

Struct to yaml

Signed-off-by: PrimalPimmy <[email protected]>

Struct to yaml

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

Reverting changes

Signed-off-by: PrimalPimmy <[email protected]>

yaml indent fixing

Signed-off-by: PrimalPimmy <[email protected]>

yaml indent fixing

Signed-off-by: PrimalPimmy <[email protected]>

yaml indent fixing

Signed-off-by: PrimalPimmy <[email protected]>

Some cleanup

Signed-off-by: PrimalPimmy <[email protected]>

Some cleanup

Signed-off-by: PrimalPimmy <[email protected]>

Debugging

Signed-off-by: PrimalPimmy <[email protected]>

Debugging

Signed-off-by: PrimalPimmy <[email protected]>

Debugging

Signed-off-by: PrimalPimmy <[email protected]>

Debugging

Signed-off-by: PrimalPimmy <[email protected]>

vault storage change

Signed-off-by: PrimalPimmy <[email protected]>

Added kubeconfig change

Signed-off-by: PrimalPimmy <[email protected]>

Spire-agent conf, vault testing

Signed-off-by: PrimalPimmy <[email protected]>

Spire-agent conf, vault testing

Signed-off-by: PrimalPimmy <[email protected]>

Spire-agent conf, vault testing

Signed-off-by: PrimalPimmy <[email protected]>

Spire-agent conf, vault testing

Signed-off-by: PrimalPimmy <[email protected]>

module testing

Signed-off-by: PrimalPimmy <[email protected]>

revert module change

Signed-off-by: PrimalPimmy <[email protected]>

Vault JWT role detect

Signed-off-by: PrimalPimmy <[email protected]>

Vault JWT role detect

Signed-off-by: PrimalPimmy <[email protected]>

Vault JWT role detect-2

Signed-off-by: PrimalPimmy <[email protected]>
Signed-off-by: PrimalPimmy <[email protected]>
Signed-off-by: PrimalPimmy <[email protected]>
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.

5 participants