Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/v1alpha1/gitsync_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type CommitTemplate struct {

// GitSyncSpec defines the desired state of GitSync
type GitSyncSpec struct {
ComponentRef Ref `json:"componentRef"`
SnapshotRef Ref `json:"snapshotRef"`
Interval metav1.Duration `json:"interval"`
URL string `json:"url"`
Expand Down
1 change: 0 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

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

12 changes: 0 additions & 12 deletions config/crd/bases/delivery.ocm.software_gitsyncs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,6 @@ spec:
- message
- name
type: object
componentRef:
description: Ref defines a name and namespace ref to any object.
properties:
name:
type: string
namespace:
type: string
required:
- name
- namespace
type: object
interval:
type: string
prune:
Expand All @@ -97,7 +86,6 @@ spec:
- authRef
- branch
- commitTemplate
- componentRef
- interval
- snapshotRef
- subPath
Expand Down
7 changes: 1 addition & 6 deletions controllers/gitsync_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
)

func TestGitSyncReconciler(t *testing.T) {
cv := DefaultComponent.DeepCopy()
snapshot := DefaultSnapshot.DeepCopy()
secret := &v1.Secret{
ObjectMeta: metav1.ObjectMeta{
Expand All @@ -36,10 +35,6 @@ func TestGitSyncReconciler(t *testing.T) {
Namespace: "default",
},
Spec: v1alpha1.GitSyncSpec{
ComponentRef: v1alpha1.Ref{
Name: cv.Name,
Namespace: cv.Namespace,
},
SnapshotRef: v1alpha1.Ref{
Name: snapshot.Name,
Namespace: snapshot.Namespace,
Expand All @@ -60,7 +55,7 @@ func TestGitSyncReconciler(t *testing.T) {
},
}

client := env.FakeKubeClient(WithObjets(gitSync, snapshot, cv, secret), WithAddToScheme(ocmv1.AddToScheme))
client := env.FakeKubeClient(WithObjets(gitSync, snapshot, secret), WithAddToScheme(ocmv1.AddToScheme))
m := &mockGit{
digest: "test-digest",
}
Expand Down