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

Remove support for windows builds #1834

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

tomkennedy513
Copy link
Collaborator

@tomkennedy513 tomkennedy513 commented Feb 26, 2025

With windows support removed from the lifecycle we have no way to build windows builders.

related discussion #1366

@tomkennedy513 tomkennedy513 marked this pull request as ready for review February 26, 2025 22:53
@tomkennedy513 tomkennedy513 requested a review from a team as a code owner February 26, 2025 22:53
Copy link
Collaborator Author

@tomkennedy513 tomkennedy513 left a comment

Choose a reason for hiding this comment

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

Should we blow up if someone tries to create a builder for a windows stack? Along the same line, should we blow up if a build tries to happen on an existing builder that is windows based?

related discussion #1366

Signed-off-by: Tom Kennedy <[email protected]>
Copy link
Contributor

@sambhav sambhav left a comment

Choose a reason for hiding this comment

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

does this mean we can use the core project provided lifecycle images now?

@tomkennedy513
Copy link
Collaborator Author

does this mean we can use the core project provided lifecycle images now?

We have to make a few more changes to use them directly. @natalieparellano has most of a pr adding support for that if you want to help drive it over the line

@jjbustamante
Copy link
Contributor

I believe, after merging this PR we can close the following issues #1131 and #1333, right? @tomkennedy513

@tomkennedy513
Copy link
Collaborator Author

Should we blow up if someone tries to create a builder for a windows stack? Along the same line, should we blow up if a build tries to happen on an existing builder that is windows based?

Added an error and test case if the stack is windows

Copy link
Contributor

@chenbh chenbh left a comment

Choose a reason for hiding this comment

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

We also need an RFC PR for this, mainly so that we can mark https://github.com/buildpacks-community/kpack/blob/main/rfcs/0003-windows-images.md as superseded/reverted

@tomkennedy513
Copy link
Collaborator Author

We also need an RFC PR for this, mainly so that we can mark https://github.com/buildpacks-community/kpack/blob/main/rfcs/0003-windows-images.md as superseded/reverted

Good call

@tomkennedy513 tomkennedy513 force-pushed the rip-out-windows branch 3 times, most recently from b9ad5b3 to 8ffa690 Compare February 28, 2025 16:30
- also clean up unused code

Signed-off-by: Tom Kennedy <[email protected]>
Copy link
Contributor

@chenbh chenbh left a comment

Choose a reason for hiding this comment

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

What do you think about removing the OS field from the BuilderStatus? I'm on the fence as I don't seem much harm either way

type BuilderStatus struct {
corev1alpha1.Status `json:",inline"`
BuilderMetadata corev1alpha1.BuildpackMetadataList `json:"builderMetadata,omitempty"`
Order []corev1alpha1.OrderEntry `json:"order,omitempty"`
Stack corev1alpha1.BuildStack `json:"stack,omitempty"`
LatestImage string `json:"latestImage,omitempty"`
ObservedStackGeneration int64 `json:"observedStackGeneration,omitempty"`
ObservedStoreGeneration int64 `json:"observedStoreGeneration,omitempty"`
OS string `json:"os,omitempty"`
SignaturePaths []CosignSignature `json:"signaturePaths,omitempty"`
}

@tomkennedy513
Copy link
Collaborator Author

What do you think about removing the OS field from the BuilderStatus? I'm on the fence as I don't seem much harm either way

type BuilderStatus struct {
corev1alpha1.Status `json:",inline"`
BuilderMetadata corev1alpha1.BuildpackMetadataList `json:"builderMetadata,omitempty"`
Order []corev1alpha1.OrderEntry `json:"order,omitempty"`
Stack corev1alpha1.BuildStack `json:"stack,omitempty"`
LatestImage string `json:"latestImage,omitempty"`
ObservedStackGeneration int64 `json:"observedStackGeneration,omitempty"`
ObservedStoreGeneration int64 `json:"observedStoreGeneration,omitempty"`
OS string `json:"os,omitempty"`
SignaturePaths []CosignSignature `json:"signaturePaths,omitempty"`
}

Ya I left it because it didn't seem like it caused harm, but if it's only ever going to be Linux, then it probably can be removed

@tomkennedy513
Copy link
Collaborator Author

What do you think about removing the OS field from the BuilderStatus? I'm on the fence as I don't seem much harm either way

type BuilderStatus struct {
corev1alpha1.Status `json:",inline"`
BuilderMetadata corev1alpha1.BuildpackMetadataList `json:"builderMetadata,omitempty"`
Order []corev1alpha1.OrderEntry `json:"order,omitempty"`
Stack corev1alpha1.BuildStack `json:"stack,omitempty"`
LatestImage string `json:"latestImage,omitempty"`
ObservedStackGeneration int64 `json:"observedStackGeneration,omitempty"`
ObservedStoreGeneration int64 `json:"observedStoreGeneration,omitempty"`
OS string `json:"os,omitempty"`
SignaturePaths []CosignSignature `json:"signaturePaths,omitempty"`
}

Ya I left it because it didn't seem like it caused harm, but if it's only ever going to be Linux, then it probably can be removed

@chenbh One issue is that it's technically a breaking change in the api if we remove 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.

4 participants