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

feat(CIS): Logpush to cloud logs and generic destination #5872

Merged
merged 41 commits into from
Jan 20, 2025

Conversation

arjunchauhanibm
Copy link
Contributor

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@arjunchauhanibm
Copy link
Contributor Author

image

@arjunchauhanibm
Copy link
Contributor Author

Testing for Logpush jobs

  1. Create (creating 3 jobs with different configuration)
image image
  1. Update (updating the destination of 2 jobs to a different location)
image image
  1. Delete (deleting all 3 jobs)
image image
  1. Read
image

@@ -63,6 +73,57 @@ func ResourceIBMCISLogPushJob() *schema.Resource {
},
Description: "Information to identify the LogDNA instance the data will be pushed.",
},
cisLogPushCos: {
Type: schema.TypeString,
Copy link
Collaborator

Choose a reason for hiding this comment

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

why we defined the type as string json can't we define it as list similar cisLogPushIbmCl

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So the attributes inside the Cos are not fixed like they are in IBMCL. In the end we have to send the data as json string only just like in cisLogdna. So i thought it would be better to use the already working approach.

@hkantare hkantare merged commit 9d1a10a into IBM-Cloud:master Jan 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants