mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 23:48:05 +00:00
Upgrade Operator SDK to v1.34.1 and update dependencies (#185)
This does the following updates: * Upgrade to Operator SDK v1.34.1. This fixes building multi-arch images from Makefile. Check this MR from operator-framework for details. * Update Go dependencies. This addresses Dependabot alert ["Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON"](https://github.com/1Password/onepassword-operator/security/dependabot/13). * Update versions of the GitHub Actions used in the pipelines. * Update Kubernetes related tools (such as controller-tools version, and operator-sdk for ci pipelines) By updating dependencies, the pipelines no longer fail due to a panic error when running `make test`.
This commit is contained in:
@@ -30,6 +30,7 @@ type ValidationRuleApplyConfiguration struct {
|
||||
MessageExpression *string `json:"messageExpression,omitempty"`
|
||||
Reason *v1.FieldValueErrorReason `json:"reason,omitempty"`
|
||||
FieldPath *string `json:"fieldPath,omitempty"`
|
||||
OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"`
|
||||
}
|
||||
|
||||
// ValidationRuleApplyConfiguration constructs an declarative configuration of the ValidationRule type for use with
|
||||
@@ -77,3 +78,11 @@ func (b *ValidationRuleApplyConfiguration) WithFieldPath(value string) *Validati
|
||||
b.FieldPath = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithOptionalOldSelf sets the OptionalOldSelf field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the OptionalOldSelf field is set to the value of the last call.
|
||||
func (b *ValidationRuleApplyConfiguration) WithOptionalOldSelf(value bool) *ValidationRuleApplyConfiguration {
|
||||
b.OptionalOldSelf = &value
|
||||
return b
|
||||
}
|
||||
|
@@ -30,6 +30,7 @@ type ValidationRuleApplyConfiguration struct {
|
||||
MessageExpression *string `json:"messageExpression,omitempty"`
|
||||
Reason *v1beta1.FieldValueErrorReason `json:"reason,omitempty"`
|
||||
FieldPath *string `json:"fieldPath,omitempty"`
|
||||
OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"`
|
||||
}
|
||||
|
||||
// ValidationRuleApplyConfiguration constructs an declarative configuration of the ValidationRule type for use with
|
||||
@@ -77,3 +78,11 @@ func (b *ValidationRuleApplyConfiguration) WithFieldPath(value string) *Validati
|
||||
b.FieldPath = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithOptionalOldSelf sets the OptionalOldSelf field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the OptionalOldSelf field is set to the value of the last call.
|
||||
func (b *ValidationRuleApplyConfiguration) WithOptionalOldSelf(value bool) *ValidationRuleApplyConfiguration {
|
||||
b.OptionalOldSelf = &value
|
||||
return b
|
||||
}
|
||||
|
Reference in New Issue
Block a user