Aller au contenu

Create, apply, and update resources

Ce contenu n’est pas encore disponible dans votre langue.

create requires absence, update requires an existing resource, and apply chooses create or update while preserving already-matching resources.

Terminal window
xcsh create -f manifest.yaml --dry-run client --result-file create-preview.json
xcsh update -f manifest.yaml --dry-run client --result-file update-preview.json
xcsh apply -f manifest.yaml --dry-run client --result-file apply-preview.json

Review the preview, then repeat the same command without --dry-run client. Keep --result-file so automation can inspect the aggregate operation record.

Run xcsh get <KIND> <NAME> -n <NAMESPACE> and compare the returned identity and relevant fields with the manifest. Do not treat process exit alone as state verification.