Package v1alpha1 contains API Schema definitions for the espejote.io v1alpha1 API group
Admission is the Schema for the Admissions API. Admission currently fully relies on cert-manager for certificate management and webhook certificate injection. See the kustomize overlays for more information.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
AdmissionSpec defines the desired state of Admission.
| Field | Description | Default | Validation |
|---|---|---|---|
|
WebhookConfiguration defines the configuration for the Admission webhook. |
||
|
Mutating defines if the Admission should create a MutatingWebhookConfiguration or a ValidatingWebhookConfiguration. |
||
|
Template contains the Jsonnet code to decide the admission result. |
| Field | Description | Default | Validation |
|---|---|---|---|
|
FieldManager is the field manager to use when applying the ManagedResource |
Optional: \{} |
|
|
Force is going to "force" Apply requests. It means user will |
false |
Optional: \{} |
|
fieldValidation instructs the managed resource on how to handle |
Strict |
Enum: [Ignore Strict] |
ClusterAdmission is the Schema for the ClusterAdmissions API. ClusterAdmission currently fully relies on cert-manager for certificate management and webhook certificate injection. See the kustomize overlays for more information.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
ClusterAdmissionSpec defines the desired state of ClusterAdmission.
| Field | Description | Default | Validation |
|---|---|---|---|
|
WebhookConfiguration defines the configuration for the Admission webhook. |
||
|
Mutating defines if the Admission should create a MutatingWebhookConfiguration or a ValidatingWebhookConfiguration. |
||
|
Template contains the Jsonnet code to decide the admission result. |
| Field | Description | Default | Validation |
|---|---|---|---|
|
APIVersion of the resource that should be added to the context. |
||
|
Kind of the resource that should be added to the context. |
||
|
Name of the resource that should be added to the context. |
||
|
Namespace for the resources that should be added to the context. |
||
|
LabelSelector can be used to filter the resources that should be added to the context. |
||
|
MatchNames can be used to filter the resources that should be added to the context. |
||
|
IgnoreNames can be used to filter the resources that should be added to the context. |
||
|
StripManagedFields removes the managedFields from the watched resource. |
Optional: \{} |
JsonnetLibrary is the Schema for the jsonnetlibraries API.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
JsonnetLibrarySpec defines the desired state of JsonnetLibrary.
| Field | Description | Default | Validation |
|---|---|---|---|
|
Data is a map of Jsonnet library files.
|
ManagedResource is the Schema for the ManagedResources API
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
|||
|
| Field | Description | Default | Validation |
|---|---|---|---|
|
Name is the name of the context definition. The context can be referenced in the template by this name. |
MinLength: 1 |
|
|
Resource defines the resource that should be added to the context. |
ManagedResourceSpec defines the desired state of ManagedResource
| Field | Description | Default | Validation |
|---|---|---|---|
|
Triggers define the resources that trigger the reconciliation of the ManagedResource |
Optional: \{} |
|
|
Context defines the context for the ManagedResource |
||
|
ServiceAccountRef is the service account this managed resource runs as. |
{ name:default } |
|
|
Template defines the template for the ManagedResource |
||
|
CacheSyncTimeout defines the maximum time to wait for the initial sync of the context and trigger caches to complete. |
Format: duration |
|
|
ApplyOptions defines the options for applying the ManagedResource |
ManagedResourceStatus defines the observed state of ManagedResource
| Field | Description | Default | Validation |
|---|---|---|---|
|
Status reports the last overall status of the ManagedResource |
| Field | Description | Default | Validation |
|---|---|---|---|
|
Name is the name of the trigger. The trigger can be referenced in the template by this name. |
MinLength: 1 |
|
|
Interval defines the interval at which the ManagedResource should be reconciled. |
Format: duration |
|
|
WatchResource defines one or multiple resources that trigger the reconciliation of the ManagedResource. |
Optional: \{} |
|
|
WatchContextResource works the same as WatchResource, but it uses and already existing context resource. apiVersion: espejote.io/v1alpha1 local netpolForNs = function(ns) { if esp.triggerName() == 'namespace' then [ |
| Field | Description | Default | Validation |
|---|---|---|---|
|
APIVersion of the resource that should be watched. |
||
|
Kind of the resource that should be watched. |
||
|
Name of the resource that should be watched. |
||
|
Namespace for the resources that should be watched. |
||
|
LabelSelector can be used to filter the resources that should be watched. |
||
|
MatchNames can be used to filter the resources that should be watched. |
||
|
IgnoreNames can be used to filter the resources that should be watched. |
||
|
StripManagedFields removes the managedFields from the watched resource. |
Optional: \{} |
| Field | Description | Default | Validation |
|---|---|---|---|
|
Name is the name of the context definition used when creating this trigger. |
| Field | Description | Default | Validation |
|---|---|---|---|
|
Rules describes what operations on what resources/subresources the webhook cares about. |
||
|
FailurePolicy defines how unrecognized errors from the admission endpoint are handled - |
Optional: \{} |
|
|
matchPolicy defines how the "rules" list is used to match incoming requests.
Defaults to "Equivalent" |
Optional: \{} |
|
|
ObjectSelector decides whether to run the webhook based on if the |
Optional: \{} |
|
|
reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation Defaults to "Never". |
Optional: \{} |
|
|
MatchConditions is a list of conditions that must be met for a request to be sent to this The exact matching logic is (in order): |
Optional: \{} |
| Field | Description | Default | Validation |
|---|---|---|---|
|
NamespaceSelector decides whether to run the webhook on an object based For example, to run the webhook on any objects whose namespace is not If instead you want to only run the webhook on any objects whose See Default to the empty LabelSelector, which matches everything. |
Optional: \{} |
|
|
Rules describes what operations on what resources/subresources the webhook cares about. |
||
|
FailurePolicy defines how unrecognized errors from the admission endpoint are handled - |
Optional: \{} |
|
|
matchPolicy defines how the "rules" list is used to match incoming requests.
Defaults to "Equivalent" |
Optional: \{} |
|
|
ObjectSelector decides whether to run the webhook based on if the |
Optional: \{} |
|
|
reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation Defaults to "Never". |
Optional: \{} |
|
|
MatchConditions is a list of conditions that must be met for a request to be sent to this The exact matching logic is (in order): |
Optional: \{} |