harness.platform.GitOpsRepoCred
Explore with Pulumi AI
Resource for managing a Harness Gitops Repository Credentials.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = new harness.platform.GitOpsRepoCred("test", {
identifier: "identifier",
accountId: "account_id",
agentId: "agent_id",
projectId: "project_id",
orgId: "org_id",
creds: [{
type: "git",
url: "git@github.com:yourorg",
sshPrivateKey: `----- BEGIN OPENSSH PRIVATE KEY-----
XXXXX
XXXXX
XXXXX
-----END OPENSSH PRIVATE KEY -----
`,
}],
});
import pulumi
import pulumi_harness as harness
test = harness.platform.GitOpsRepoCred("test",
identifier="identifier",
account_id="account_id",
agent_id="agent_id",
project_id="project_id",
org_id="org_id",
creds=[{
"type": "git",
"url": "git@github.com:yourorg",
"ssh_private_key": """----- BEGIN OPENSSH PRIVATE KEY-----
XXXXX
XXXXX
XXXXX
-----END OPENSSH PRIVATE KEY -----
""",
}])
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewGitOpsRepoCred(ctx, "test", &platform.GitOpsRepoCredArgs{
Identifier: pulumi.String("identifier"),
AccountId: pulumi.String("account_id"),
AgentId: pulumi.String("agent_id"),
ProjectId: pulumi.String("project_id"),
OrgId: pulumi.String("org_id"),
Creds: platform.GitOpsRepoCredCredArray{
&platform.GitOpsRepoCredCredArgs{
Type: pulumi.String("git"),
Url: pulumi.String("git@github.com:yourorg"),
SshPrivateKey: pulumi.String(`----- BEGIN OPENSSH PRIVATE KEY-----
XXXXX
XXXXX
XXXXX
-----END OPENSSH PRIVATE KEY -----
`),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var test = new Harness.Platform.GitOpsRepoCred("test", new()
{
Identifier = "identifier",
AccountId = "account_id",
AgentId = "agent_id",
ProjectId = "project_id",
OrgId = "org_id",
Creds = new[]
{
new Harness.Platform.Inputs.GitOpsRepoCredCredArgs
{
Type = "git",
Url = "git@github.com:yourorg",
SshPrivateKey = @"----- BEGIN OPENSSH PRIVATE KEY-----
XXXXX
XXXXX
XXXXX
-----END OPENSSH PRIVATE KEY -----
",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.GitOpsRepoCred;
import com.pulumi.harness.platform.GitOpsRepoCredArgs;
import com.pulumi.harness.platform.inputs.GitOpsRepoCredCredArgs;
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 test = new GitOpsRepoCred("test", GitOpsRepoCredArgs.builder()
.identifier("identifier")
.accountId("account_id")
.agentId("agent_id")
.projectId("project_id")
.orgId("org_id")
.creds(GitOpsRepoCredCredArgs.builder()
.type("git")
.url("git@github.com:yourorg")
.sshPrivateKey("""
----- BEGIN OPENSSH PRIVATE KEY-----
XXXXX
XXXXX
XXXXX
-----END OPENSSH PRIVATE KEY -----
""")
.build())
.build());
}
}
resources:
test:
type: harness:platform:GitOpsRepoCred
properties:
identifier: identifier
accountId: account_id
agentId: agent_id
projectId: project_id
orgId: org_id
creds:
- type: git
url: git@github.com:yourorg
sshPrivateKey: |
----- BEGIN OPENSSH PRIVATE KEY-----
XXXXX
XXXXX
XXXXX
-----END OPENSSH PRIVATE KEY -----
Create GitOpsRepoCred Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitOpsRepoCred(name: string, args: GitOpsRepoCredArgs, opts?: CustomResourceOptions);
@overload
def GitOpsRepoCred(resource_name: str,
args: GitOpsRepoCredArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitOpsRepoCred(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
identifier: Optional[str] = None,
creds: Optional[Sequence[GitOpsRepoCredCredArgs]] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
upsert: Optional[bool] = None)
func NewGitOpsRepoCred(ctx *Context, name string, args GitOpsRepoCredArgs, opts ...ResourceOption) (*GitOpsRepoCred, error)
public GitOpsRepoCred(string name, GitOpsRepoCredArgs args, CustomResourceOptions? opts = null)
public GitOpsRepoCred(String name, GitOpsRepoCredArgs args)
public GitOpsRepoCred(String name, GitOpsRepoCredArgs args, CustomResourceOptions options)
type: harness:platform:GitOpsRepoCred
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 GitOpsRepoCredArgs
- 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 GitOpsRepoCredArgs
- 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 GitOpsRepoCredArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitOpsRepoCredArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitOpsRepoCredArgs
- 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 gitOpsRepoCredResource = new Harness.Platform.GitOpsRepoCred("gitOpsRepoCredResource", new()
{
AccountId = "string",
AgentId = "string",
Identifier = "string",
Creds = new[]
{
new Harness.Platform.Inputs.GitOpsRepoCredCredArgs
{
EnableOci = false,
GithubAppEnterpriseBaseUrl = "string",
GithubAppId = "string",
GithubAppInstallationId = "string",
GithubAppPrivateKey = "string",
Password = "string",
SshPrivateKey = "string",
TlsClientCertData = "string",
TlsClientCertKey = "string",
Type = "string",
Url = "string",
Username = "string",
},
},
OrgId = "string",
ProjectId = "string",
Upsert = false,
});
example, err := platform.NewGitOpsRepoCred(ctx, "gitOpsRepoCredResource", &platform.GitOpsRepoCredArgs{
AccountId: pulumi.String("string"),
AgentId: pulumi.String("string"),
Identifier: pulumi.String("string"),
Creds: platform.GitOpsRepoCredCredArray{
&platform.GitOpsRepoCredCredArgs{
EnableOci: pulumi.Bool(false),
GithubAppEnterpriseBaseUrl: pulumi.String("string"),
GithubAppId: pulumi.String("string"),
GithubAppInstallationId: pulumi.String("string"),
GithubAppPrivateKey: pulumi.String("string"),
Password: pulumi.String("string"),
SshPrivateKey: pulumi.String("string"),
TlsClientCertData: pulumi.String("string"),
TlsClientCertKey: pulumi.String("string"),
Type: pulumi.String("string"),
Url: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Upsert: pulumi.Bool(false),
})
var gitOpsRepoCredResource = new GitOpsRepoCred("gitOpsRepoCredResource", GitOpsRepoCredArgs.builder()
.accountId("string")
.agentId("string")
.identifier("string")
.creds(GitOpsRepoCredCredArgs.builder()
.enableOci(false)
.githubAppEnterpriseBaseUrl("string")
.githubAppId("string")
.githubAppInstallationId("string")
.githubAppPrivateKey("string")
.password("string")
.sshPrivateKey("string")
.tlsClientCertData("string")
.tlsClientCertKey("string")
.type("string")
.url("string")
.username("string")
.build())
.orgId("string")
.projectId("string")
.upsert(false)
.build());
git_ops_repo_cred_resource = harness.platform.GitOpsRepoCred("gitOpsRepoCredResource",
account_id="string",
agent_id="string",
identifier="string",
creds=[{
"enable_oci": False,
"github_app_enterprise_base_url": "string",
"github_app_id": "string",
"github_app_installation_id": "string",
"github_app_private_key": "string",
"password": "string",
"ssh_private_key": "string",
"tls_client_cert_data": "string",
"tls_client_cert_key": "string",
"type": "string",
"url": "string",
"username": "string",
}],
org_id="string",
project_id="string",
upsert=False)
const gitOpsRepoCredResource = new harness.platform.GitOpsRepoCred("gitOpsRepoCredResource", {
accountId: "string",
agentId: "string",
identifier: "string",
creds: [{
enableOci: false,
githubAppEnterpriseBaseUrl: "string",
githubAppId: "string",
githubAppInstallationId: "string",
githubAppPrivateKey: "string",
password: "string",
sshPrivateKey: "string",
tlsClientCertData: "string",
tlsClientCertKey: "string",
type: "string",
url: "string",
username: "string",
}],
orgId: "string",
projectId: "string",
upsert: false,
});
type: harness:platform:GitOpsRepoCred
properties:
accountId: string
agentId: string
creds:
- enableOci: false
githubAppEnterpriseBaseUrl: string
githubAppId: string
githubAppInstallationId: string
githubAppPrivateKey: string
password: string
sshPrivateKey: string
tlsClientCertData: string
tlsClientCertKey: string
type: string
url: string
username: string
identifier: string
orgId: string
projectId: string
upsert: false
GitOpsRepoCred 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 GitOpsRepoCred resource accepts the following input properties:
- Account
Id string - Account identifier of the Repository Credentials.
- Agent
Id string - Agent identifier of the Repository Credentials.
- Identifier string
- Identifier of the Repository Credentials.
- Creds
List<Git
Ops Repo Cred Cred> - credential details.
- Org
Id string - Organization identifier of the Repository Credentials.
- Project
Id string - Project identifier of the Repository Credentials.
- Upsert bool
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the Repository Credentials.
- Agent
Id string - Agent identifier of the Repository Credentials.
- Identifier string
- Identifier of the Repository Credentials.
- Creds
[]Git
Ops Repo Cred Cred Args - credential details.
- Org
Id string - Organization identifier of the Repository Credentials.
- Project
Id string - Project identifier of the Repository Credentials.
- Upsert bool
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account
Id String - Account identifier of the Repository Credentials.
- agent
Id String - Agent identifier of the Repository Credentials.
- identifier String
- Identifier of the Repository Credentials.
- creds
List<Git
Ops Repo Cred Cred> - credential details.
- org
Id String - Organization identifier of the Repository Credentials.
- project
Id String - Project identifier of the Repository Credentials.
- upsert Boolean
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account
Id string - Account identifier of the Repository Credentials.
- agent
Id string - Agent identifier of the Repository Credentials.
- identifier string
- Identifier of the Repository Credentials.
- creds
Git
Ops Repo Cred Cred[] - credential details.
- org
Id string - Organization identifier of the Repository Credentials.
- project
Id string - Project identifier of the Repository Credentials.
- upsert boolean
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account_
id str - Account identifier of the Repository Credentials.
- agent_
id str - Agent identifier of the Repository Credentials.
- identifier str
- Identifier of the Repository Credentials.
- creds
Sequence[Git
Ops Repo Cred Cred Args] - credential details.
- org_
id str - Organization identifier of the Repository Credentials.
- project_
id str - Project identifier of the Repository Credentials.
- upsert bool
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account
Id String - Account identifier of the Repository Credentials.
- agent
Id String - Agent identifier of the Repository Credentials.
- identifier String
- Identifier of the Repository Credentials.
- creds List<Property Map>
- credential details.
- org
Id String - Organization identifier of the Repository Credentials.
- project
Id String - Project identifier of the Repository Credentials.
- upsert Boolean
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitOpsRepoCred 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 GitOpsRepoCred Resource
Get an existing GitOpsRepoCred 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?: GitOpsRepoCredState, opts?: CustomResourceOptions): GitOpsRepoCred
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
creds: Optional[Sequence[GitOpsRepoCredCredArgs]] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
upsert: Optional[bool] = None) -> GitOpsRepoCred
func GetGitOpsRepoCred(ctx *Context, name string, id IDInput, state *GitOpsRepoCredState, opts ...ResourceOption) (*GitOpsRepoCred, error)
public static GitOpsRepoCred Get(string name, Input<string> id, GitOpsRepoCredState? state, CustomResourceOptions? opts = null)
public static GitOpsRepoCred get(String name, Output<String> id, GitOpsRepoCredState 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.
- Account
Id string - Account identifier of the Repository Credentials.
- Agent
Id string - Agent identifier of the Repository Credentials.
- Creds
List<Git
Ops Repo Cred Cred> - credential details.
- Identifier string
- Identifier of the Repository Credentials.
- Org
Id string - Organization identifier of the Repository Credentials.
- Project
Id string - Project identifier of the Repository Credentials.
- Upsert bool
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the Repository Credentials.
- Agent
Id string - Agent identifier of the Repository Credentials.
- Creds
[]Git
Ops Repo Cred Cred Args - credential details.
- Identifier string
- Identifier of the Repository Credentials.
- Org
Id string - Organization identifier of the Repository Credentials.
- Project
Id string - Project identifier of the Repository Credentials.
- Upsert bool
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account
Id String - Account identifier of the Repository Credentials.
- agent
Id String - Agent identifier of the Repository Credentials.
- creds
List<Git
Ops Repo Cred Cred> - credential details.
- identifier String
- Identifier of the Repository Credentials.
- org
Id String - Organization identifier of the Repository Credentials.
- project
Id String - Project identifier of the Repository Credentials.
- upsert Boolean
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account
Id string - Account identifier of the Repository Credentials.
- agent
Id string - Agent identifier of the Repository Credentials.
- creds
Git
Ops Repo Cred Cred[] - credential details.
- identifier string
- Identifier of the Repository Credentials.
- org
Id string - Organization identifier of the Repository Credentials.
- project
Id string - Project identifier of the Repository Credentials.
- upsert boolean
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account_
id str - Account identifier of the Repository Credentials.
- agent_
id str - Agent identifier of the Repository Credentials.
- creds
Sequence[Git
Ops Repo Cred Cred Args] - credential details.
- identifier str
- Identifier of the Repository Credentials.
- org_
id str - Organization identifier of the Repository Credentials.
- project_
id str - Project identifier of the Repository Credentials.
- upsert bool
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
- account
Id String - Account identifier of the Repository Credentials.
- agent
Id String - Agent identifier of the Repository Credentials.
- creds List<Property Map>
- credential details.
- identifier String
- Identifier of the Repository Credentials.
- org
Id String - Organization identifier of the Repository Credentials.
- project
Id String - Project identifier of the Repository Credentials.
- upsert Boolean
- Indicates if the GitOps repository credential should be updated if existing and inserted if not.
Supporting Types
GitOpsRepoCredCred, GitOpsRepoCredCredArgs
- Enable
Oci bool - Specifies whether helm-oci support should be enabled for this repo.
- Github
App stringEnterprise Base Url - Specifies the GitHub API URL for GitHub app authentication.
- Github
App stringId - Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
- Github
App stringInstallation Id - Specifies the ID of the installed GitHub App for GitHub app authentication.
- Github
App stringPrivate Key - githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
- Password string
- Password or PAT to be used for authenticating the remote repository.
- Ssh
Private stringKey - SSH Key in PEM format for authenticating the repository. Used only for Git repository.
- Tls
Client stringCert Data - Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
- Tls
Client stringCert Key - Private key in PEM format for authenticating at the repo server. This is used for mTLS.
- Type string
- Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
- Url string
- URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
- Username string
- Username to be used for authenticating the remote repository.
- Enable
Oci bool - Specifies whether helm-oci support should be enabled for this repo.
- Github
App stringEnterprise Base Url - Specifies the GitHub API URL for GitHub app authentication.
- Github
App stringId - Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
- Github
App stringInstallation Id - Specifies the ID of the installed GitHub App for GitHub app authentication.
- Github
App stringPrivate Key - githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
- Password string
- Password or PAT to be used for authenticating the remote repository.
- Ssh
Private stringKey - SSH Key in PEM format for authenticating the repository. Used only for Git repository.
- Tls
Client stringCert Data - Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
- Tls
Client stringCert Key - Private key in PEM format for authenticating at the repo server. This is used for mTLS.
- Type string
- Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
- Url string
- URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
- Username string
- Username to be used for authenticating the remote repository.
- enable
Oci Boolean - Specifies whether helm-oci support should be enabled for this repo.
- github
App StringEnterprise Base Url - Specifies the GitHub API URL for GitHub app authentication.
- github
App StringId - Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
- github
App StringInstallation Id - Specifies the ID of the installed GitHub App for GitHub app authentication.
- github
App StringPrivate Key - githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
- password String
- Password or PAT to be used for authenticating the remote repository.
- ssh
Private StringKey - SSH Key in PEM format for authenticating the repository. Used only for Git repository.
- tls
Client StringCert Data - Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
- tls
Client StringCert Key - Private key in PEM format for authenticating at the repo server. This is used for mTLS.
- type String
- Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
- url String
- URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
- username String
- Username to be used for authenticating the remote repository.
- enable
Oci boolean - Specifies whether helm-oci support should be enabled for this repo.
- github
App stringEnterprise Base Url - Specifies the GitHub API URL for GitHub app authentication.
- github
App stringId - Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
- github
App stringInstallation Id - Specifies the ID of the installed GitHub App for GitHub app authentication.
- github
App stringPrivate Key - githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
- password string
- Password or PAT to be used for authenticating the remote repository.
- ssh
Private stringKey - SSH Key in PEM format for authenticating the repository. Used only for Git repository.
- tls
Client stringCert Data - Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
- tls
Client stringCert Key - Private key in PEM format for authenticating at the repo server. This is used for mTLS.
- type string
- Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
- url string
- URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
- username string
- Username to be used for authenticating the remote repository.
- enable_
oci bool - Specifies whether helm-oci support should be enabled for this repo.
- github_
app_ strenterprise_ base_ url - Specifies the GitHub API URL for GitHub app authentication.
- github_
app_ strid - Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
- github_
app_ strinstallation_ id - Specifies the ID of the installed GitHub App for GitHub app authentication.
- github_
app_ strprivate_ key - githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
- password str
- Password or PAT to be used for authenticating the remote repository.
- ssh_
private_ strkey - SSH Key in PEM format for authenticating the repository. Used only for Git repository.
- tls_
client_ strcert_ data - Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
- tls_
client_ strcert_ key - Private key in PEM format for authenticating at the repo server. This is used for mTLS.
- type str
- Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
- url str
- URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
- username str
- Username to be used for authenticating the remote repository.
- enable
Oci Boolean - Specifies whether helm-oci support should be enabled for this repo.
- github
App StringEnterprise Base Url - Specifies the GitHub API URL for GitHub app authentication.
- github
App StringId - Specifies the Github App ID of the app used to access the repo for GitHub app authentication.
- github
App StringInstallation Id - Specifies the ID of the installed GitHub App for GitHub app authentication.
- github
App StringPrivate Key - githubappprivate_key specifies the private key PEM data for authentication via GitHub app.
- password String
- Password or PAT to be used for authenticating the remote repository.
- ssh
Private StringKey - SSH Key in PEM format for authenticating the repository. Used only for Git repository.
- tls
Client StringCert Data - Certificate in PEM format for authenticating at the repo server. This is used for mTLS.
- tls
Client StringCert Key - Private key in PEM format for authenticating at the repo server. This is used for mTLS.
- type String
- Type specifies the type of the repoCreds.Can be either 'git' or 'helm. 'git' is assumed if empty or absent
- url String
- URL of the remote repository. Make sure you pass at least an org, this will not work if you just provide the host, for eg. "https://github.com"
- username String
- Username to be used for authenticating the remote repository.
Import
Import an Account level Gitops Repository Credentials
$ pulumi import harness:platform/gitOpsRepoCred:GitOpsRepoCred example <agent_id>/<repocred_id>
Import an Org level Gitops Repository Credentials
$ pulumi import harness:platform/gitOpsRepoCred:GitOpsRepoCred example <organization_id>/<agent_id>/<repocred_id>
Import a Project level Gitops Repository Credentials
$ pulumi import harness:platform/gitOpsRepoCred:GitOpsRepoCred example <organization_id>/<project_id>/<agent_id>/<repocred_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.