-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor pkg/controller and fix typo on CRD name
- Loading branch information
Showing
8 changed files
with
297 additions
and
242 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
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,27 @@ | ||
package controller | ||
|
||
import ( | ||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" | ||
"k8s.io/apimachinery/pkg/runtime/schema" | ||
) | ||
|
||
const ( | ||
coreGroup = "core.variant.run" | ||
coreVersion = "v1beta1" | ||
) | ||
|
||
var ( | ||
reconciliationGroupVersionKind = schema.GroupVersionKind{ | ||
Group: coreGroup, | ||
Version: coreVersion, | ||
Kind: "Reconciliation", | ||
} | ||
) | ||
|
||
func newReconciliation() *unstructured.Unstructured { | ||
obj := &unstructured.Unstructured{} | ||
|
||
obj.SetGroupVersionKind(reconciliationGroupVersionKind) | ||
|
||
return obj | ||
} |
Oops, something went wrong.