Skip to main content

Module capabilities

Module capabilities 

Source
Expand description

Capability validation and auto-upgrade for provider gtpacks.

Provider gtpacks must contain a greentic.ext.capabilities.v1 extension in their manifest.cbor for the operator to discover and mount them. Old gtpacks built before the capabilities extension was introduced will silently fail at runtime.

This module provides validation during gtc setup and auto-upgrade from known source locations when a newer pack with capabilities is found.

Structs§

DependencyReport
Report of dependency capability validation across all packs in the bundle.
MissingCapability
PackWarning
SatisfiedCapability
UpgradeReport
Result of validating and upgrading packs in a bundle.
UpgradedPack

Functions§

has_capabilities_extension
Check whether a gtpack has the greentic.ext.capabilities.v1 extension.
validate_and_upgrade_packs
Validate all provider gtpacks in a bundle and auto-upgrade those missing capabilities.
validate_dependency_capabilities
Validate that all pack dependencies have their required_capabilities satisfied by other packs in the bundle.