ConfigFile
ConfigFile creates a set of Kubernetes resources from Kubernetes YAML file. If config.name is not specified, ConfigFile assumes the argument name is the filename.
Create a ConfigFile Resource
new ConfigFile(name: string, args?: ConfigFileOpts, opts?: ComponentResourceOptions);def ConfigFile(resource_name, file, opts=None, transformations=None, resource_prefix=None);func NewConfigFile(ctx *Context, name string, args *ConfigFileArgs, opts ...ResourceOption) (*ConfigFile, error)public ConfigFile(string name, ConfigFileArgs? args = null, ComponentResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ConfigFileOpts
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConfigFileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigFileArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
ConfigFile Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ConfigFile resource accepts the following input properties:
- File string
- Path or a URL that uniquely identifies a file.
- Resource
Prefix string - An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix=“foo” would produce a resource named “foo-resourceName”.
- Transformations List<object>
- A set of transformations to apply to Kubernetes resource definitions before registering with engine.
- File string
- Path or a URL that uniquely identifies a file.
- Resource
Prefix string - An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix=“foo” would produce a resource named “foo-resourceName”.
- Transformations []interface{}
- A set of transformations to apply to Kubernetes resource definitions before registering with engine.
- file string
- Path or a URL that uniquely identifies a file.
- resource
Prefix string - An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix=“foo” would produce a resource named “foo-resourceName”.
- transformations any[]
- A set of transformations to apply to Kubernetes resource definitions before registering with engine.
- file str
- Path or a URL that uniquely identifies a file.
- resource_
prefix str - An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix=“foo” would produce a resource named “foo-resourceName”.
- transformations List[Any]
- A set of transformations to apply to Kubernetes resource definitions before registering with engine.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConfigFile resource produces the following output properties:
Package Details
- Repository
- https://github.com/pulumi/pulumi-kubernetes
- License
- Apache-2.0