Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FakeClientSet ¶
FakeClientSet provides a fake.NewSimpleClientset, useful for testing without a real cluster
Types ¶
type KnpConfig ¶
type KnpConfig 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 // HealthPort is the facultative healthcheck port HealthPort int // ResyncIntv define the duration between full resync. Set to 0 to disable resyncs. ResyncIntv time.Duration // Cluster is the name of the cluster we'll operate on. Mandatory. Cluster string // Zone is the cluster's zone. Can be guessed if not provided. Zone string // Project is the cluster's project. Can be guessed from host's metadata if not provided. Project string }
KnpConfig is the configuration struct, passed to controllers's Init()
func FakeConfig ¶
FakeConfig returns a configuration struct using a fake clientset, for unit tests
Click to show internal directories.
Click to hide internal directories.