Skip to content

Onboarding Intake(1/3): Intake Runner#1086

Open
devanshcache wants to merge 23 commits intostackitcloud:mainfrom
stackit-intake:onboard-intake
Open

Onboarding Intake(1/3): Intake Runner#1086
devanshcache wants to merge 23 commits intostackitcloud:mainfrom
stackit-intake:onboard-intake

Conversation

@devanshcache
Copy link

Description

This PR onboards the new STACKIT Intake (ticket) service into the Terraform provider.

Intake is composed of three components:

  • Intake Runners: dedicated, isolated runtime data ingestion environment
  • Intake: a specific data stream or topic within an Intake Runner
  • Intake Users: provides secure access credentials for your applications to connect to your Intake

This PR contains the Intake Runners part only to make a quicker and less overwhelming review.

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Acceptance tests got implemented or updated (see e.g. here)
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

@devanshcache devanshcache requested a review from a team as a code owner December 8, 2025 08:08
@devanshcache devanshcache changed the title onboarding(1/3): Intake Runner Onboarding Intake(1/3): Intake Runner Dec 8, 2025
@@ -0,0 +1,160 @@
package runner_test
Copy link
Member

Choose a reason for hiding this comment

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

Could you move this file please to stackit/internal/services/intake/intake_acc_test.go please?

We have one acc test for each service usually. See https://github.com/stackitcloud/terraform-provider-stackit/blob/da2bb41b1e1c702e8aa53ae5221f5a49bd6a9251/stackit/internal/services/git/git_acc_test.go for reference 😅

Choose a reason for hiding this comment

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

resolved

@rubenhoenle
Copy link
Member

@yago-123 could you please resolve the comments you adressed already? I will only start with another review as soon as all open comments are resolved.

@rubenhoenle
Copy link
Member

And please check that failing CI pipeline. Maybe run a make lint and a make test before your next update of this PR 😅

@yago-123
Copy link

@yago-123 could you please resolve the comments you adressed already? I will only start with another review as soon as all open comments are resolved.

Yes! notice this is still in progress though

@yago-123 yago-123 force-pushed the onboard-intake branch 3 times, most recently from 9d5b54d to 3922287 Compare January 27, 2026 14:54
@yago-123
Copy link

@yago-123 CI pipeline is failing

@rubenhoenle this should be ready now

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

This PR was marked as stale after 7 days of inactivity and will be closed after another 7 days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it.

@github-actions github-actions bot added the Stale PR is marked as stale due to inactivity. label Feb 7, 2026
@rubenhoenle rubenhoenle removed the Stale PR is marked as stale due to inactivity. label Feb 11, 2026

# stackit_intake_runner (Data Source)

Datasource for STACKIT Intake Runner.
Copy link
Member

Choose a reason for hiding this comment

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

example still missing

resource.TestCheckResourceAttr(intakeRunnerResource, "max_message_size_kib", "1024"),
resource.TestCheckResourceAttr(intakeRunnerResource, "max_messages_per_hour", "1000"),
resource.TestCheckResourceAttrSet(intakeRunnerResource, "id"),
resource.TestCheckResourceAttrSet(intakeRunnerResource, "region"),
Copy link
Member

Choose a reason for hiding this comment

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

please check for the actual value (testutil.Region)

ConfigVariables: testConfigVarsMinUpdated(),
Config: testutil.IntakeProviderConfig() + "\n" + resourceMin,
Check: resource.ComposeAggregateTestCheckFunc(
resource.TestCheckResourceAttr(intakeRunnerResource, "name", intakeRunnerMinNameUpdated),
Copy link
Member

Choose a reason for hiding this comment

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

also check all the other fields here please

resource.TestCheckResourceAttr(intakeRunnerResource, "labels.created_by", "terraform-provider-stackit"),
resource.TestCheckResourceAttrSet(intakeRunnerResource, "runner_id"),
resource.TestCheckResourceAttrSet(intakeRunnerResource, "id"),
resource.TestCheckResourceAttrSet(intakeRunnerResource, "region"),
Copy link
Member

Choose a reason for hiding this comment

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

same here, check the actual value

resource.TestCheckResourceAttr(intakeRunnerResource, "project_id", testutil.ConvertConfigVariable(testConfigVarsMax["project_id"])),
resource.TestCheckResourceAttr(intakeRunnerResource, "name", testutil.ConvertConfigVariable(testConfigVarsMax["name"])),
resource.TestCheckResourceAttr(intakeRunnerResource, "description", "An example runner for Intake"),
resource.TestCheckResourceAttr(intakeRunnerResource, "max_message_size_kib", "1024"),
Copy link
Member

Choose a reason for hiding this comment

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

please use a variable instead of hardcoding these values (max_message_size_kib, description, max_messages_per_hour, ...)

{
ConfigVariables: testConfigVarsMaxUpdated(),
Config: testutil.IntakeProviderConfig() + "\n" + resourceMax,
Check: resource.ComposeAggregateTestCheckFunc(
Copy link
Member

Choose a reason for hiding this comment

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

check all fields here please

const intakeRunnerResource = "stackit_intake_runner.example"

const (
intakeRunnerMinName = "intake-min-runner"
Copy link
Member

Choose a reason for hiding this comment

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

This belongs into testConfigVarsMin please. Define and consume the values from there.

intakeRunnerMaxNameUpdated = "intake-max-runner-upd"
)

var testConfigVarsMin = config.Variables{
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var testConfigVarsMin = config.Variables{
var testIntakeRunnerConfigVarsMin = config.Variables{

Copy link
Member

Choose a reason for hiding this comment

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

applies to the others as well

)

//go:embed testdata/resource-min.tf
var resourceMin string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var resourceMin string
var resourceIntakeRunnerMin string

var resourceMin string

//go:embed testdata/resource-max.tf
var resourceMax string
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var resourceMax string
var resourceIntakeRunnerMax string

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.

4 participants