-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: Update Operator SDK version strategy #1250
Changes from 2 commits
2018a9d
69c34c6
b25bbde
756db8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
bin/ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
bin | ||
testbin/* | ||
Dockerfile.cross | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Kubernetes Generated files - skip generated files, except for vendored files | ||
|
||
!vendor/**/zz_generated.* | ||
|
||
# editor and IDE paraphernalia | ||
.idea | ||
*.swp | ||
*.swo | ||
*~ | ||
|
||
# OADP specific | ||
.vscode/ | ||
.idea/ | ||
tests/e2e/e2e.test | ||
cover.out | ||
.DS_Store | ||
tests/e2e/templates/*.yaml | ||
cache/ # `operator-sdk run bundle` caches files in this directory | ||
*.test | ||
# `operator-sdk run bundle` caches files in this directory | ||
cache/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
domain: quay.io | ||
# Code generated by tool. DO NOT EDIT. | ||
# This file is used to track the info used to scaffold your project | ||
# and allow the plugins properly work. | ||
# More info: https://book.kubebuilder.io/reference/project-config.html | ||
domain: openshift.io | ||
layout: | ||
- go.kubebuilder.io/v3 | ||
plugins: | ||
manifests.sdk.operatorframework.io/v2: {} | ||
scorecard.sdk.operatorframework.io/v2: {} | ||
projectName: oadp-operator | ||
repo: github.com/openshift/oadp-operator | ||
version: "3" | ||
resources: | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: openshift.io | ||
group: oadp | ||
kind: DataProtectionApplication | ||
path: github.com/openshift/oadp-operator/api/v1alpha1 | ||
version: v1alpha1 | ||
- api: | ||
crdVersion: v1 | ||
namespaced: true | ||
controller: true | ||
domain: openshift.io | ||
group: oadp | ||
kind: CloudStorage | ||
path: github.com/openshift/oadp-operator/api/v1alpha1 | ||
version: v1alpha1 | ||
version: "3" |
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -28,8 +28,6 @@ var ( | |||
// GroupVersion is group version used to register these objects | ||||
GroupVersion = schema.GroupVersion{Group: "oadp.openshift.io", Version: "v1alpha1"} | ||||
|
||||
Kind = "DataProtectionApplication" | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we wanna add kind back and add to schemebuilder line 32? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think not, I believe this was used only as a constant here oadp-operator/controllers/predicate.go Line 43 in 0347669
I believe the kind is get from theses structs name https://github.com/openshift/oadp-operator/blob/master/api/v1alpha1/oadp_types.go#L281, in each file |
||||
|
||||
// SchemeBuilder is used to add go types to the GroupVersionKind scheme | ||||
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} | ||||
|
||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of creating new Makefile, we could just add our commands to end of the file, like this. This should avoid patching problems