-
Notifications
You must be signed in to change notification settings - Fork 245
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: add container logs max size to the kubeone API #1644
feat: add container logs max size to the kubeone API #1644
Conversation
/retest |
/retest |
/retest |
pkg/apis/kubeone/v1beta1/types.go
Outdated
@@ -63,6 +63,14 @@ type KubeOneCluster struct { | |||
AssetConfiguration AssetConfiguration `json:"assetConfiguration,omitempty"` | |||
// RegistryConfiguration configures how Docker images are pulled from an image registry | |||
RegistryConfiguration *RegistryConfiguration `json:"registryConfiguration,omitempty"` | |||
// KubeletConfiguration configures the kubelet | |||
KubeletConfiguration KubeletConfiguration `json:"kubeletConfiguration"` |
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.
please don't add this to v1beta1 API, only internal should be in place
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.
I removed it but for some weird reason when I try to run update-codegen. it fails. I will try again and show you.
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.
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.
Try adding the types to the v1beta2 API and then re-run codegen.
Co-authored-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Co-authored-by: Artiom Diomin <artiom@hey.com>
Signed-off-by: nerdeveloper <odirionye@gmail.com>
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.
Some more comments, but we are getting closer and closer.
@@ -88,7 +88,7 @@ cat <<EOF | sudo tee /etc/docker/daemon.json | |||
"storage-driver": "overlay2", | |||
"log-driver": "json-file", | |||
"log-opts": { | |||
"max-size": "100m" | |||
"max-size": "" |
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 you add the LoggingConfig to the function below?
kubeone/pkg/scripts/os_test.go
Lines 91 to 111 in 5f11dec
func genCluster(opts ...genClusterOpts) kubeone.KubeOneCluster { | |
cls := &kubeone.KubeOneCluster{ | |
Versions: kubeone.VersionConfig{ | |
Kubernetes: "1.17.4", | |
}, | |
SystemPackages: &kubeone.SystemPackages{ | |
ConfigureRepositories: true, | |
}, | |
Proxy: kubeone.ProxyConfig{ | |
HTTP: "http://http.proxy", | |
HTTPS: "http://https.proxy", | |
NoProxy: ".local", | |
}, | |
} | |
for _, fn := range opts { | |
fn(cls) | |
} | |
return *cls | |
} |
Co-authored-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Co-authored-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Co-authored-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Co-authored-by: Marko Mudrinić <mudrinic.mare@gmail.com>
Signed-off-by: nerdeveloper <odirionye@gmail.com>
Signed-off-by: nerdeveloper <odirionye@gmail.com>
Signed-off-by: Artiom Diomin <kron82@gmail.com>
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.
/approve
LGTM label has been added. Git tree hash: 43a401d242195bb1d066a720d1fe5da997006e0b
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kron4eg, nerdeveloper The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This allow the user to set container logs maximum size on kubeone and defaults the container logs max size to 100Mi
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #1587
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
YES