Skip to content

Commit

Permalink
Merge pull request #64 from awgreene/targetPort
Browse files Browse the repository at this point in the history
Update CSV WebhookDescription struct
  • Loading branch information
awgreene authored Sep 17, 2020
2 parents 329d62c + f83191c commit 61547af
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
6 changes: 6 additions & 0 deletions crds/operators.coreos.com_clusterserviceversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8824,6 +8824,11 @@ spec:
type: string
sideEffects:
type: string
targetPort:
anyOf:
- type: integer
- type: string
x-kubernetes-int-or-string: true
timeoutSeconds:
type: integer
format: int32
Expand All @@ -8834,6 +8839,7 @@ spec:
enum:
- ValidatingAdmissionWebhook
- MutatingAdmissionWebhook
- ConversionWebhook
webhookPath:
type: string
status:
Expand Down
14 changes: 7 additions & 7 deletions crds/zz_defs.go

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pkg/operators/v1alpha1/clusterserviceversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
rbac "k8s.io/api/rbac/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/util/intstr"

"github.com/operator-framework/api/pkg/lib/version"
)
Expand Down Expand Up @@ -167,10 +168,11 @@ const (
// +k8s:openapi-gen=true
type WebhookDescription struct {
GenerateName string `json:"generateName"`
// +kubebuilder:validation:Enum=ValidatingAdmissionWebhook;MutatingAdmissionWebhook
// +kubebuilder:validation:Enum=ValidatingAdmissionWebhook;MutatingAdmissionWebhook;ConversionWebhook
Type WebhookAdmissionType `json:"type"`
DeploymentName string `json:"deploymentName,omitempty"`
ContainerPort int32 `json:"containerPort,omitempty"`
TargetPort *intstr.IntOrString `json:"targetPort,omitempty"`
Rules []admissionregistrationv1.RuleWithOperations `json:"rules,omitempty"`
FailurePolicy *admissionregistrationv1.FailurePolicyType `json:"failurePolicy,omitempty"`
MatchPolicy *admissionregistrationv1.MatchPolicyType `json:"matchPolicy,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions pkg/operators/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 61547af

Please sign in to comment.