-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add constants and update rsync source spec
Signed-off-by: Shovan Maity <shovan.cse91@gmail.com>
- Loading branch information
1 parent
e3c9fd9
commit d89b0c4
Showing
11 changed files
with
74 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package constant | ||
|
||
const ( | ||
// ComponentNameRsyncSourceController is identity of rsync source | ||
// controller. This is used to add label to the components those | ||
// are created by rsync source controller. | ||
ComponentNameRsyncSourceController = "rsync-source-controller" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package constant | ||
|
||
const ( | ||
// RsyncSourceProtectionFinalizer used to maintain resource created for rsync source. | ||
// This finalizer is used to cleanup the resource created for a rsync source cr. | ||
RsyncSourceProtectionFinalizer = "demo.io/rsync-source-protection" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
package constant | ||
|
||
const ( | ||
// VersionV1 is used to denote API resources of version v1. | ||
VersionV1 = "v1" | ||
) | ||
|
||
const ( | ||
// GroupDemoIO is used to denote API resources of group demo.io. | ||
GroupDemoIO = "demo.io" | ||
) | ||
|
||
const ( | ||
RsyncPopulatorKind = "RsyncPopulator" | ||
RsyncSourceKind = "RsyncSource" | ||
// RsyncSourceKind is used to denote API resources of kind RsyncSource. | ||
RsyncSourceKind = "RsyncSource" | ||
) | ||
|
||
const ( | ||
RsyncPopulatorResource = "rsyncpopulators" | ||
RsyncSourceResource = "rsyncsources" | ||
// RsyncSourceSource is used to denote source of API resource RsyncSource. | ||
RsyncSourceResource = "rsyncsources" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package constant | ||
|
||
const ( | ||
// CreatedByLabel label is added to the components those are created | ||
// by any controller in this project. | ||
CreatedByLabel = "demo.io/created-by" | ||
// NameLabel label is added to the components those are created | ||
// by any controller in this project. | ||
NameLabel = "demo.io/name" | ||
// AppLabel label is added to the components those are created | ||
// by any controller in this project. | ||
AppLabel = "demo.io/app" | ||
// K8SIOHostName used for get resources with kubernetes.io/hostname label | ||
// or assign this to some resources. | ||
K8SIOHostName = "kubernetes.io/hostname" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/kvclone/types | ||
module github.com/k8s-volume-copy/types | ||
|
||
go 1.14 | ||
|
||
|