-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add ApplicationCRD Enabled ENV in Publisher deployment #126
Conversation
pkg/k8s/client_test.go
Outdated
name: "should return not found error when CRD is missing in k8s", | ||
givenCRDName: ApplicationCrdName, | ||
wantNotFoundError: false, | ||
}, | ||
{ | ||
name: "should return correct CRD from k8s", | ||
givenCRDName: "non-existing", | ||
wantNotFoundError: true, |
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.
I think the names of the test cases are switched.
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.
updated
// ApplicationCrdName defines the CRD name for Application of application-connector module. | ||
ApplicationCrdName string = "applications.applicationconnector.kyma-project.io" | ||
// ApplicationKind defines the Kind name for Application of application-connector module. | ||
ApplicationKind string = "Application" | ||
// ApplicationAPIVersion defines the API version for Application of application-connector module. | ||
ApplicationAPIVersion string = "applicationconnector.kyma-project.io/v1alpha1" |
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.
Please check if the Kyma application connector package have similar constants or not, so we can reuse them.
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.
If they have than we have to import the pkg and keep bumping the version for security issues. Would it be okay to keep one variable of our own?
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.
Sure
Description
Changes proposed in this pull request:
Related issue(s)