Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // KnownChannelKinds are known channel kinds belonging to Knative. KnownChannelKinds = []GroupVersionKindResource{ { GroupVersionKind: schema.GroupVersionKind{ Kind: "Channel", Group: "messaging.knative.dev", Version: "v1", }, Resource: "channels", }, { GroupVersionKind: schema.GroupVersionKind{ Kind: "Channel", Group: "messaging.knative.dev", Version: "v1beta1", }, Resource: "channels", }, { GroupVersionKind: schema.GroupVersionKind{ Kind: "InMemoryChannel", Group: "messaging.knative.dev", Version: "v1", }, Resource: "inmemorychannels", }, { GroupVersionKind: schema.GroupVersionKind{ Kind: "InMemoryChannel", Group: "messaging.knative.dev", Version: "v1beta1", }, Resource: "inmemorychannels", }, } // KnownEndpointKinds are known endpoint kinds belonging to Knative. KnownEndpointKinds = []GroupVersionKindResource{ { GroupVersionKind: schema.GroupVersionKind{ Kind: "Service", Group: "serving.knative.dev", Version: "v1", }, Resource: "services", }, { GroupVersionKind: schema.GroupVersionKind{ Kind: "Service", Group: "serving.knative.dev", Version: "v1beta1", }, Resource: "services", }, } // KnownBrokerKinds are known broker kinds belonging to Knative. KnownBrokerKinds = []GroupVersionKindResource{ { GroupVersionKind: schema.GroupVersionKind{ Kind: "Broker", Group: "eventing.knative.dev", Version: "v1", }, Resource: "brokers", }, { GroupVersionKind: schema.GroupVersionKind{ Kind: "Broker", Group: "eventing.knative.dev", Version: "v1beta1", }, Resource: "brokers", }, } // RequiredKinds are Knative kinds used by YAKS for testing Knative eventing. // They must be present on the cluster. RequiredKinds = []GroupVersionKindResource{ { GroupVersionKind: schema.GroupVersionKind{ Kind: "Broker", Group: "eventing.knative.dev", Version: "v1", }, Resource: "brokers", }, } )
Functions ¶
func IsInstalled ¶
IsInstalled returns true if we are connected to a cluster with Knative installed
This method should not be called from the operator, as it might require permissions that are not available.
Types ¶
type GroupVersionKindResource ¶
type GroupVersionKindResource struct { schema.GroupVersionKind Resource string }
GroupVersionKindResource --.
Click to show internal directories.
Click to hide internal directories.