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

Add ApplicationCRD Enabled ENV in Publisher deployment #126

Merged
merged 4 commits into from
Oct 5, 2023

Conversation

mfaizanse
Copy link
Member

@mfaizanse mfaizanse commented Oct 4, 2023

Description

Changes proposed in this pull request:

  • Add ApplicationCRD Enabled ENV in Publisher deployment

Related issue(s)

@mfaizanse mfaizanse added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2023
@mfaizanse mfaizanse requested a review from a team as a code owner October 4, 2023 07:22
@mfaizanse mfaizanse requested a review from grischperl October 4, 2023 07:22
@kyma-bot kyma-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 4, 2023
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 4, 2023
@mfaizanse mfaizanse linked an issue Oct 4, 2023 that may be closed by this pull request
5 tasks
@mfaizanse mfaizanse removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 2023
Comment on lines 552 to 559
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,
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Comment on lines +4 to +9
// 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"
Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@mfaizanse mfaizanse requested review from marcobebway and removed request for grischperl October 5, 2023 10:06
@kyma-bot kyma-bot added the lgtm Looks good to me! label Oct 5, 2023
@kyma-bot kyma-bot merged commit ec41b13 into kyma-project:main Oct 5, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make eventing-publisher-proxy work when Application CRD is not installed
3 participants