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:
Eduard Filip
2024-03-25 15:41:18 +01:00
committed by GitHub
parent 5f232b121a
commit eda5612827
503 changed files with 30557 additions and 7140 deletions

View File

@@ -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
}

View File

@@ -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
}