Pular para o conteúdo

Manifest Operations

Este conteúdo não está disponível em sua língua ainda.

Every operation invokes the ordinary xcsh resource CLI directly. No command starts the AI assistant or consumes an LLM turn.

Create a missing resource, update a changed resource, and preserve an identical resource:

- uses: f5-sales-demo/xcsh-action@v1
env:
XCSH_API_URL: ${{ vars.XCSH_API_URL }}
XCSH_API_TOKEN: ${{ secrets.XCSH_API_TOKEN }}
XCSH_NAMESPACE: ${{ vars.XCSH_NAMESPACE }}
with:
operation: apply
files: manifests/
recursive: true
OperationRequired resource selectorExpected result
applyfiles or manifestCreate, update, or preserve each resource
createfiles or manifestCreate resources and fail when one exists
updatefiles or manifestUpdate resources and fail when one is absent
getManifests, or resource-kind and optional resource-nameRead one resource or list a kind
deleteManifests, or resource-kind and resource-nameDelete without an interactive confirmation
difffiles or manifestReport desired/live differences without mutation
exportresource-kind, or all: trueEmit reusable manifests from live resources
validatefiles or manifestValidate locally without XC credentials

dry-run: client is available for apply, create, update, and delete. It calculates the supported mutation without changing the tenant. Server-side dry-run is not available.

output: auto selects table output for most operations and YAML for export. Explicit choices are json, yaml, table, and wide; export accepts only JSON or YAML.

The Action always requests its stable aggregate JSON report. Set result-file to copy that report under working-directory, and use typed outputs for ordinary workflow conditions. Result and export files can contain live configuration, so do not print them to public logs.

The namespace input overrides the namespace in every manifest and also sets XCSH_NAMESPACE for the process. This is an XC namespace, not a Kubernetes namespace or kubeconfig context.

See the complete Action reference for input combinations and every output.