ServiceReference

data class ServiceReference(val name: String, val namespace: String, val path: String? = null, val port: Int? = null)

ServiceReference holds a reference to Service.legacy.k8s.io

Constructors

Link copied to clipboard
constructor(name: String, namespace: String, path: String? = null, port: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

name is the name of the service. Required

Link copied to clipboard

namespace is the namespace of the service. Required

Link copied to clipboard
val path: String? = null

path is an optional URL path which will be sent in any request to this service.

Link copied to clipboard
val port: Int? = null

If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. port should be a valid port number (1-65535, inclusive).