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

Is this api supports Kubernetes Cron Job? #770

Closed
amalkasubasinghe opened this issue May 31, 2017 · 8 comments
Closed

Is this api supports Kubernetes Cron Job? #770

amalkasubasinghe opened this issue May 31, 2017 · 8 comments
Assignees
Labels

Comments

@amalkasubasinghe
Copy link

Is this api supports Kubernetes Cron Job?
https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule
If so, someone please share a sample with me.

I want to create Cron Jobs via Java API and get the statistics of it

@ttony
Copy link

ttony commented Nov 30, 2017

I Checked the code, somehow there is model for cronjob however, there is no handler for it. When will this feature available? i am vote for it as well.

@hrishin
Copy link
Member

hrishin commented Dec 27, 2017

Add support for following operations to handle cron jobs:

  • Create cron job
  • Get/List cron job(s)
  • Delete cron job

Tasks:

  • Implement feature code
  • Add unit test

@rohanKanojia rohanKanojia self-assigned this Jul 9, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 10, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 11, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 12, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 12, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 12, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 12, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 13, 2018
rohanKanojia added a commit to rohanKanojia/kubernetes-client that referenced this issue Jul 13, 2018
@pluttrell
Copy link

Just curious if anyone knows when this feature will make it into a release that gets published to maven repos? Thanks!

@rohanKanojia
Copy link
Member

rohanKanojia commented Aug 7, 2018

@pluttrell : Hi, We would be releasing kubernetes-client 4.0.4 in a week or two :)

@chrisjs
Copy link

chrisjs commented Aug 7, 2018

is there a way to use v1beta1 rather than v2alpha1 as in the PR when using the API?

@rohanKanojia
Copy link
Member

rohanKanojia commented Aug 7, 2018

@chrisjs : Um, for now it's being hardcoded here:

public CronJobOperationsImpl(OkHttpClient client, Config config, String namespace) {
this(client, config, "v2alpha1", namespace, null, true, null, null, false, -1, new TreeMap<String, String>(), new TreeMap<String, String>(), new TreeMap<String, String[]>(), new TreeMap<String, String[]>(), new TreeMap<String, String>());
}

Do you any specific usecase in which you need v1beta? I would then have to consider making this somehow configurable.

@chrisjs
Copy link

chrisjs commented Aug 7, 2018

yes, don't want to enable alpha versions. also its deprecated - per the docs Note: CronJob resource in batch/v2alpha1 API group has been deprecated starting from cluster version 1.8. You should switch to using batch/v1beta1, instead, which is enabled by default in the API server. Examples in this document use batch/v1beta1 in all examples.

@rohanKanojia
Copy link
Member

rohanKanojia commented Aug 7, 2018

@chrisjs : ah, I see. Then it makes more sense to have v1beta1 rather than having v2alpha1 . Could you please file an issue for this change so that I doesn't get lost in this chat ;-) ? I'll accomodate this change before doing release, which is probably next week.

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

No branches or pull requests

6 participants