sparse-spring-91820
11/24/2022, 8:20 AMError: Failed to parse kubectl version JSON output
but when I run it locally it works. This happened after I update some of the circleci orbs and pulumi plugins to the newest versions:
// circleci config
orbs:
node: circleci/node@4.5.1
aws-cli: circleci/aws-cli@3.1.3
aws-ecr: circleci/aws-ecr@7.0.0
pulumi: pulumi/pulumi@2.1.0
shellcheck: circleci/shellcheck@2.2.4
kubernetes: circleci/kubernetes@1.3.1
// package.json
"dependencies": {
"@pulumi/aws": "^5.21.1",
"@pulumi/awsx": "^0.40.1",
"@pulumi/eks": "^0.42.7",
"@pulumi/kubernetes": "^3.22.1",
"@pulumi/pulumi": "^3.47.2"
}
When I see output from pulumi program inside circleci it looks something like this:
Outputs:
- cidr : "10.0.0.0/16"
- provider : {
- id : "some-id"
- kubeconfig: (json) {
- apiVersion : "v1"
- clusters : [
...
But by running it locally I have output in this format:
cidr : "10.0.0.0/16"
provider : {
id : "some-id"
kubeconfig: (json) {
apiVersion : "v1"
clusters : [
[0]: {
cluster: {
...
It looks to me that error is thrown because of different output format, but how to change it?
This is my pulumi program output:
module.exports = {
vpcId: vpc.id,
publicSubnetIds: pulumi.output(vpc.publicSubnetIds),
privateSubnetIds: pulumi.output(vpc.privateSubnetIds),
cidr: vpc.vpc.cidrBlock,
provider: cluster.provider
};
Before updating orbs and pulumi plugins I didn’t have this issue, output was the same both locally and on circleci but I had to update plugins because I was receiving: Kubeconfig user entry is using deprecated API version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>. Run 'aws eks update-kubeconfig' to update.
error so I had to make update
Does anyone know what is the issue?
Thanks in advance 🙌billowy-army-68599
11/24/2022, 3:21 PMsparse-spring-91820
11/26/2022, 4:45 PMError: Failed to parse kubectl version JSON output