Comments (2)
To repro, simply deploy a ConfigGroup containing a ConfigMap:
name: issue-1642
runtime: yaml
resources:
cg:
type: kubernetes:yaml/v2:ConfigGroup
properties:
objs:
- apiVersion: v1
kind: ConfigMap
metadata:
name: issue-1642
Delete the ConfigMap using kubectl
, then try to get Pulumi to learn that it's gone without a full refresh:
❯ pulumi refresh -t urn:pulumi:dev::issue-1642::kubernetes:yaml/v2:ConfigGroup::myConfigGroup --target-dependents
Error: unknown flag: --target-dependents
❯ pulumi refresh -t urn:pulumi:dev::issue-1642::kubernetes:yaml/v2:ConfigGroup::myConfigGroup
Previewing refresh (dev)
Type Name Plan
pulumi:pulumi:Stack issue-1642-dev
└─ kubernetes:yaml/v2:ConfigGroup myConfigGroup
Resources:
1 unchanged
❯ pulumi up -t urn:pulumi:dev::issue-1642::kubernetes:yaml/v2:ConfigGroup::myConfigGroup --target-dependents --refresh
Previewing update (dev)
Type Name Plan
pulumi:pulumi:Stack issue-1642-dev
└─ kubernetes:yaml/v2:ConfigGroup myConfigGroup
Resources:
3 unchanged
Do you want to perform this update? yes
Updating (dev)
Type Name Status
pulumi:pulumi:Stack issue-1642-dev
└─ kubernetes:yaml/v2:ConfigGroup myConfigGroup
Resources:
3 unchanged
Duration: 1s
❯ pulumi refresh
Previewing refresh (dev)
Type Name Plan
pulumi:pulumi:Stack issue-1642-dev
└─ kubernetes:yaml/v2:ConfigGroup myConfigGroup
- └─ kubernetes:core/v1:ConfigMap myConfigGroup:eron/issue-1642 delete
Resources:
- 1 to delete
2 unchanged
from pulumi.
We already have --target-dependents
for other commands, we should just be consistent and support that for refresh
as well.
from pulumi.
Related Issues (20)
- `pulumi new` and organization templates
- Configurable download URLs for corporate/air-gapped environments HOT 1
- `pulumi login` with a custom s3 provider HOT 1
- Pulumi login to Azure Blob via Storage Access Key fails unless AZURE_STORAGE_ACCOUNT is set HOT 1
- Pulumi errors on locally built `tool` plugin kind
- Memory pressure tests
- Renaming resource that is depended on by others causes crash.
- Allow specifying an Asset (but not an Archive) in the Schema
- Add support for env authoring to Automation API
- Add support for env tagging to Automation API
- Consider adding codegen support for Custom Resource methods HOT 1
- Pulumi update fails with panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- Workflow failure: Direct build HOT 1
- Python dynamic resource is replaced without the inputs being changed
- FileArchive creates zip files with backslashes on Windows
- a way for Pulumi to ignore the entrypoint of Package.json ( Node.js) HOT 1
- Intermittent `gzip: invalid header` when trying to unpack downloaded package plugins HOT 1
- [auto/go] RemoteDeployment in Automation API does not allow setting executorImage (ExecutorContext) when creating a remote stack
- Noninteractive `pulumi refresh` with json output is not showing any diff
- [internal] Simplify schemas used in program-gen for testing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi.