apply_cluster_manifest
Apply an ImportCluster YAML declaratively (the twin of ankra cluster apply): the cluster named in metadata.name is created if it does not exist, and every stack the manifest names is created or REPLACED by its definition there. Stacks the manifest does not name are left untouched. A member (add-on, manifest, application) of a named stack that the manifest no longer lists would be removed, so such a removal is refused, with nothing written, naming the members, unless confirmed_member_removals names each one or prune is true: a manifest exported before those members were added looks exactly the same. Read the current definition with export_cluster_iac first and validate with validate_cluster_manifest. Moving the cluster to a different GitOps repository or branch is refused until allow_repoint is true (and allow_repoint_destroying_data when PersistentVolumeClaims would be pruned). For one stack at a time prefer create_stack / update_stack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prune | No | Confirm every removal this apply makes (default false). Only when the user said the manifest is the complete, current definition of the stacks it names; otherwise name the members in confirmed_member_removals. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| allow_repoint | No | Acknowledge that the manifest moves the cluster to another GitOps repository or branch, rewriting the files there (default false). | |
| manifest_yaml_base64 | Yes | The ImportCluster YAML (kind: ImportCluster, metadata.name, spec.stacks and optionally spec.git_repository), base64-encoded, at most 2 MiB. Inline `manifest` and `configuration.values` blocks are accepted; file references (from_file) are refused. | |
| confirmed_member_removals | No | Members, as kind/name (kind addon, manifest or application), the user confirmed this apply may remove from the stacks it names because the manifest no longer lists them. Send only after the apply was refused naming them and the user agreed to each. | |
| allow_repoint_destroying_data | No | The second acknowledgement required when the cluster holds PersistentVolumeClaims the repoint would prune (default false). |