ApplyInto applies the content of the probe configuration in a Kubernetes probe
(k8sProbe *corev1.Probe)
| 1555 | // ApplyInto applies the content of the probe configuration in a Kubernetes |
| 1556 | // probe |
| 1557 | func (p *Probe) ApplyInto(k8sProbe *corev1.Probe) { |
| 1558 | if p == nil { |
| 1559 | return |
| 1560 | } |
| 1561 | |
| 1562 | if p.InitialDelaySeconds != 0 { |
| 1563 | k8sProbe.InitialDelaySeconds = p.InitialDelaySeconds |
| 1564 | } |
| 1565 | if p.TimeoutSeconds != 0 { |
| 1566 | k8sProbe.TimeoutSeconds = p.TimeoutSeconds |
| 1567 | } |
| 1568 | if p.PeriodSeconds != 0 { |
| 1569 | k8sProbe.PeriodSeconds = p.PeriodSeconds |
| 1570 | } |
| 1571 | if p.SuccessThreshold != 0 { |
| 1572 | k8sProbe.SuccessThreshold = p.SuccessThreshold |
| 1573 | } |
| 1574 | if p.FailureThreshold != 0 { |
| 1575 | k8sProbe.FailureThreshold = p.FailureThreshold |
| 1576 | } |
| 1577 | if p.TerminationGracePeriodSeconds != nil { |
| 1578 | k8sProbe.TerminationGracePeriodSeconds = p.TerminationGracePeriodSeconds |
| 1579 | } |
| 1580 | } |
| 1581 | |
| 1582 | // ApplyInto applies the content of the probe configuration in a Kubernetes |
| 1583 | // probe |
no outgoing calls
no test coverage detected