java icon indicating copy to clipboard operation
java copied to clipboard

Utility code to create configmap from multiple files in a directory?

Open pravindamodaran opened this issue 6 years ago • 6 comments

I'm looking to create configmap from a directory (basically add all files in the directory to a single configmap), same as this: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#create-configmaps-from-directories

Is there a way to do it using java api's?

pravindamodaran avatar Jul 31 '20 08:07 pravindamodaran

You will have to do it yourself. Create a V1ConfigMap object and then read the files in and add them to the binaryData field in the ConfigMap resource.

There's no utility to do this currently (though we'd gladly take a PR to add such utility)

brendandburns avatar Aug 03 '20 04:08 brendandburns

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle stale

fejta-bot avatar Nov 01 '20 05:11 fejta-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten

fejta-bot avatar Dec 01 '20 06:12 fejta-bot

@brendandburns - does this still require work?

sarveshkaushal avatar Dec 08 '20 20:12 sarveshkaushal

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close

fejta-bot avatar Jan 07 '21 20:01 fejta-bot

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Jan 07 '21 20:01 k8s-ci-robot