-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VulnerabilityReport v1alpha2 with grouped packages and webhook conver…
…sion (#277) * create resource VulnerabilityReport v1alpha2 * add VulnerabilityReport v1alpha2 fields * generating clientset for vulnerabilityreport v1alpha2 * fix custom checks paths in Makefile * parse trivy results to v1alpha2 vulnerability reports * send v1alpha2 vulnerability reports to SaaS * update vulnerabilityreport samples * preserve unknown fields in .spec.vulnerabilities objects of v1alpha2 VulnerabilityReports * deprecate VulnerabilityReport v1alpha1 * Setup VulnerabilityReport webhook conversion (#283) * implement conversion.Hub in VulnerabilityReport v1alpha1 * move summarize function to v1alpha2 VulnerabilityReport * implement conversion.Convertible in VulnerabilityReport v1alpha2 * set imagePullPolicy to IfNotPresent in config/manager/manager.yaml * split install and install-crds targets in Makefile * logging vulnerability reports conversions * remove x-kubernetes-preserve-unknown-fields from v1alpha2 vulnerability report * setup webhook with cert-manager * setting TLSOpts in webhook server * generating CRDs with kustomize for applying webhook patch * installing yq in local binaries directory * fix CRD generation * updating CRD annotations * annotate CRD for injecting conversion * inject webhook conversion in annotated CRDs * add flag for enabling/disabling conversion * update helm chart for generating and mounting certificates if webhook is enabled * set annotation with jq instead of kustomize * remove unnecessary base64 encoding * bump chart version to 0.8.5-rc3 * move NAMESPACE var in Makefile * delete unused cert-manager files in config/ directory * remove logs from vulnerabilityreport_conversion.go * using certificates from existing secret if it already exists (#284) * Add fields `totalPackages` and `totalUniquePackages` in VulnerabilityReport (#285) * add fields `totalPackages` and `totalUniquePackages` in v1alpha2 VulnerabilityReport * bump chart version to 0.8.5-rc4 * remove TODO
- Loading branch information
Showing
47 changed files
with
3,431 additions
and
1,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2024 Undistro Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package v1alpha1 | ||
|
||
import ( | ||
ctrl "sigs.k8s.io/controller-runtime" | ||
) | ||
|
||
// SetupWebhookWithManager will setup the manager to manage the webhooks | ||
func (r *VulnerabilityReport) SetupWebhookWithManager(mgr ctrl.Manager) error { | ||
return ctrl.NewWebhookManagedBy(mgr). | ||
For(r). | ||
Complete() | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.