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 the ability to add or drop capabilities from containers #249

Closed
wants to merge 1 commit into from
Closed

Add the ability to add or drop capabilities from containers #249

wants to merge 1 commit into from

Conversation

eveld
Copy link
Contributor

@eveld eveld commented Oct 14, 2023

Made it possible to specify a capabilities block on containers where you can specify which to add and drop e.g.

resource "container" "consul" {
  image {
    name = "consul:${variable.consul_version}"
  }

  capabilities {
    add = ["NET_ADMIN"]
    drop = ["ALL"]
  }
}

@eveld eveld requested a review from nicholasjackson October 14, 2023 06:16
@nicholasjackson
Copy link
Contributor

Closing as I added some tests to your code in #251

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