Skip to content

feat: add LogsCollectorEnabled field to KubernetesClusterConfig civo/cli #485 Update fake_client.go - #239

Open
yuvarajrece wants to merge 3 commits into
civo:masterfrom
yuvarajrece:master
Open

feat: add LogsCollectorEnabled field to KubernetesClusterConfig civo/cli #485 Update fake_client.go#239
yuvarajrece wants to merge 3 commits into
civo:masterfrom
yuvarajrece:master

Conversation

@yuvarajrece

@yuvarajrece yuvarajrece commented Mar 29, 2025

Copy link
Copy Markdown

Summary

Adds a LogsCollectorEnabled *bool field to KubernetesClusterConfig so
API consumers (starting with civo/cli) can explicitly enable or disable the
logs collector when creating a Kubernetes cluster.

Used as a pointer so "not set" (nil, omitted from the request) can be
distinguished from an explicit true/false, letting the API's own
default apply when the caller doesn't specify a value.

This is a prerequisite for civo/cli#485, which adds a
--logs-collector-enabled CLI flag and auto-disables the logs collector
by default on standard small/xsmall nodes to save node resources.

Related: civo/cli#485

[Enhancement] Update fake client to match the actual API behaviour for ResizeVolume method #233

Updated ResizeVolume to simulate real API errors like VolumeResizeOnlineError, size constraints, and retry failures.

[Enhancement] Update fake client to match the actual API behaviour for ResizeVolume method civo#233


Updated `ResizeVolume` to simulate real API errors like `VolumeResizeOnlineError`, size constraints, and retry failures.
Added LogsCollectorEnabled field to control logs collector installation.
@yuvarajrece yuvarajrece changed the title Update fake_client.go feat: add LogsCollectorEnabled field to KubernetesClusterConfig Update fake_client.go Jul 26, 2026
@yuvarajrece yuvarajrece changed the title feat: add LogsCollectorEnabled field to KubernetesClusterConfig Update fake_client.go feat: add LogsCollectorEnabled field to KubernetesClusterConfig civo/cli#485 Update fake_client.go Jul 26, 2026
@yuvarajrece yuvarajrece changed the title feat: add LogsCollectorEnabled field to KubernetesClusterConfig civo/cli#485 Update fake_client.go feat: add LogsCollectorEnabled field to KubernetesClusterConfig civo/cli #485 Update fake_client.go Jul 26, 2026
@yuvarajrece

Copy link
Copy Markdown
Author

@alessandroargentieri Kindly review the pr and approve it

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.

1 participant