-
Notifications
You must be signed in to change notification settings - Fork 63
Enabling SUSE buildpacks on Cloud Controller #314
Conversation
deploy/helm/kubecf/assets/operations/buildpacks/set_suse_buildpacks.yaml
Outdated
Show resolved
Hide resolved
deploy/helm/kubecf/assets/operations/buildpacks/set_suse_buildpacks.yaml
Outdated
Show resolved
Hide resolved
In the current state, it fails to push an app with a SUSE buildpack, even though I'm able to see the buildpacks were installed "successfully".
|
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.
Very nice! When I enable the SUSE buildpacks and SLE15 stack, I'm able to successfully deploy an app. If I disable the SUSE buildpacks, on the other hand, things start to fail. Should the SLE15 stack also be disabled if I disable the SUSE buildpacks? Are they tightly coupled? If so, we should control the together, not loosely like we currently have features.suse_buildpacks.enabled
and features.sle15_stack.enabled
.
Please, try with the features enabled/disabled.
…into bisingh/add-suse-buildpacks
@@ -292,5 +292,8 @@ | |||
|
|||
{{- $root := . -}} | |||
{{- range $path, $bytes := .Files.Glob "assets/operations/pre_render_scripts/api_*" }} | |||
{{- if and (not $root.Values.features.suse_buildpacks.enabled) (regexMatch "api_suse-.*?-buildpack" $path ) }} |
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.
This is not very natural to read. How about we split that logic and make it clearer?
{{- if .Values.features.suse_buildpacks.enabled }}
{{- range $path, $bytes := .Files.Glob "assets/operations/pre_render_scripts/api_*" }}
{{- $root.Files.Get $path }}
{{- end }}
{{- else }}
{{- range $path, $bytes := .Files.Glob "assets/operations/pre_render_scripts/api_*" }}
{{- if not (regexMatch "api_suse-.*?-buildpack" $path) }}
{{- $root.Files.Get $path }}
{{- end }}
{{- end }}
{{- end }}
It's longer but easier to read.
@@ -159,7 +155,10 @@ | |||
|
|||
{{- $root := . -}} | |||
{{- range $path, $bytes := .Files.Glob "assets/operations/pre_render_scripts/diego-cell_*" }} | |||
{{- if and (not $root.Values.features.suse_buildpacks.enabled) (regexMatch "diego-cell_sle15-rootfs-setup" $path) }} |
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.
The same idea here as the comment on the other similar code block.
Enabling SUSE buildpacks on Cloud Controller
Description
This PR intends to enable SUSE buildpacks(buildpacks built with SLE stemcell) on the Cloud Controller.
Motivation and Context
This change will make the SUSE buildpacks available to be used in kubecf.
How Has This Been Tested?
Locally on minikube.
Screenshots (if appropriate):
Types of changes
Checklist: