purple-plumber-90981
06/02/2021, 1:06 AMFile "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py", line 121, in __init__
__self__._internal_init(resource_name, *args, **kwargs)
TypeError: _internal_init() got an unexpected keyword argument 'status'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
details in thread, help please10:54:34 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure$ helm install aws-load-balancer-controller eks/aws-load-balancer-controller --set clusterName=itplat-eks-cluster -n kube-system
NAME: aws-load-balancer-controller
LAST DEPLOYED: Wed Jun 2 10:55:14 2021
NAMESPACE: kube-system
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
AWS Load Balancer controller installed!
10:55:33 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure$ helm list -n kube-system
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
aws-load-balancer-controller kube-system 1 2021-06-02 10:55:14.608507 +1000 AEST deployed aws-load-balancer-controller-1.2.0 v2.2.0
10:55:46 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure$ helm uninstall aws-load-balancer-controller -n kube-system
release "aws-load-balancer-controller" uninstalled
# # setup aws-load-balancer-controller (ALB) via helm
k8s_h_alb_controller = k8s.helm.v3.Chart(
"itplat-helm-alb-controller",
k8s.helm.v3.ChartOpts(
chart="aws-load-balancer-controller",
fetch_opts=k8s.helm.v3.FetchOpts(
repo="<https://aws.github.io/eks-charts>",
),
namespace='kube-system',
values={
"clusterName": "itplat-eks-cluster"
},
),
opts=pulumi.ResourceOptions(depends_on=[eks_cluster], provider=k8s_use1_provider),
)
error: Program failed with an unhandled exception:
File "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi/output.py", line 384, in gather_futures
return await asyncio.gather(*value_futures_list)
File "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi/output.py", line 116, in get_value
val = await self._future
File "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi/output.py", line 157, in run
value = await self._future
File "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi/output.py", line 178, in run
transformed: Input[U] = func(value)
File "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi_kubernetes/yaml.py", line 519, in <lambda>
CustomResourceDefinition(f"{x}", opts, **obj)))]
File "/Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py", line 121, in __init__
__self__._internal_init(resource_name, *args, **kwargs)
TypeError: _internal_init() got an unexpected keyword argument 'status'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
# for <https://github.com/pulumi/pulumi-kubernetes/issues/800>
def remove_status(obj, opts):
if obj["kind"] == "CustomResourceDefinition":
del obj["status"]
# setup aws-load-balancer-controller (ALB) via helm
k8s_h_alb_controller = k8s.helm.v3.Chart(
"itplat-helm-alb-controller",
k8s.helm.v3.ChartOpts(
chart="aws-load-balancer-controller",
fetch_opts=k8s.helm.v3.FetchOpts(
repo="<https://aws.github.io/eks-charts>",
),
namespace='kube-system',
transformations=[remove_status],
values={
"clusterName": "itplat-eks-cluster"
},
),
opts=pulumi.ResourceOptions(depends_on=[eks_cluster], provider=k8s_use1_provider),
)
gets me
AssertionError: Unexpected type. Expected 'dict' got 'typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any], typing.Awaitable[typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any]]], pulumi.output.Output[~T], NoneType]'
anyone got a pythonic example of remote chart transformations ?billowy-army-68599
purple-plumber-90981
06/02/2021, 3:38 AMbillowy-army-68599
purple-plumber-90981
06/02/2021, 3:41 AMAssertionError: Unexpected type. Expected 'dict' got 'typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any], typing.Awaitable[typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any]]], pulumi.output.Output[~T], NoneType]'
AssertionError: Unexpected type. Expected 'dict' got 'typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any], typing.Awaitable[typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any]]], pulumi.output.Output[~T], NoneType]'
error: an unhandled error occurred: Program exited with non-zero exit code: 1
for obj type <class 'dict'> with kind CustomResourceDefinition
-================-
-===-
-================-
for obj type <class 'dict'> with kind CustomResourceDefinition
-================-
-===-
-================-
for obj type <class 'dict'> with kind ServiceAccount
-================-
-===-
-================-
for obj type <class 'dict'> with kind Secret
-================-
-===-
-================-
for obj type <class 'dict'> with kind ClusterRole
-================-
-===-
-================-
for obj type <class 'dict'> with kind ClusterRoleBinding
-================-
-===-
-================-
for obj type <class 'dict'> with kind Role
-================-
-===-
-================-
for obj type <class 'dict'> with kind RoleBinding
-================-
-===-
-================-
for obj type <class 'dict'> with kind Service
-================-
-===-
-================-
for obj type <class 'dict'> with kind Deployment
-================-
-===-
-================-
for obj type <class 'dict'> with kind MutatingWebhookConfiguration
-================-
-===-
-================-
for obj type <class 'dict'> with kind ValidatingWebhookConfiguration
-================-
-===-
-================-
values={
"clusterName": "itplat-eks-cluster"
},
billowy-army-68599
purple-plumber-90981
06/02/2021, 3:55 AMbillowy-army-68599
pip list
inside your virtualenvpurple-plumber-90981
06/02/2021, 3:57 AM_eks$ ls -lad ~/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi_kubernetes-*
drwxr-xr-x 7 bmeehan staff 224 22 Apr 14:18 /Users/bmeehan/repos/itplat-pulumi-infrastructure/.venv/lib/python3.8/site-packages/pulumi_kubernetes-3.0.0.dist-info
pulumi 3.3.1
pulumi-aws 4.6.0
pulumi-eks 0.30.0
pulumi-kubernetes 3.0.0
billowy-army-68599
purple-plumber-90981
06/02/2021, 4:05 AMpulumi up
AssertionError: Unexpected type. Expected 'dict' got 'typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any], typing.Awaitable[typing.Union[pulumi_kubernetes.apiextensions.v1._inputs.JSONSchemaPropsArgs, typing.Sequence[typing.Any]]], pulumi.output.Output[~T], NoneType]'
pulumi 3.3.1
pulumi-aws 4.6.0
pulumi-eks 0.30.0
pulumi-kubernetes 3.1.0
billowy-army-68599
Pulumi.yaml
?purple-plumber-90981
06/02/2021, 4:14 AM14:11:06 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure/src/aws_eks$ cat ../../Pulumi.yaml
name: itplat-pulumi-infrastructure
runtime:
name: python
options:
virtualenv: .venv
description: IT Platform Engineering Infrastructure_as_code
14:14:34 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure/src/aws_eks$
14:14:34 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure/src/aws_eks$ cat Pulumi.yaml
name: aws_eks
runtime:
name: python
options:
virtualenv: ../../.venv
description: ITPlat AWS EKS infrastructure
14:15:19 bmeehan@_C02WD05DHTDG:~/repos/itplat-pulumi-infrastructure/src/aws_eks$
billowy-army-68599
source ../../.venv/bin/activate
pip3 list
it has the correct deps?purple-plumber-90981
06/02/2021, 4:17 AMpulumi 3.0.0
pulumi-aws 4.0.0
pulumi-eks 0.30.0
pulumi-kubernetes 3.0.0
billowy-army-68599
purple-plumber-90981
06/02/2021, 4:26 AM