millions-judge-24978
02/08/2019, 8:26 PMspec
property of a k8s Ingress resource? https://pulumi.io/reference/pkg/nodejs/@pulumi/kubernetes/extensions/v1beta1/#Ingress-spec
I am finding that when updating the JSON of this field, which looks like { rules: ... }
, where the ...
changes, Pulumi is showing no changes.creamy-potato-29402
02/08/2019, 8:28 PMIngress
millions-judge-24978
02/08/2019, 8:28 PMpreview
locally, there is no diff calculated, however if I console.log()
the value, it differs from the value in the "Resources" tab on app.pulumi.com
The state of my infrastructure agrees with app.pulumi.com, and is missing what my input should add.creamy-potato-29402
02/08/2019, 8:31 PMmillions-judge-24978
02/08/2019, 8:31 PMcreamy-potato-29402
02/08/2019, 8:31 PMmillions-judge-24978
02/08/2019, 8:34 PMPreviewing update (XXX/YYY-staging):
Type Name Plan Info
pulumi:pulumi:Stack YYY-YYY-staging 30 messages
~ └─ kubernetes:extensions:Ingress external-rpc update [diff: ~spec]
Diagnostics:
pulumi:pulumi:Stack (YYY-YYY-staging):
[ { host: '<http://0171.rpc.YYY.staging.ZZZ.org|0171.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://01701.rpc.YYY.staging.ZZZ.org|01701.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://0163.rpc.YYY.staging.ZZZ.org|0163.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://1100.rpc.YYY.staging.ZZZ.org|1100.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://61651.rpc.YYY.staging.ZZZ.org|61651.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://01300.rpc.YYY.staging.ZZZ.org|01300.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://01234.rpc.YYY.staging.ZZZ.org|01234.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://0163.rpc.YYY.staging.ZZZ.org|0163.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://0872.rpc.YYY.staging.ZZZ.org|0872.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://227.rpc.YYY.staging.ZZZ.org|227.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://229.rpc.YYY.staging.ZZZ.org|229.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://229.rpc.YYY.staging.ZZZ.org|229.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://0161.rpc.YYY.staging.ZZZ.org|0161.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://100.rpc.YYY.staging.ZZZ.org|100.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } },
{ host: '<http://100.rpc.YYY.staging.ZZZ.org|100.rpc.YYY.staging.ZZZ.org>',
http: { paths: [Array] } } ]
Resources:
~ 1 to update
115 unchanged
This is the output when I have artificially changed the rules being input to duplicate the item that is missing229
exists twice. Normally it only is there once. Its addition is the thing being added, but not being detected as new or a diffexternalIngressRules
, and then does
new k8s.extensions.v1beta1.Ingress("external-rpc", {
metadata: {
annotations: { ... }
}
},
spec: {
rules: externalIngressRules
}
}))
creamy-potato-29402
02/08/2019, 8:42 PMmillions-judge-24978
02/08/2019, 8:42 PMcreamy-potato-29402
02/08/2019, 8:42 PMmillions-judge-24978
02/08/2019, 8:42 PMcreamy-potato-29402
02/08/2019, 8:42 PMmillions-judge-24978
02/08/2019, 8:43 PMcreamy-potato-29402
02/08/2019, 8:43 PMpulumi refresh
?millions-judge-24978
02/08/2019, 8:43 PMcreamy-potato-29402
02/08/2019, 8:44 PMmillions-judge-24978
02/08/2019, 8:44 PMcreamy-potato-29402
02/08/2019, 8:44 PMmillions-judge-24978
02/08/2019, 8:48 PMrefresh
fails, due to
Diagnostics:
kubernetes:apps:StatefulSet (0171):
error: Preview failed: 2 errors occurred:
* Resource '0171' was created but failed to initialize
* Failed to observe the expected number of ready replicas
This is somewhat expected for us, as we take a replica out of the set for "maintenance". Still figuring out best way to make this work well with pulumi. Not sure if it could be part of the problems we're havingpreview
again nowcreamy-potato-29402
02/08/2019, 8:49 PMmillions-judge-24978
02/08/2019, 8:49 PMcreamy-potato-29402
02/08/2019, 8:49 PMpulumi state delete
millions-judge-24978
02/08/2019, 8:54 PMcreamy-potato-29402
02/08/2019, 8:54 PMgorgeous-egg-16927
02/08/2019, 8:56 PMmillions-judge-24978
02/08/2019, 8:57 PMpulumi stack export
2. Manually delete 229
out of the rules array anywhere it appeared (inputs and ouputs)
3. pulumi stack import
4. pulumi update
creamy-potato-29402
02/08/2019, 10:35 PMmillions-judge-24978
02/08/2019, 10:41 PMstack export
seemed different than what I saw on app.pulumi.com though