cilium.Hubble
Explore with Pulumi AI
Hubble resource for Cilium. This is equivalent to cilium cli: cilium hubble
: It manages cilium hubble
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cilium from "@littlejo/cilium";
const example = new cilium.Hubble("example", {ui: true});
import pulumi
import littlejo_cilium as cilium
example = cilium.Hubble("example", ui=True)
package main
import (
"github.com/littlejo/pulumi-cilium/sdk/go/cilium"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cilium.NewHubble(ctx, "example", &cilium.HubbleArgs{
Ui: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cilium = Littlejo.Cilium;
return await Deployment.RunAsync(() =>
{
var example = new Cilium.Hubble("example", new()
{
Ui = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cilium.Hubble;
import com.pulumi.cilium.HubbleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Hubble("example", HubbleArgs.builder()
.ui(true)
.build());
}
}
resources:
example:
type: cilium:Hubble
properties:
ui: true
Create Hubble Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Hubble(name: string, args?: HubbleArgs, opts?: CustomResourceOptions);
@overload
def Hubble(resource_name: str,
args: Optional[HubbleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Hubble(resource_name: str,
opts: Optional[ResourceOptions] = None,
relay: Optional[bool] = None,
ui: Optional[bool] = None)
func NewHubble(ctx *Context, name string, args *HubbleArgs, opts ...ResourceOption) (*Hubble, error)
public Hubble(string name, HubbleArgs? args = null, CustomResourceOptions? opts = null)
public Hubble(String name, HubbleArgs args)
public Hubble(String name, HubbleArgs args, CustomResourceOptions options)
type: cilium:Hubble
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HubbleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HubbleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HubbleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HubbleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HubbleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hubbleResource = new Cilium.Hubble("hubbleResource", new()
{
Relay = false,
Ui = false,
});
example, err := cilium.NewHubble(ctx, "hubbleResource", &cilium.HubbleArgs{
Relay: pulumi.Bool(false),
Ui: pulumi.Bool(false),
})
var hubbleResource = new Hubble("hubbleResource", HubbleArgs.builder()
.relay(false)
.ui(false)
.build());
hubble_resource = cilium.Hubble("hubbleResource",
relay=False,
ui=False)
const hubbleResource = new cilium.Hubble("hubbleResource", {
relay: false,
ui: false,
});
type: cilium:Hubble
properties:
relay: false
ui: false
Hubble Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Hubble resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Hubble resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Hubble Resource
Get an existing Hubble resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HubbleState, opts?: CustomResourceOptions): Hubble
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
relay: Optional[bool] = None,
ui: Optional[bool] = None) -> Hubble
func GetHubble(ctx *Context, name string, id IDInput, state *HubbleState, opts ...ResourceOption) (*Hubble, error)
public static Hubble Get(string name, Input<string> id, HubbleState? state, CustomResourceOptions? opts = null)
public static Hubble get(String name, Output<String> id, HubbleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
Package Details
- Repository
- cilium littlejo/pulumi-cilium
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cilium
Terraform Provider.