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

Implement ODS runbook invocation resource #1020

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ksamoray
Copy link
Collaborator

No description provided.

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 6210c98 to fab5059 Compare November 1, 2023 10:05
@ksamoray
Copy link
Collaborator Author

ksamoray commented Nov 1, 2023

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from fab5059 to 38a032c Compare November 2, 2023 08:10
@ksamoray
Copy link
Collaborator Author

ksamoray commented Nov 2, 2023

/test-all

1 similar comment
@ksamoray
Copy link
Collaborator Author

ksamoray commented Nov 2, 2023

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch 3 times, most recently from 4c403fb to c471bc0 Compare November 6, 2023 10:00
@ksamoray ksamoray force-pushed the ods-runbook-invocation branch 4 times, most recently from dc73bfb to a73f745 Compare November 16, 2023 13:27
Schema: map[string]*schema.Schema{
"nsx_id": getNsxIDSchema(),
"path": getPathSchema(),
// Due to a bug, invocations with a display_name specification fail, and when there's none set, NSX assigns
Copy link
Collaborator

Choose a reason for hiding this comment

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

So the user can't specify display_name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For now, he can't. The runbook won't execute, it's a bug which they intend to fix obviously.

},
},
},
"runbook_path": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

getPolicyPathSchema?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this and below be defined as ForceNew?

return nil
}

func resourceNsxtPolicyODSRunbookInvocationUpdate(d *schema.ResourceData, m interface{}) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the user changes description, this will result in constant non-empty diff. Do tags/description have any value for this resource, perhaps we can remove them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense, if anyone ever needs them we can reevaluate how to handle these.

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from a73f745 to 31e0a22 Compare November 20, 2023 08:48
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 31e0a22 to 9714003 Compare November 20, 2023 09:20
@ksamoray ksamoray force-pushed the ods-runbook-invocation branch 2 times, most recently from 1f7f731 to f79fcee Compare November 29, 2023 09:26
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch 2 times, most recently from 3c78198 to 2e834f5 Compare December 3, 2023 11:19
@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 2e834f5 to abb69c0 Compare December 9, 2023 09:51
@ksamoray
Copy link
Collaborator Author

ksamoray commented Dec 9, 2023

/test-all

1 similar comment
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from abb69c0 to 24c6551 Compare December 10, 2023 08:18
@ksamoray ksamoray requested a review from annakhm December 17, 2023 08:59
@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 24c6551 to d11f365 Compare December 17, 2023 09:05
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from d11f365 to 5ccfd16 Compare January 4, 2024 16:40
@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 5ccfd16 to 2efb4ac Compare January 23, 2024 09:10
@ksamoray
Copy link
Collaborator Author

/test-all

@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 2efb4ac to 2546fb7 Compare April 2, 2024 12:56
Implement nsxt_policy_ods_pre_defined_runbook for ODS runbook framework.

Signed-off-by: Kobi Samoray <[email protected]>
@ksamoray ksamoray force-pushed the ods-runbook-invocation branch from 2546fb7 to af8205f Compare April 15, 2024 07:29
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