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

[collector] provide support for windows #792

Closed
wants to merge 1 commit into from

Conversation

povilasv
Copy link
Contributor

@povilasv povilasv commented May 23, 2023

Allow users to set isWindows flag to true, which will configure mounts and various presets to use windows paths.

This change will also add a new node selector for all existing users:

      nodeSelector:
        kubernetes.io/os: linux

AFAIK this shouldn't be breaking change?

Added example with windows:

@povilasv povilasv marked this pull request as ready for review May 23, 2023 11:42
@povilasv povilasv requested review from a team, dmitryax and TylerHelmuth as code owners May 23, 2023 11:42
Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

I'm concerned that we don't have a good way to test this setting since all our CI runs on linux. Were you able to test locally?

Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

I'm concerned that we don't have a good way to test this setting since all our CI runs on linux. Were you able to test locally?

Comment on lines +92 to +94
{{- if not .Values.isWindows }}
root_path: /hostfs
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

This is still needed for windows, just under different path, right?

Copy link
Contributor Author

@povilasv povilasv May 23, 2023

Choose a reason for hiding this comment

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

@povilasv
Copy link
Contributor Author

povilasv commented May 23, 2023

I'm concerned that we don't have a good way to test this setting since all our CI runs on linux. Were you able to test locally?

I am testing this in Amazon EKS with Windows nodes together with Linux ones :)

Colleague is also looking to contribute the Docker images in open-telemetry/opentelemetry-collector-releases#339

Really valid concerns. Not sure how feasible is this to do some testing with ci as might be complicated to spin up windows. But can look into this.

@github-actions
Copy link

github-actions bot commented Jun 7, 2023

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 7, 2023
@povilasv
Copy link
Contributor Author

povilasv commented Jun 7, 2023

I've looked at ability to run windows in CI and couldn't find anything that runs out of the box. Maybe this tool could be adapated https://github.com/kubernetes-sigs/sig-windows-dev-tools but it would probably quite a lot of effort.

So closing for now.

@povilasv povilasv closed this Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants