qovery.HelmRepository
Explore with Pulumi AI
# qovery.HelmRepository (Resource)
Provides a Qovery helm repository resource. This can be used to create and manage Qovery helm repository.
Example
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@ediri/qovery";
const myHelmRepository = new qovery.HelmRepository("myHelmRepository", {
organizationId: qovery_organization.my_organization.id,
kind: "OCI_DOCKER_HUB",
url: "https://docker.io",
skipTlsVerification: false,
description: "My Helm repository",
config: {
username: "<my_username>",
password: "<my_password>",
},
}, {
dependsOn: [qovery_organization.my_organization],
});
import pulumi
import ediri_qovery as qovery
my_helm_repository = qovery.HelmRepository("myHelmRepository",
organization_id=qovery_organization["my_organization"]["id"],
kind="OCI_DOCKER_HUB",
url="https://docker.io",
skip_tls_verification=False,
description="My Helm repository",
config={
"username": "<my_username>",
"password": "<my_password>",
},
opts = pulumi.ResourceOptions(depends_on=[qovery_organization["my_organization"]]))
package main
import (
"github.com/dirien/pulumi-qovery/sdk/go/qovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := qovery.NewHelmRepository(ctx, "myHelmRepository", &qovery.HelmRepositoryArgs{
OrganizationId: pulumi.Any(qovery_organization.My_organization.Id),
Kind: pulumi.String("OCI_DOCKER_HUB"),
Url: pulumi.String("https://docker.io"),
SkipTlsVerification: pulumi.Bool(false),
Description: pulumi.String("My Helm repository"),
Config: &qovery.HelmRepositoryConfigArgs{
Username: pulumi.String("<my_username>"),
Password: pulumi.String("<my_password>"),
},
}, pulumi.DependsOn([]pulumi.Resource{
qovery_organization.My_organization,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = ediri.Qovery;
return await Deployment.RunAsync(() =>
{
var myHelmRepository = new Qovery.HelmRepository("myHelmRepository", new()
{
OrganizationId = qovery_organization.My_organization.Id,
Kind = "OCI_DOCKER_HUB",
Url = "https://docker.io",
SkipTlsVerification = false,
Description = "My Helm repository",
Config = new Qovery.Inputs.HelmRepositoryConfigArgs
{
Username = "<my_username>",
Password = "<my_password>",
},
}, new CustomResourceOptions
{
DependsOn =
{
qovery_organization.My_organization,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.HelmRepository;
import com.pulumi.qovery.HelmRepositoryArgs;
import com.pulumi.qovery.inputs.HelmRepositoryConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 myHelmRepository = new HelmRepository("myHelmRepository", HelmRepositoryArgs.builder()
.organizationId(qovery_organization.my_organization().id())
.kind("OCI_DOCKER_HUB")
.url("https://docker.io")
.skipTlsVerification(false)
.description("My Helm repository")
.config(HelmRepositoryConfigArgs.builder()
.username("<my_username>")
.password("<my_password>")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(qovery_organization.my_organization())
.build());
}
}
resources:
myHelmRepository:
type: qovery:HelmRepository
properties:
# Required
organizationId: ${qovery_organization.my_organization.id}
kind: OCI_DOCKER_HUB
url: https://docker.io
skipTlsVerification: false
# Optional
description: My Helm repository
config:
username: <my_username>
password: <my_password>
options:
dependson:
- ${qovery_organization.my_organization}
Create HelmRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HelmRepository(name: string, args: HelmRepositoryArgs, opts?: CustomResourceOptions);
@overload
def HelmRepository(resource_name: str,
args: HelmRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HelmRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
kind: Optional[str] = None,
organization_id: Optional[str] = None,
skip_tls_verification: Optional[bool] = None,
url: Optional[str] = None,
config: Optional[HelmRepositoryConfigArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewHelmRepository(ctx *Context, name string, args HelmRepositoryArgs, opts ...ResourceOption) (*HelmRepository, error)
public HelmRepository(string name, HelmRepositoryArgs args, CustomResourceOptions? opts = null)
public HelmRepository(String name, HelmRepositoryArgs args)
public HelmRepository(String name, HelmRepositoryArgs args, CustomResourceOptions options)
type: qovery:HelmRepository
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 HelmRepositoryArgs
- 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 HelmRepositoryArgs
- 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 HelmRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HelmRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HelmRepositoryArgs
- 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 helmRepositoryResource = new Qovery.HelmRepository("helmRepositoryResource", new()
{
Kind = "string",
OrganizationId = "string",
SkipTlsVerification = false,
Url = "string",
Config = new Qovery.Inputs.HelmRepositoryConfigArgs
{
AccessKeyId = "string",
Password = "string",
Region = "string",
ScalewayAccessKey = "string",
ScalewaySecretKey = "string",
SecretAccessKey = "string",
Username = "string",
},
Description = "string",
Name = "string",
});
example, err := qovery.NewHelmRepository(ctx, "helmRepositoryResource", &qovery.HelmRepositoryArgs{
Kind: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
SkipTlsVerification: pulumi.Bool(false),
Url: pulumi.String("string"),
Config: &qovery.HelmRepositoryConfigArgs{
AccessKeyId: pulumi.String("string"),
Password: pulumi.String("string"),
Region: pulumi.String("string"),
ScalewayAccessKey: pulumi.String("string"),
ScalewaySecretKey: pulumi.String("string"),
SecretAccessKey: pulumi.String("string"),
Username: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var helmRepositoryResource = new HelmRepository("helmRepositoryResource", HelmRepositoryArgs.builder()
.kind("string")
.organizationId("string")
.skipTlsVerification(false)
.url("string")
.config(HelmRepositoryConfigArgs.builder()
.accessKeyId("string")
.password("string")
.region("string")
.scalewayAccessKey("string")
.scalewaySecretKey("string")
.secretAccessKey("string")
.username("string")
.build())
.description("string")
.name("string")
.build());
helm_repository_resource = qovery.HelmRepository("helmRepositoryResource",
kind="string",
organization_id="string",
skip_tls_verification=False,
url="string",
config={
"access_key_id": "string",
"password": "string",
"region": "string",
"scaleway_access_key": "string",
"scaleway_secret_key": "string",
"secret_access_key": "string",
"username": "string",
},
description="string",
name="string")
const helmRepositoryResource = new qovery.HelmRepository("helmRepositoryResource", {
kind: "string",
organizationId: "string",
skipTlsVerification: false,
url: "string",
config: {
accessKeyId: "string",
password: "string",
region: "string",
scalewayAccessKey: "string",
scalewaySecretKey: "string",
secretAccessKey: "string",
username: "string",
},
description: "string",
name: "string",
});
type: qovery:HelmRepository
properties:
config:
accessKeyId: string
password: string
region: string
scalewayAccessKey: string
scalewaySecretKey: string
secretAccessKey: string
username: string
description: string
kind: string
name: string
organizationId: string
skipTlsVerification: false
url: string
HelmRepository 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 HelmRepository resource accepts the following input properties:
- Kind string
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - Organization
Id string - Id of the organization.
- Skip
Tls boolVerification - Bypass tls certificate verification when connecting to repository
- Url string
- URL of the helm repository.
- Config
ediri.
Qovery. Inputs. Helm Repository Config - Configuration needed to authenticate the helm repository.
- Description string
- Description of the helm repository.
- Name string
- Name of the helm repository.
- Kind string
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - Organization
Id string - Id of the organization.
- Skip
Tls boolVerification - Bypass tls certificate verification when connecting to repository
- Url string
- URL of the helm repository.
- Config
Helm
Repository Config Args - Configuration needed to authenticate the helm repository.
- Description string
- Description of the helm repository.
- Name string
- Name of the helm repository.
- kind String
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - organization
Id String - Id of the organization.
- skip
Tls BooleanVerification - Bypass tls certificate verification when connecting to repository
- url String
- URL of the helm repository.
- config
Helm
Repository Config - Configuration needed to authenticate the helm repository.
- description String
- Description of the helm repository.
- name String
- Name of the helm repository.
- kind string
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - organization
Id string - Id of the organization.
- skip
Tls booleanVerification - Bypass tls certificate verification when connecting to repository
- url string
- URL of the helm repository.
- config
Helm
Repository Config - Configuration needed to authenticate the helm repository.
- description string
- Description of the helm repository.
- name string
- Name of the helm repository.
- kind str
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - organization_
id str - Id of the organization.
- skip_
tls_ boolverification - Bypass tls certificate verification when connecting to repository
- url str
- URL of the helm repository.
- config
Helm
Repository Config Args - Configuration needed to authenticate the helm repository.
- description str
- Description of the helm repository.
- name str
- Name of the helm repository.
- kind String
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - organization
Id String - Id of the organization.
- skip
Tls BooleanVerification - Bypass tls certificate verification when connecting to repository
- url String
- URL of the helm repository.
- config Property Map
- Configuration needed to authenticate the helm repository.
- description String
- Description of the helm repository.
- name String
- Name of the helm repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the HelmRepository 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 HelmRepository Resource
Get an existing HelmRepository 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?: HelmRepositoryState, opts?: CustomResourceOptions): HelmRepository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[HelmRepositoryConfigArgs] = None,
description: Optional[str] = None,
kind: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
skip_tls_verification: Optional[bool] = None,
url: Optional[str] = None) -> HelmRepository
func GetHelmRepository(ctx *Context, name string, id IDInput, state *HelmRepositoryState, opts ...ResourceOption) (*HelmRepository, error)
public static HelmRepository Get(string name, Input<string> id, HelmRepositoryState? state, CustomResourceOptions? opts = null)
public static HelmRepository get(String name, Output<String> id, HelmRepositoryState 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.
- Config
ediri.
Qovery. Inputs. Helm Repository Config - Configuration needed to authenticate the helm repository.
- Description string
- Description of the helm repository.
- Kind string
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - Name string
- Name of the helm repository.
- Organization
Id string - Id of the organization.
- Skip
Tls boolVerification - Bypass tls certificate verification when connecting to repository
- Url string
- URL of the helm repository.
- Config
Helm
Repository Config Args - Configuration needed to authenticate the helm repository.
- Description string
- Description of the helm repository.
- Kind string
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - Name string
- Name of the helm repository.
- Organization
Id string - Id of the organization.
- Skip
Tls boolVerification - Bypass tls certificate verification when connecting to repository
- Url string
- URL of the helm repository.
- config
Helm
Repository Config - Configuration needed to authenticate the helm repository.
- description String
- Description of the helm repository.
- kind String
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - name String
- Name of the helm repository.
- organization
Id String - Id of the organization.
- skip
Tls BooleanVerification - Bypass tls certificate verification when connecting to repository
- url String
- URL of the helm repository.
- config
Helm
Repository Config - Configuration needed to authenticate the helm repository.
- description string
- Description of the helm repository.
- kind string
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - name string
- Name of the helm repository.
- organization
Id string - Id of the organization.
- skip
Tls booleanVerification - Bypass tls certificate verification when connecting to repository
- url string
- URL of the helm repository.
- config
Helm
Repository Config Args - Configuration needed to authenticate the helm repository.
- description str
- Description of the helm repository.
- kind str
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - name str
- Name of the helm repository.
- organization_
id str - Id of the organization.
- skip_
tls_ boolverification - Bypass tls certificate verification when connecting to repository
- url str
- URL of the helm repository.
- config Property Map
- Configuration needed to authenticate the helm repository.
- description String
- Description of the helm repository.
- kind String
- Kind of the helm repository. - Can be:
HTTPS
,OCI_DOCKER_HUB
,OCI_DOCR
,OCI_ECR
,OCI_GENERIC_CR
,OCI_GITHUB_CR
,OCI_GITLAB_CR
,OCI_PUBLIC_ECR
,OCI_SCALEWAY_CR
. - name String
- Name of the helm repository.
- organization
Id String - Id of the organization.
- skip
Tls BooleanVerification - Bypass tls certificate verification when connecting to repository
- url String
- URL of the helm repository.
Supporting Types
HelmRepositoryConfig, HelmRepositoryConfigArgs
- Access
Key stringId - Required if kind is
ECR
orPUBLIC_ECR
. - Password string
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`. - Region string
- Required if kind is
ECR
orSCALEWAY_CR
. - Scaleway
Access stringKey - Required if kind is
SCALEWAY_CR
. - Scaleway
Secret stringKey - Required if kind is
SCALEWAY_CR
. - Secret
Access stringKey - Required if kind is
ECR
orPUBLIC_ECR
. - Username string
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`.
- Access
Key stringId - Required if kind is
ECR
orPUBLIC_ECR
. - Password string
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`. - Region string
- Required if kind is
ECR
orSCALEWAY_CR
. - Scaleway
Access stringKey - Required if kind is
SCALEWAY_CR
. - Scaleway
Secret stringKey - Required if kind is
SCALEWAY_CR
. - Secret
Access stringKey - Required if kind is
ECR
orPUBLIC_ECR
. - Username string
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`.
- access
Key StringId - Required if kind is
ECR
orPUBLIC_ECR
. - password String
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`. - region String
- Required if kind is
ECR
orSCALEWAY_CR
. - scaleway
Access StringKey - Required if kind is
SCALEWAY_CR
. - scaleway
Secret StringKey - Required if kind is
SCALEWAY_CR
. - secret
Access StringKey - Required if kind is
ECR
orPUBLIC_ECR
. - username String
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`.
- access
Key stringId - Required if kind is
ECR
orPUBLIC_ECR
. - password string
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`. - region string
- Required if kind is
ECR
orSCALEWAY_CR
. - scaleway
Access stringKey - Required if kind is
SCALEWAY_CR
. - scaleway
Secret stringKey - Required if kind is
SCALEWAY_CR
. - secret
Access stringKey - Required if kind is
ECR
orPUBLIC_ECR
. - username string
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`.
- access_
key_ strid - Required if kind is
ECR
orPUBLIC_ECR
. - password str
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`. - region str
- Required if kind is
ECR
orSCALEWAY_CR
. - scaleway_
access_ strkey - Required if kind is
SCALEWAY_CR
. - scaleway_
secret_ strkey - Required if kind is
SCALEWAY_CR
. - secret_
access_ strkey - Required if kind is
ECR
orPUBLIC_ECR
. - username str
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`.
- access
Key StringId - Required if kind is
ECR
orPUBLIC_ECR
. - password String
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`. - region String
- Required if kind is
ECR
orSCALEWAY_CR
. - scaleway
Access StringKey - Required if kind is
SCALEWAY_CR
. - scaleway
Secret StringKey - Required if kind is
SCALEWAY_CR
. - secret
Access StringKey - Required if kind is
ECR
orPUBLIC_ECR
. - username String
- Required if kinds are
DOCKER_HUB
,GITHUB_CR
,GITLAB
CR,
GENERIC_CR`.
Import
$ pulumi import qovery:index/helmRepository:HelmRepository my_helm_repository "<organization_id>,<helm_repository_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
qovery
Terraform Provider.