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

Move internal registry reference to scenario to avoid loosing abstraction in component #630

Closed
wants to merge 2 commits into from

Conversation

KevinFairise2
Copy link
Member

What does this PR do?

Partially revert #602 and make some changes to be able to make existing scenari use the image built in the CI when pipeline ID and commit SHA are defined

Which scenarios this will impact?

docker, kind, eks

Motivation

Avoid loosing the abstraction on components. Components should not be coupled with Cloud Provider

Additional Notes

@KevinFairise2 KevinFairise2 requested a review from a team as a code owner February 16, 2024 10:39
@@ -32,7 +31,7 @@ import (
// [Functional options pattern]: https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis

type Params struct {
// FullImagePath is the full path of the docker agent image to use.
// AgentFullImagePath is the full path of the docker agent image to use.
// It has priority over ImageTag and Repository.
FullImagePath string
Copy link
Contributor

Choose a reason for hiding this comment

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

❓ question
Should you change the param name too ?

@@ -27,7 +27,7 @@ type K8sComponent struct {
pulumi.ResourceState
}

func K8sAppDefinition(e config.CommonEnvironment, kubeProvider *kubernetes.Provider, namespace string, fakeIntake *fakeintake.Fakeintake, kubeletTLSVerify bool, clusterName string, opts ...pulumi.ResourceOption) (*K8sComponent, error) {
func K8sAppDefinition(e config.CommonEnvironment, kubeProvider *kubernetes.Provider, namespace string, fakeIntake *fakeintake.Fakeintake, kubeletTLSVerify bool, clusterName string, fullImagePath string, opts ...pulumi.ResourceOption) (*K8sComponent, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

💭 thought
Not related to this PR, wonder if we should move the long signature to a struct defining all params

@dd-devflow dd-devflow bot deleted the kfairise/handle_pipeline_id_dock branch August 17, 2024 00:00
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