ServiceSpecArgs

data class ServiceSpecArgs(val template: Output<RevisionTemplateArgs>? = null, val traffic: Output<List<TrafficTargetArgs>>? = null) : ConvertibleToJava<ServiceSpecArgs>

ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s).

Constructors

Link copied to clipboard
fun ServiceSpecArgs(template: Output<RevisionTemplateArgs>? = null, traffic: Output<List<TrafficTargetArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServiceSpecArgs

Properties

Link copied to clipboard
val template: Output<RevisionTemplateArgs>? = null

Holds the latest specification for the Revision to be stamped out.

Link copied to clipboard
val traffic: Output<List<TrafficTargetArgs>>? = null

Specifies how to distribute traffic over a collection of Knative Revisions and Configurations to the Service's main URL.