Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FakeClientSet ¶ added in v0.3.0
FakeClientSet provides a fake.NewSimpleClientset, useful for testing without a real cluster
Types ¶
type KdnConfig ¶
type KdnConfig struct { // When DryRun is true, we display but don't really send notifications DryRun bool // Logger should be used to send all logs Logger *logrus.Logger // ClientSet represents a connection to a Kubernetes cluster ClientSet kubernetes.Interface // Endpoint is the API URL where we'll send notifications Endpoint string // TokenHdr holds a facultative HTTP header name sent with notifications TokenHdr string // TokenVal holds a facultative HTTP value send with notifications TokenVal string // Filter holds a facultative Kubernetes selector Filter string // HealthPort is the facultative healthcheck port HealthPort int // ResyncIntv define the duration between full resync. Set to 0 to disable resyncs. ResyncIntv time.Duration }
KdnConfig is the configuration struct, passed to controllers's Init()
func FakeConfig ¶ added in v0.3.0
FakeConfig returns a configuration struct using a fake clientset, for unit tests
Click to show internal directories.
Click to hide internal directories.