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

fix secrets replacement when okteto build #3051

Merged

Conversation

AdrianPedriza
Copy link
Contributor

@AdrianPedriza AdrianPedriza commented Aug 31, 2022

secrets are not resolved when okteto build runs

Fixes #3044

Proposed changes**

Context: Secrets are resolved once context is loaded so solution to be able to resolve properly secrets inside a manifest is needed to run load context before read a manifest.

  • move loadContext before call GetManifest
  • now loadContext has a general implementation, regardless of the version of the loaded manifest.
  • refactor: moved args checking for manifest v1 once the builder is obtained

@AdrianPedriza AdrianPedriza requested a review from a team August 31, 2022 15:41
@derek derek bot added the no-dco label Aug 31, 2022
@AdrianPedriza AdrianPedriza force-pushed the adrian/fix-secrets-replacement-when-okteto-build branch from 2bc417c to 0551e25 Compare August 31, 2022 15:52
Signed-off-by: adripedriza <adripedriza@gmail.com>
Signed-off-by: adripedriza <adripedriza@gmail.com>
@AdrianPedriza AdrianPedriza force-pushed the adrian/fix-secrets-replacement-when-okteto-build branch from 0551e25 to 8a6da4b Compare August 31, 2022 16:02
@derek derek bot removed the no-dco label Aug 31, 2022
@okteto okteto deleted a comment from derek bot Sep 1, 2022
Signed-off-by: adripedriza <adripedriza@gmail.com>
Signed-off-by: adripedriza <adripedriza@gmail.com>
cmd/build/command.go Outdated Show resolved Hide resolved
cmd/build/command.go Outdated Show resolved Hide resolved
@ifbyol
Copy link
Member

ifbyol commented Sep 1, 2022

Would it makes sense to create an e2e tests for this? (it could be in a follow up PR to unblock the fix)

@AdrianPedriza
Copy link
Contributor Author

Would it makes sense to create an e2e tests for this? (it could be in a follow up PR to unblock the fix)

#3056

… manifest

Signed-off-by: adripedriza <adripedriza@gmail.com>
Signed-off-by: adripedriza <adripedriza@gmail.com>
cmd/build/command.go Outdated Show resolved Hide resolved
@derek derek bot added the no-dco label Sep 2, 2022
Signed-off-by: adripedriza <adripedriza@gmail.com>
@AdrianPedriza AdrianPedriza force-pushed the adrian/fix-secrets-replacement-when-okteto-build branch from 13d86d3 to cb3cd66 Compare September 2, 2022 12:13
@derek derek bot removed the no-dco label Sep 2, 2022
Signed-off-by: adripedriza <adripedriza@gmail.com>
@derek derek bot added the no-dco label Sep 2, 2022
…thub.com:okteto/okteto into adrian/fix-secrets-replacement-when-okteto-build

Signed-off-by: adripedriza <adripedriza@gmail.com>
Signed-off-by: adripedriza <adripedriza@gmail.com>
@AdrianPedriza AdrianPedriza force-pushed the adrian/fix-secrets-replacement-when-okteto-build branch from 413820c to 950516e Compare September 2, 2022 12:34
@derek derek bot removed the no-dco label Sep 2, 2022
@okteto okteto deleted a comment from derek bot Sep 2, 2022
@okteto okteto deleted a comment from derek bot Sep 2, 2022
cmd/build/command.go Outdated Show resolved Hide resolved
cmd/build/command.go Outdated Show resolved Hide resolved
cmd/build/command.go Outdated Show resolved Hide resolved
cmd/build/command.go Outdated Show resolved Hide resolved
Signed-off-by: adripedriza <adripedriza@gmail.com>
cmd/build/command.go Outdated Show resolved Hide resolved
cmd/build/command.go Outdated Show resolved Hide resolved
Signed-off-by: adripedriza <adripedriza@gmail.com>
Signed-off-by: adripedriza <adripedriza@gmail.com>
@AdrianPedriza AdrianPedriza merged commit b51dc85 into master Sep 5, 2022
@AdrianPedriza AdrianPedriza deleted the adrian/fix-secrets-replacement-when-okteto-build branch September 5, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

okteto build is not getting my okteto secrets
4 participants