Skip to content

Add OCI Functions advanced parity support to Fn CLI#724

Open
Jaytee-fn wants to merge 2 commits into
masterfrom
advanced_options
Open

Add OCI Functions advanced parity support to Fn CLI#724
Jaytee-fn wants to merge 2 commits into
masterfrom
advanced_options

Conversation

@Jaytee-fn
Copy link
Copy Markdown
Contributor

@Jaytee-fn Jaytee-fn commented May 22, 2026

This PR adds advanced OCI Functions option support to Fn CLI.
It introduces an API-spec-driven parity layer for OCI-native app/function options so that Fn CLI can expose a broader set of OCI Functions capabilities while reducing long-term drift as OCI APIs evolve.
In addition to the generated parity layer, this PR adds the CLI-side wiring needed to make those advanced options usable in Fn CLI workflows.
It also updates the vendored 'fn_go' dependency to the newly released 'v0.8.11', which contains the shared client/oracle shim support required by this CLI work.

The PR includes -

  1. Advanced OCI option support for apps and functions
    Adds support for advanced OCI-native options in Fn CLI for relevant app/function operations.

  2. API-spec-driven parity generation
    Introduces and uses a generated parity layer derived from the OCI Functions API spec.

This helps:

  • reduce manual drift
  • improve maintainability
  • make it easier to extend support as OCI Functions APIs evolve
  1. CLI-side support required for advanced options
    Adds supporting CLI behaviour around the advanced option layer, including:
  • flag wiring
  • request-control support where applicable
  • structured JSON input support (--from-json) for supported flows
  • list filter/sort support for OCI-backed app/function list operations
  • improved output/inspect visibility for OCI-backed settings where supported
  1. Dependency update
    Updates vendored/shared fn_go support to:
  • github.com/fnproject/fn_go v0.8.11

Advanced OCI options added to Fn CLI as part of this PR -

Applications
Create / Update

  • trace-config
  • network-security-group-ids
  • image-policy-config
  • security-attributes

List

  • display-name
  • id
  • lifecycle-state
  • sort-by
  • sort-order

Functions
Create / Update

  • trace-config
  • timeout-in-seconds
  • detached-mode-timeout-in-seconds
  • success-destination
  • failure-destination

List

  • display-name
  • id
  • lifecycle-state
  • sort-by
  • sort-order

Supporting request-control / input handling

  • if-match
  • wait-for-state
  • max-wait-seconds
  • wait-interval-seconds
  • structured --from-json support for supported flows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant