Implement CRD validating webhooks based on OpenSLO type validations

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, kubernetes
Domain
backend, devops

Research direction

Start by checking whether OpenSLO/OpenSLO pull request 292 has landed and reviewing the OpenSLO types' Validate() methods. Then use the Kubebuilder webhook implementation tutorial as the entry point for wiring CRD validating webhooks. Done means the CRDs invoke the relevant OpenSLO validations and reject invalid resources.

Written by the indexing model from the issue text.

Description

blocked enhancement P3

depends on: https://github.com/OpenSLO/OpenSLO/pull/292

Once we move to using OpenSLO types, we will be able to utilize each types' Validate() methods in https://book.kubebuilder.io/cronjob-tutorial/webhook-implementation .

This will give us complex validation without, hopefully, much effort on our part.

Dominant language
Go
Stars
20
Forks
3
Avg merge
44m
Merged PRs (30d)
7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oskoperator/osko

All issues in oskoperator/osko

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.