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

data-plane-controller: skip DNS await if nothing changed in pulumi up #1964

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

Conversation

mdibaiee
Copy link
Member

@mdibaiee mdibaiee commented Feb 24, 2025

Description:

  • Skip DNS await if nothing changed. Tested this by running data-plane-controller locally
  • add bastion info columns

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable

@mdibaiee mdibaiee force-pushed the mahdi/skip-dns-await branch 2 times, most recently from 84353eb to 3c3ab46 Compare February 24, 2025 18:39
Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM

We also need the Azure application threaded through into the data_planes table -- should that be part of this PR?

state.last_pulumi_up = chrono::Utc::now();

Ok(DNS_TTL)
if resource_changes.changed() {
Copy link
Member

Choose a reason for hiding this comment

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

nit: you can make this more concise, by having the if block return a tuple of (status, poll-result, log-line).

);
}

let mut out: Vec<stack::PulumiStackHistory> = serde_json::from_slice(&output.stdout).context("failed to parse pulumi stack history output")?;
Copy link
Member

Choose a reason for hiding this comment

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

nit: rustfmt?

@mdibaiee mdibaiee force-pushed the mahdi/skip-dns-await branch from b8b157d to 7262230 Compare February 26, 2025 11:57
@mdibaiee mdibaiee force-pushed the mahdi/skip-dns-await branch from 7262230 to 2b84796 Compare February 26, 2025 12:00
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