boundless-angle-56560
09/06/2021, 3:34 PMprehistoric-activity-61023
09/06/2021, 5:02 PMbillowy-army-68599
09/06/2021, 5:10 PMprehistoric-activity-61023
09/06/2021, 5:22 PM# Workaround: <https://github.com/pulumi/pulumi-kubernetes/issues/800>
def remove_status(obj, _):
if obj["kind"] == "CustomResourceDefinition":
del obj["status"]
(that’s a copy&paste from one of my projects)
If so, I was thinking about it but the message doesn’t seem to fit that case.billowy-army-68599
09/06/2021, 5:25 PMboundless-angle-56560
09/06/2021, 8:35 PMapiVersion: <http://apiextensions.k8s.io/v1|apiextensions.k8s.io/v1>
kind: CustomResourceDefinition
metadata:
name: manifests.akash.network
spec:
group: akash.network
scope: Namespaced
names:
plural: manifests
singular: manifest
kind: Manifest
shortNames:
- mani
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
lease_id:
type: object
properties:
owner:
type: string
dseq:
type: string
format: uint64
gseq:
type: integer
oseq:
type: integer
provider:
type: string
group:
type: object
properties:
name:
type: string
services:
type: array
items:
type: object
properties:
name:
type: string
image:
type: string
args:
type: array
items:
type: string
env:
type: array
items:
type: string
unit:
type: object
properties:
cpu:
type: number
format: uint32
memory:
type: string
format: uint64
storage:
type: string
format: uint64
count:
type: number
format: uint64
expose:
type: array
items:
type: object
properties:
port:
type: integer
format: uint16
external_port:
type: integer
format: uint16
proto:
type: string
service:
type: string
global:
type: boolean
hosts:
type: array
items:
type: string
billowy-army-68599
09/06/2021, 9:02 PMprehistoric-activity-61023
09/07/2021, 7:18 AMboundless-angle-56560
09/07/2021, 12:24 PMprehistoric-activity-61023
09/07/2021, 12:59 PM❯ pip freeze | grep pulumi-
pulumi-cloudflare==3.3.0
pulumi-gcp==5.11.0
pulumi-kubernetes==3.5.0
pulumi-random==4.2.0
pulumi-kubernetes
versionboundless-angle-56560
09/07/2021, 1:10 PMprehistoric-activity-61023
09/07/2021, 1:11 PMboundless-angle-56560
09/07/2021, 1:13 PMprehistoric-activity-61023
09/07/2021, 1:21 PMpip freeze | grep pulumi
?boundless-angle-56560
09/07/2021, 1:22 PMprehistoric-activity-61023
09/07/2021, 1:23 PMpip install --upgrade pulumi
boundless-angle-56560
09/07/2021, 1:24 PMprehistoric-activity-61023
09/07/2021, 1:25 PMboundless-angle-56560
09/07/2021, 1:25 PMprehistoric-activity-61023
09/07/2021, 1:25 PMboundless-angle-56560
09/07/2021, 1:26 PMprehistoric-activity-61023
09/07/2021, 1:26 PMrequirements.txt
file so just make sure you use pinned versions there.boundless-angle-56560
09/07/2021, 1:27 PMprehistoric-activity-61023
09/07/2021, 1:27 PMpulumi up
for exampleboundless-angle-56560
09/07/2021, 1:28 PMprehistoric-activity-61023
09/07/2021, 1:28 PMI think this is a common problem in the python worldI wouldn’t say so. There’s an interesting approach here used in pulumi where you have CLI tool (pulumi binary) as well as some programming lang environment (e.g. python but it might be js as well) and these two pieces must communicate with each other.
boundless-angle-56560
09/07/2021, 1:30 PMprehistoric-activity-61023
09/07/2021, 1:31 PMpulumi
as python dependency). If it’s possible to have “version conflicts”, we should have some warning/error while trying to run it 🤔 . If you take a look at the traceback, it’s quite hard for an inexperienced person to understand anything from it.
@billowy-army-68599
Maybe you can follow up? Did I get it right and if so, are there any plans to add some additional version assertions?billowy-army-68599
09/07/2021, 6:33 PM