Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

fixes bug so that configmap volumemounts are merged in deployment #1093

Merged
merged 2 commits into from
Nov 8, 2019

Conversation

anaik-zam
Copy link
Contributor

Issue Ref: [#1035]

Description:

Manually merge VolumeMounts in runtime container if defined in configmap.
Mergo doesn't add the VolumeMounts https://github.com/kubeless/kubeless/blob/master/pkg/utils/k8sutil.go#L376
possibly due to this error

cannot use deployment.Spec.Template.Spec.Containers[0].VolumeMounts (type []"k8s.io/api/core/v1".VolumeMount) as type "k8s.io/api/core/v1".VolumeMount in append

TODOs:

  • Ready to review
  • Automated Tests
  • Docs

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @anaik-zam!

You need to format the file with gofmt in order to fix the error in the CI: gofmt -s -w

Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

Great, thanks! If you want to use this before the next release of Kubeless, you can change the tag of the image of the function-controller to latest or the one that will be built by the CI (I will post the full image ID here once that is ready)

@andresmgot andresmgot merged commit e701fe1 into vmware-archive:master Nov 8, 2019
@andresmgot
Copy link
Contributor

The image built in the CI is kubeless/function-controller:build-170d445f-c8b3-48a2-a8ed-93bfe6e9cc39

https://circleci.com/gh/kubeless/kubeless/2693#artifacts/containers/0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants