AdmittableObject represents a Kubernetes object that can be admitted through the guard admission control process, allowing admission errors to be set.
| 39 | // AdmittableObject represents a Kubernetes object that can be admitted through |
| 40 | // the guard admission control process, allowing admission errors to be set. |
| 41 | type AdmittableObject interface { |
| 42 | client.Object |
| 43 | |
| 44 | // SetAdmissionError records the admission validation error on the status, |
| 45 | // or clears it when msg is empty. |
| 46 | SetAdmissionError(msg string) |
| 47 | |
| 48 | // GetAdmissionError returns the admission validation error currently |
| 49 | // recorded on the status, when the guard is responsible for clearing it. |
| 50 | // Types whose admission error is cleared by their own reconciler (for |
| 51 | // example through the phase machinery) return an empty string, so the |
| 52 | // guard does not race that logic by persisting the clear itself. |
| 53 | GetAdmissionError() string |
| 54 | } |
| 55 | |
| 56 | // Admission provides admission control capabilities by wrapping defaulting |
| 57 | // and validation webhooks for use in controller reconciliation loops. |
no outgoing calls
no test coverage detected