Skip to content

Commit

Permalink
date check
Browse files Browse the repository at this point in the history
Signed-off-by: epolon <epolon@amazon.com>
  • Loading branch information
iliapolo committed Sep 10, 2024
1 parent b4f2fe2 commit 8caf00b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { yellow } from 'colors';
import { yellow, red } from 'colors';
import * as yargs from 'yargs';
import { upgradeAvailable } from '../upgrades';

console.warn(yellow('⚠️ Version 1.x of the cdk8s toolchain is deprecated and will become end-of-life on 01/01/25.'));
console.warn(yellow('We strongly recommend migrating to 2.x. See https://cdk8s.io/docs/latest/migrating-from-1.x/'));
if (new Date() < new Date('2025-01-01')) {
console.warn(yellow('⚠️ Version 1.x of the cdk8s toolchain is deprecated and will become end-of-life on 01/01/25.'));
console.warn(yellow('We strongly recommend migrating to 2.x. See https://cdk8s.io/docs/latest/migrating-from-1.x/'));
} else {
console.warn(red('⚠️ Version 1.x of the cdk8s toolchain is end-of-life (since 01/01/25).'));
console.warn(red('We strongly recommend migrating to 2.x. See https://cdk8s.io/docs/latest/migrating-from-1.x/'));
}

async function main() {
const ya = yargs
Expand Down

0 comments on commit 8caf00b

Please sign in to comment.