Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show repository snapshot list #319

Closed
tamalsaha opened this issue Feb 6, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@tamalsaha
Copy link
Contributor

commented Feb 6, 2018

  • Add api types
  • Create Repository crd
  • Implement registry for Snapshot
  • Update docs/installer
repository.stash.appscode.com / v1alpha1
RepoSnapshpot

apis/restic.stash.appscode.com/v1alpha1/namespaces/<ns>/reposnaphsots/<RESTIC>/<>
?
workload_kind=
workload_name=
nodename=
pod_ordinal=

Workload        NodeName    Ordinal   SnapshotID  <snapshot timestamp>  path
deploy/<name>
ds/<name>       <node>


type Snapshot struct {
	TypeMeta
	ObjectMeta
	Data  []Repository
}

type Repository struct {
	Path
	workload_kind
	workload_name
	nodename
	pod_ordinal

	History []SnapshotData
}

@tamalsaha tamalsaha added this to the 0.7.0 milestone Feb 6, 2018

@tamalsaha tamalsaha modified the milestones: 0.7.0, 0.8.0 Feb 20, 2018

@tamalsaha

This comment has been minimized.

Copy link
Contributor Author

commented Mar 21, 2018

Repository {
	labels:
		restic: <name>
		workload-kind: <>
		workload-name: <>
		node-name: <>
		pod-ordinal: <>
	spec:
		backend:
}

Snapshot {
	labels:
		restic: <name>
		workload-kind: <>
		workload-name: <>
		node-name: <>
		pod-ordinal: <>
	  	repository: <name>
	 status:
	 	Tree     string
		Paths    []string
		Hostname string
		Username string
		UID      int
		Gid      int
}


Deployment  | Pod
------------------------
Repository  | Snapshot

Repo Name:
<kind>/<name>-<node-name>


$ kubectl get repositories -n default


# for all repository
$ kubectl get snapshots -n default


# for a repo
$ kubectl get snapshots -n default -l repository=<>

$ kubectl get snapshots -n default -l workload-kind=<>,workload-name=<>

@tamalsaha tamalsaha modified the milestones: 0.8.0, 0.7.0 Apr 4, 2018

@hossainemruz hossainemruz referenced this issue Apr 5, 2018

Merged

Show repository snapshot list #417

5 of 5 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.