Skip to content

Commit

Permalink
fix: batch/v1beta1 removed in v1.25 (4162)
Browse files Browse the repository at this point in the history
Signed-off-by: LQBing <[email protected]>
  • Loading branch information
LQBing committed Jul 13, 2023
1 parent 72fa6ad commit 5552aed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ export const API_VERSIONS = {
statefulsets: 'apis/apps/v1',
daemonsets: 'apis/apps/v1',
jobs: 'apis/batch/v1',
cronjobs: 'apis/batch/v1beta1',
cronjobs: 'apis/batch/v1',
pods: 'api/v1',
namespaces: 'api/v1',
services: 'api/v1',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/form.templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const getJobTemplate = ({ namespace }) => ({
})

const getCronJobTemplate = ({ namespace }) => ({
apiVersion: 'batch/v1beta1',
apiVersion: 'batch/v1',
kind: 'CronJob',
metadata: {
namespace,
Expand Down

0 comments on commit 5552aed

Please sign in to comment.