Documentation ¶
Index ¶
- Constants
- func PublishEventsOnRest(jsonBody []byte, topic string, externalCdConfig *ExternalConfig) error
- type AcdConfig
- type ApplicationDetail
- type CdConfig
- type CiConfig
- type ClusterConfig
- type Controller
- type CronEvent
- type Event
- type EventType
- type ExternalConfig
- type Informer
- type PublishRequest
- type WorkflowUpdateReq
Constants ¶
View Source
const ClusterTypeAll string = "ALL_CLUSTER"
Variables ¶
This section is empty.
Functions ¶
func PublishEventsOnRest ¶
func PublishEventsOnRest(jsonBody []byte, topic string, externalCdConfig *ExternalConfig) error
Types ¶
type ApplicationDetail ¶ added in v0.18.0
type ApplicationDetail struct { Application *v1alpha1.Application `json:"application"` StatusTime time.Time `json:"statusTime"` }
type ClusterConfig ¶ added in v0.18.0
type ClusterConfig struct {
ClusterType string `env:"CLUSTER_TYPE" envDefault:"IN_CLUSTER"`
}
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller object
func (*Controller) HasSynced ¶
func (c *Controller) HasSynced() bool
HasSynced is required for the cache.Controller interface.
func (*Controller) LastSyncResourceVersion ¶
func (c *Controller) LastSyncResourceVersion() string
LastSyncResourceVersion is required for the cache.Controller interface.
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{})
Run starts the kubewatch controller
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event indicate the informerEvent
type EventType ¶
type EventType int
const Fail EventType = 3
const Success EventType = 2
const Trigger EventType = 1
type ExternalConfig ¶ added in v0.18.0
type ExternalConfig struct { External bool `env:"CD_EXTERNAL_REST_LISTENER" envDefault:"false"` Token string `env:"CD_EXTERNAL_ORCHESTRATOR_TOKEN" envDefault:""` ListenerUrl string `env:"CD_EXTERNAL_LISTENER_URL" envDefault:"http://devtroncd-orchestrator-service-prod.devtroncd:80"` Namespace string `env:"CD_EXTERNAL_NAMESPACE" envDefault:""` }
This is being used by CI as well as CD
type Informer ¶ added in v0.18.0
type Informer struct {
// contains filtered or unexported fields
}
func NewStartController ¶ added in v0.18.0
func NewStartController(logger *zap.SugaredLogger, client *pubsub.PubSubClientServiceImpl, externalConfig *ExternalConfig, httpTransportConfig *k8s1.CustomK8sHttpTransportConfig) *Informer
func (*Informer) SendAppDelete ¶ added in v0.18.0
func (impl *Informer) SendAppDelete(app *v1alpha1.Application, statusTime time.Time)
func (*Informer) SendAppUpdate ¶ added in v0.18.0
func (impl *Informer) SendAppUpdate(app *v1alpha1.Application, statusTime time.Time)
type PublishRequest ¶
type PublishRequest struct { Topic string `json:"topic"` Payload json.RawMessage `json:"payload"` }
type WorkflowUpdateReq ¶
Click to show internal directories.
Click to hide internal directories.