-
Notifications
You must be signed in to change notification settings - Fork 404
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
Enable caching in Serverless and disable colors in logs #8369
Conversation
🥰 Documentation preview ready! 🥰 Built with commit 3b41ca0 https://deploy-preview-8369--kyma-project-docs-preview.netlify.app |
have a look at https://github.com/GoogleContainerTools/kaniko#--log-format |
Yup, I know. I created this PR to generate image :P screens are from changes in |
I'm not sure if we should configure Let's leave as it is for now. |
@@ -88,7 +88,7 @@ func (r *FunctionReconciler) buildJob(instance *serverlessv1alpha1.Function, con | |||
{ | |||
Name: "executor", | |||
Image: r.config.Build.ExecutorImage, | |||
Args: []string{fmt.Sprintf("--destination=%s", imageName), "--insecure", "--skip-tls-verify"}, | |||
Args: append(r.config.Build.ExecutorArgs, fmt.Sprintf("--destination=%s", imageName), "--context=dir:///workspace"), |
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.
--destination
and --context
shouldn't be configurable as it is strictly related to volumes and docker repository...
@@ -24,7 +24,8 @@ type BuildConfig struct { | |||
LimitsMemory string `envconfig:"default=1Gi"` | |||
LimitsMemoryValue resource.Quantity `envconfig:"-"` | |||
RuntimeConfigMapName string `envconfig:"default=dockerfile-nodejs-12"` | |||
ExecutorImage string `envconfig:"default=gcr.io/kaniko-project/executor:v0.19.0"` | |||
ExecutorArgs []string `envconfig:"default=--insecure;--skip-tls-verify;--skip-unused-stages;--log-format=text;--cache=true"` |
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.
--insecure and --skip-tls-verify shouldn't be set from env
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.
Not exactly, this is only valid when our internal docker registry is used
components/function-controller/internal/controllers/serverless/function_controller.go
Outdated
Show resolved
Hide resolved
@@ -100,8 +100,10 @@ containers: | |||
value: 5m | |||
functionRequeueDuration: | |||
value: 5m | |||
functionBuildExecutorArgs: | |||
value: "--insecure,--skip-tls-verify,--skip-unused-stages,--log-format=text,--cache=true" |
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.
see previous comment
Description
Changes proposed in this pull request:
Enable caching - when there are no changes in
package.json
lambda is built in9s
, when there are no changes at all then5s
and sometimes lessDisable colors in output as it is looking ugly in logs
Before:
After:
Unfortunately, the timestamp column is added by UI...