-
Notifications
You must be signed in to change notification settings - Fork 56
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
Git source #658
Git source #658
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2 #658 +/- ##
==========================================
+ Coverage 20.66% 26.17% +5.50%
==========================================
Files 25 25
Lines 3769 3947 +178
==========================================
+ Hits 779 1033 +254
+ Misses 2867 2772 -95
- Partials 123 142 +19 ☔ View full report in Codecov by Sentry. |
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.
Looking great, and thanks for using GIT_
vars.
On the topic of SSH known hosts, what's the minimum we need to do? Keep in mind that the user can customize the pu/pu docker image.
I too encountered the "breaking change" you mentioned, when porting the stack configuration code. The "local file" or "local env variable" reference makes little sense now, and would it be interpreted as a reference to the operator pod or to the workspace pod? I think we should flag it as a migration issue, and eventually add validation logic to reject it.
@@ -1016,6 +1002,35 @@ func (sess *StackReconcilerSession) resolveResourceRefAsConfigItem(ctx context.C | |||
} | |||
} | |||
|
|||
// resolveResourceRef reads a referenced object and returns its value as a string. | |||
func (sess *StackReconcilerSession) resolveResourceRef(ctx context.Context, ref *shared.ResourceRef) (string, error) { |
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.
Hopefully we can remove this method, and defer resolution of the value to the workspace pod. In other words the operator shouldn't see the resolved value.
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.
Discussed offline - operator needs to resolve these in order to poll the remote for latest commit.
I removed this TODO. Instead of accepting whatever the host's key is currently, we should encourage the user to customize the workspace with a custom mount containing the expected keys. |
@@ -16,7 +26,6 @@ import ( | |||
"github.com/pulumi/pulumi/sdk/v3/go/auto" |
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.
Odd to see auto
imported here. Would have expected the autov1alpha package.
(are these tests obsolete?)
Open questions:
Summary of changes so far:
Removed code forgitAuthSecret
since it was marked deprecated in v1.Fixes #655