Categorygithub.com/devops-simba/webhook_core
modulepackage
1.0.41
Repository: https://github.com/devops-simba/webhook_core.git
Documentation: pkg.go.dev

# README

webhook_core

Core part of the webhook library

# Packages

No description provided by the author

# Functions

No description provided by the author
CreateDeployment create deployment scripts in a folder, you may review and modify them and then deploy them to the kubernetes.
CreateErrorResponse create an admission error response.
CreatePatchResponse create a patch response for an admission review request.
GetClientset get Clientset object from global context.
GetNamespace get information about namespace.
GetNamespaceContext get information about namespace.
GetPod get information about a POD.
GetPodContext get information about a POD.
GetRESTConfig get REST configuration that created from loading kubeconfig.
InitializeRuntimeScheme initialize a runtime scheme this is useful for adding schemes from different APIs(like openshift).
No description provided by the author
IsObjectInNamespaces check if an object is in specified set of namespaces.
KeyValue create a map[string]string with a single entry.
NewAddPatch create a new `PatchOperation` for 'add' operation.
NewRemovePatch create a new `PatchOperation` for 'remove' operation.
NewReplacePatch create a new `PatchOperation` for 'replace' operation.
No description provided by the author
ReadAdmissionReview read an AdmissionReview from a request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RunWebhooks run webhooks, listening to admission reviews and reply to them with a proper admission response.
UpdateAnnotations create a set of packes to update annotations of an object.
UpdateLabels create a set of packes to update labels of an object.
WriteAdmissionResponse write an AdmissionResponse as a HTTP response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
LabelComponent component label.
LabelInstance instance label.
LabelManagedBy managed-by label.
LabelName name label.
LabelPartOf part-of label.
LabelVersion version label.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
region Deployment template.
region DeployScript template.
region Dockerfile template.
IgnoredNamespaces list of namespaces that should ignored by admission review process.
No description provided by the author
Scheme Default runtime scheme.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PatchOperation a patch operation.
No description provided by the author
No description provided by the author

# Interfaces

Webhook This interface represent a webhook.

# Type aliases

No description provided by the author
No description provided by the author