mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
fix webhook issues and push image to docker hub
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
replicaCount: 1
|
||||
useWebhook: true
|
||||
image:
|
||||
repository: vela-core
|
||||
tag: latest
|
||||
repository: oamdev/vela-core
|
||||
tag: 0.1
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
|
||||
@@ -20,7 +20,7 @@ spec:
|
||||
apiVersion: core.oam.dev/v1alpha2
|
||||
kind: ManualScalerTrait
|
||||
metadata:
|
||||
name: example-appconfig-trait
|
||||
name: autoscale-scalar
|
||||
spec:
|
||||
replicaCount: 3
|
||||
- componentName: metrics-application
|
||||
|
||||
@@ -11,7 +11,6 @@ spec:
|
||||
labels:
|
||||
app: sample-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sample-app
|
||||
|
||||
@@ -51,6 +51,8 @@ func (h *ContainerizedValidatingHandler) Handle(ctx context.Context, req admissi
|
||||
|
||||
err := h.Decoder.Decode(req, obj)
|
||||
if err != nil {
|
||||
validatelog.Error(err, "decoder failed", "req operation", req.AdmissionRequest.Operation, "req",
|
||||
req.AdmissionRequest)
|
||||
return admission.Errored(http.StatusBadRequest, err)
|
||||
}
|
||||
|
||||
@@ -68,10 +70,6 @@ func (h *ContainerizedValidatingHandler) Handle(ctx context.Context, req admissi
|
||||
if allErrs := ValidateUpdate(obj, oldObj); len(allErrs) > 0 {
|
||||
return admission.Errored(http.StatusUnprocessableEntity, allErrs.ToAggregate())
|
||||
}
|
||||
case admissionv1beta1.Delete:
|
||||
if allErrs := ValidateDelete(obj); len(allErrs) > 0 {
|
||||
return admission.Errored(http.StatusUnprocessableEntity, allErrs.ToAggregate())
|
||||
}
|
||||
}
|
||||
|
||||
return admission.ValidationResponse(true, "")
|
||||
|
||||
@@ -51,6 +51,8 @@ func (h *MetricsTraitValidatingHandler) Handle(ctx context.Context, req admissio
|
||||
|
||||
err := h.Decoder.Decode(req, obj)
|
||||
if err != nil {
|
||||
validatelog.Error(err, "decoder failed", "req operation", req.AdmissionRequest.Operation, "req",
|
||||
req.AdmissionRequest)
|
||||
return admission.Errored(http.StatusBadRequest, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user