-
Notifications
You must be signed in to change notification settings - Fork 515
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
feat: support for docker buildx k8s driver #3743
Conversation
pkg/pipeline/CiConfig.go
Outdated
@@ -84,6 +84,9 @@ type CiConfig struct { | |||
ImageRetryInterval int `env:"IMAGE_RETRY_INTERVAL" envDefault:"5"` //image retry interval takes value in seconds | |||
OrchestratorHost string `env:"ORCH_HOST" envDefault:"http://devtroncd-orchestrator-service-prod.devtroncd/webhook/msg/nats"` | |||
OrchestratorToken string `env:"ORCH_TOKEN" envDefault:""` | |||
BuildXK8sDriverNamespace string `env:"BUILDX_K8S_DRIVER_NAMESPACE" envDefault:"devtron-ci"` | |||
BuildxK8sDriverNodes string `env:"BUILDX_K8S_DRIVER_NODES"` | |||
UseBuildxK8sDriver bool `env:"USE_BUILDX_K8S_DRIVER" envDefault:"false"` |
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.
can we derive this variable from BuildxK8sDriverNodes
??
pkg/pipeline/bean/CiBuildConfig.go
Outdated
DockerBuildOptions map[string]string `json:"dockerBuildOptions,omitempty"` | ||
BuildContext string `json:"buildContext,omitempty"` | ||
UseBuildx bool `json:"useBuildx"` | ||
UseBuildxK8sDriver bool `json:"useBuildxK8sDriver,omitempty"` |
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.
are we using k8s driver when no UseBuildxK8sDriver
is passed ??
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.
no
pkg/pipeline/bean/CiBuildConfig.go
Outdated
BuildxK8sDriverOptions []BuildxK8sDriverOptions `json:"buildxK8SDriverOptions,omitempty"` | ||
} | ||
|
||
type BuildxK8sDriverOptions struct { |
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.
can we make this generic map, so that if anyone wants to pass new Param, can add that ??
Kudos, SonarCloud Quality Gate passed!
|
Description
added support for docker buildx driver
Fixes #3765
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
Does this PR introduce a user-facing change?