Skip to content

Commit

Permalink
align with kubevela-v1.9.10 from commit 24756fc507665bff5cbd6108e6339…
Browse files Browse the repository at this point in the history
…1a3e50fa96b
  • Loading branch information
kubevela-bot committed Mar 15, 2024
1 parent a464b8b commit 012dadc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/oam/mock/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func (m *Conditioned) GetCondition(ct condition.ConditionType) condition.Conditi
}

// ManagedResourceReferencer is a mock that implements ManagedResourceReferencer interface.
type ManagedResourceReferencer struct{ Ref *corev1.ObjectReference }
type ManagedResourceReferencer struct {
Ref *corev1.ObjectReference `json:"ref"`
}

// SetResourceReference sets the ResourceReference.
func (m *ManagedResourceReferencer) SetResourceReference(r *corev1.ObjectReference) { m.Ref = r }
Expand All @@ -53,7 +55,9 @@ func (m *ManagedResourceReferencer) SetResourceReference(r *corev1.ObjectReferen
func (m *ManagedResourceReferencer) GetResourceReference() *corev1.ObjectReference { return m.Ref }

// A WorkloadReferencer references an OAM Workload type.
type WorkloadReferencer struct{ Ref corev1.ObjectReference }
type WorkloadReferencer struct {
Ref corev1.ObjectReference `json:"ref"`
}

// GetWorkloadReference gets the WorkloadReference.
func (w *WorkloadReferencer) GetWorkloadReference() corev1.ObjectReference {
Expand Down Expand Up @@ -201,7 +205,7 @@ type LocalSecretReference struct {

// LocalConnectionSecretWriterTo is a mock that implements LocalConnectionSecretWriterTo interface.
type LocalConnectionSecretWriterTo struct {
Ref *LocalSecretReference
Ref *LocalSecretReference `json:"local_secret_ref"`
}

// SetWriteConnectionSecretToReference sets the WriteConnectionSecretToReference.
Expand Down

0 comments on commit 012dadc

Please sign in to comment.