harness.platform.GitOpsRepository
Explore with Pulumi AI
Resource for creating Harness Gitops Repositories.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
return await Deployment.RunAsync(() =>
{
var example = new Harness.Platform.GitOpsRepository("example", new()
{
AccountId = "account_id",
AgentId = "agent_id",
Identifier = "identifier",
OrgId = "org_id",
ProjectId = "project_id",
Repos = new[]
{
new Harness.Platform.Inputs.GitOpsRepositoryRepoArgs
{
ConnectionType = "HTTPS_ANONYMOUS",
Insecure = true,
Name = "repo_name",
Repo = "https://github.com/willycoll/argocd-example-apps.git",
},
},
Upsert = true,
});
});
package main
import (
"github.com/lbrlabs/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.NewGitOpsRepository(ctx, "example", &platform.GitOpsRepositoryArgs{
AccountId: pulumi.String("account_id"),
AgentId: pulumi.String("agent_id"),
Identifier: pulumi.String("identifier"),
OrgId: pulumi.String("org_id"),
ProjectId: pulumi.String("project_id"),
Repos: platform.GitOpsRepositoryRepoArray{
&platform.GitOpsRepositoryRepoArgs{
ConnectionType: pulumi.String("HTTPS_ANONYMOUS"),
Insecure: pulumi.Bool(true),
Name: pulumi.String("repo_name"),
Repo: pulumi.String("https://github.com/willycoll/argocd-example-apps.git"),
},
},
Upsert: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.GitOpsRepository;
import com.pulumi.harness.platform.GitOpsRepositoryArgs;
import com.pulumi.harness.platform.inputs.GitOpsRepositoryRepoArgs;
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 GitOpsRepository("example", GitOpsRepositoryArgs.builder()
.accountId("account_id")
.agentId("agent_id")
.identifier("identifier")
.orgId("org_id")
.projectId("project_id")
.repos(GitOpsRepositoryRepoArgs.builder()
.connectionType("HTTPS_ANONYMOUS")
.insecure(true)
.name("repo_name")
.repo("https://github.com/willycoll/argocd-example-apps.git")
.build())
.upsert(true)
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
example = harness.platform.GitOpsRepository("example",
account_id="account_id",
agent_id="agent_id",
identifier="identifier",
org_id="org_id",
project_id="project_id",
repos=[harness.platform.GitOpsRepositoryRepoArgs(
connection_type="HTTPS_ANONYMOUS",
insecure=True,
name="repo_name",
repo="https://github.com/willycoll/argocd-example-apps.git",
)],
upsert=True)
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";
const example = new harness.platform.GitOpsRepository("example", {
accountId: "account_id",
agentId: "agent_id",
identifier: "identifier",
orgId: "org_id",
projectId: "project_id",
repos: [{
connectionType: "HTTPS_ANONYMOUS",
insecure: true,
name: "repo_name",
repo: "https://github.com/willycoll/argocd-example-apps.git",
}],
upsert: true,
});
resources:
example:
type: harness:platform:GitOpsRepository
properties:
accountId: account_id
agentId: agent_id
identifier: identifier
orgId: org_id
projectId: project_id
repos:
- connectionType: HTTPS_ANONYMOUS
insecure: true
name: repo_name
repo: https://github.com/willycoll/argocd-example-apps.git
upsert: true
Create GitOpsRepository Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitOpsRepository(name: string, args: GitOpsRepositoryArgs, opts?: CustomResourceOptions);
@overload
def GitOpsRepository(resource_name: str,
args: GitOpsRepositoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitOpsRepository(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
identifier: Optional[str] = None,
repos: Optional[Sequence[GitOpsRepositoryRepoArgs]] = None,
creds_only: Optional[bool] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
query_force_refresh: Optional[bool] = None,
query_project: Optional[str] = None,
query_repo: Optional[str] = None,
update_masks: Optional[Sequence[GitOpsRepositoryUpdateMaskArgs]] = None,
upsert: Optional[bool] = None)
func NewGitOpsRepository(ctx *Context, name string, args GitOpsRepositoryArgs, opts ...ResourceOption) (*GitOpsRepository, error)
public GitOpsRepository(string name, GitOpsRepositoryArgs args, CustomResourceOptions? opts = null)
public GitOpsRepository(String name, GitOpsRepositoryArgs args)
public GitOpsRepository(String name, GitOpsRepositoryArgs args, CustomResourceOptions options)
type: harness:platform:GitOpsRepository
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 GitOpsRepositoryArgs
- 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 GitOpsRepositoryArgs
- 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 GitOpsRepositoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitOpsRepositoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitOpsRepositoryArgs
- 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 gitOpsRepositoryResource = new Harness.Platform.GitOpsRepository("gitOpsRepositoryResource", new()
{
AccountId = "string",
AgentId = "string",
Identifier = "string",
Repos = new[]
{
new Harness.Platform.Inputs.GitOpsRepositoryRepoArgs
{
ConnectionType = "string",
Repo = "string",
Name = "string",
Password = "string",
GithubAppId = "string",
GithubAppInstallationId = "string",
GithubAppPrivateKey = "string",
InheritedCreds = false,
Insecure = false,
InsecureIgnoreHostKey = false,
EnableOci = false,
GithubAppEnterpriseBaseUrl = "string",
Project = "string",
Proxy = "string",
EnableLfs = false,
SshPrivateKey = "string",
TlsClientCertData = "string",
TlsClientCertKey = "string",
Type_ = "string",
Username = "string",
},
},
CredsOnly = false,
OrgId = "string",
ProjectId = "string",
QueryForceRefresh = false,
QueryProject = "string",
QueryRepo = "string",
UpdateMasks = new[]
{
new Harness.Platform.Inputs.GitOpsRepositoryUpdateMaskArgs
{
Paths = new[]
{
"string",
},
},
},
Upsert = false,
});
example, err := platform.NewGitOpsRepository(ctx, "gitOpsRepositoryResource", &platform.GitOpsRepositoryArgs{
AccountId: pulumi.String("string"),
AgentId: pulumi.String("string"),
Identifier: pulumi.String("string"),
Repos: platform.GitOpsRepositoryRepoArray{
&platform.GitOpsRepositoryRepoArgs{
ConnectionType: pulumi.String("string"),
Repo: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
GithubAppId: pulumi.String("string"),
GithubAppInstallationId: pulumi.String("string"),
GithubAppPrivateKey: pulumi.String("string"),
InheritedCreds: pulumi.Bool(false),
Insecure: pulumi.Bool(false),
InsecureIgnoreHostKey: pulumi.Bool(false),
EnableOci: pulumi.Bool(false),
GithubAppEnterpriseBaseUrl: pulumi.String("string"),
Project: pulumi.String("string"),
Proxy: pulumi.String("string"),
EnableLfs: pulumi.Bool(false),
SshPrivateKey: pulumi.String("string"),
TlsClientCertData: pulumi.String("string"),
TlsClientCertKey: pulumi.String("string"),
Type_: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
CredsOnly: pulumi.Bool(false),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
QueryForceRefresh: pulumi.Bool(false),
QueryProject: pulumi.String("string"),
QueryRepo: pulumi.String("string"),
UpdateMasks: platform.GitOpsRepositoryUpdateMaskArray{
&platform.GitOpsRepositoryUpdateMaskArgs{
Paths: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Upsert: pulumi.Bool(false),
})
var gitOpsRepositoryResource = new GitOpsRepository("gitOpsRepositoryResource", GitOpsRepositoryArgs.builder()
.accountId("string")
.agentId("string")
.identifier("string")
.repos(GitOpsRepositoryRepoArgs.builder()
.connectionType("string")
.repo("string")
.name("string")
.password("string")
.githubAppId("string")
.githubAppInstallationId("string")
.githubAppPrivateKey("string")
.inheritedCreds(false)
.insecure(false)
.insecureIgnoreHostKey(false)
.enableOci(false)
.githubAppEnterpriseBaseUrl("string")
.project("string")
.proxy("string")
.enableLfs(false)
.sshPrivateKey("string")
.tlsClientCertData("string")
.tlsClientCertKey("string")
.type_("string")
.username("string")
.build())
.credsOnly(false)
.orgId("string")
.projectId("string")
.queryForceRefresh(false)
.queryProject("string")
.queryRepo("string")
.updateMasks(GitOpsRepositoryUpdateMaskArgs.builder()
.paths("string")
.build())
.upsert(false)
.build());
git_ops_repository_resource = harness.platform.GitOpsRepository("gitOpsRepositoryResource",
account_id="string",
agent_id="string",
identifier="string",
repos=[harness.platform.GitOpsRepositoryRepoArgs(
connection_type="string",
repo="string",
name="string",
password="string",
github_app_id="string",
github_app_installation_id="string",
github_app_private_key="string",
inherited_creds=False,
insecure=False,
insecure_ignore_host_key=False,
enable_oci=False,
github_app_enterprise_base_url="string",
project="string",
proxy="string",
enable_lfs=False,
ssh_private_key="string",
tls_client_cert_data="string",
tls_client_cert_key="string",
type_="string",
username="string",
)],
creds_only=False,
org_id="string",
project_id="string",
query_force_refresh=False,
query_project="string",
query_repo="string",
update_masks=[harness.platform.GitOpsRepositoryUpdateMaskArgs(
paths=["string"],
)],
upsert=False)
const gitOpsRepositoryResource = new harness.platform.GitOpsRepository("gitOpsRepositoryResource", {
accountId: "string",
agentId: "string",
identifier: "string",
repos: [{
connectionType: "string",
repo: "string",
name: "string",
password: "string",
githubAppId: "string",
githubAppInstallationId: "string",
githubAppPrivateKey: "string",
inheritedCreds: false,
insecure: false,
insecureIgnoreHostKey: false,
enableOci: false,
githubAppEnterpriseBaseUrl: "string",
project: "string",
proxy: "string",
enableLfs: false,
sshPrivateKey: "string",
tlsClientCertData: "string",
tlsClientCertKey: "string",
type_: "string",
username: "string",
}],
credsOnly: false,
orgId: "string",
projectId: "string",
queryForceRefresh: false,
queryProject: "string",
queryRepo: "string",
updateMasks: [{
paths: ["string"],
}],
upsert: false,
});
type: harness:platform:GitOpsRepository
properties:
accountId: string
agentId: string
credsOnly: false
identifier: string
orgId: string
projectId: string
queryForceRefresh: false
queryProject: string
queryRepo: string
repos:
- connectionType: string
enableLfs: false
enableOci: false
githubAppEnterpriseBaseUrl: string
githubAppId: string
githubAppInstallationId: string
githubAppPrivateKey: string
inheritedCreds: false
insecure: false
insecureIgnoreHostKey: false
name: string
password: string
project: string
proxy: string
repo: string
sshPrivateKey: string
tlsClientCertData: string
tlsClientCertKey: string
type_: string
username: string
updateMasks:
- paths:
- string
upsert: false
GitOpsRepository Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GitOpsRepository resource accepts the following input properties:
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id string - Agent identifier of the GitOps repository.
- Identifier string
- Identifier of the GitOps repository.
- Repos
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Repo> - Repo details holding application configurations.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Update Mask> - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id string - Agent identifier of the GitOps repository.
- Identifier string
- Identifier of the GitOps repository.
- Repos
[]Git
Ops Repository Repo Args - Repo details holding application configurations.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Update
Masks []GitOps Repository Update Mask Args - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id String - Agent identifier of the GitOps repository.
- identifier String
- Identifier of the GitOps repository.
- repos
List<Git
Ops Repository Repo> - Repo details holding application configurations.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- update
Masks List<GitOps Repository Update Mask> - Update mask of the repository.
- upsert Boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id string - Account identifier of the GitOps repository.
- agent
Id string - Agent identifier of the GitOps repository.
- identifier string
- Identifier of the GitOps repository.
- repos
Git
Ops Repository Repo[] - Repo details holding application configurations.
- creds
Only boolean - Indicates if to operate on credential set instead of repository.
- org
Id string - Organization identifier of the GitOps repository.
- project
Id string - Project identifier of the GitOps repository.
- query
Force booleanRefresh - Indicates to force refresh query for repository.
- query
Project string - Project to query for the GitOps repo.
- query
Repo string - GitOps repository to query.
- update
Masks GitOps Repository Update Mask[] - Update mask of the repository.
- upsert boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account_
id str - Account identifier of the GitOps repository.
- agent_
id str - Agent identifier of the GitOps repository.
- identifier str
- Identifier of the GitOps repository.
- repos
Sequence[Git
Ops Repository Repo Args] - Repo details holding application configurations.
- creds_
only bool - Indicates if to operate on credential set instead of repository.
- org_
id str - Organization identifier of the GitOps repository.
- project_
id str - Project identifier of the GitOps repository.
- query_
force_ boolrefresh - Indicates to force refresh query for repository.
- query_
project str - Project to query for the GitOps repo.
- query_
repo str - GitOps repository to query.
- update_
masks Sequence[GitOps Repository Update Mask Args] - Update mask of the repository.
- upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id String - Agent identifier of the GitOps repository.
- identifier String
- Identifier of the GitOps repository.
- repos List<Property Map>
- Repo details holding application configurations.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- update
Masks List<Property Map> - Update mask of the repository.
- upsert Boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitOpsRepository 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 GitOpsRepository Resource
Get an existing GitOpsRepository 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?: GitOpsRepositoryState, opts?: CustomResourceOptions): GitOpsRepository
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
creds_only: Optional[bool] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
query_force_refresh: Optional[bool] = None,
query_project: Optional[str] = None,
query_repo: Optional[str] = None,
repos: Optional[Sequence[GitOpsRepositoryRepoArgs]] = None,
update_masks: Optional[Sequence[GitOpsRepositoryUpdateMaskArgs]] = None,
upsert: Optional[bool] = None) -> GitOpsRepository
func GetGitOpsRepository(ctx *Context, name string, id IDInput, state *GitOpsRepositoryState, opts ...ResourceOption) (*GitOpsRepository, error)
public static GitOpsRepository Get(string name, Input<string> id, GitOpsRepositoryState? state, CustomResourceOptions? opts = null)
public static GitOpsRepository get(String name, Output<String> id, GitOpsRepositoryState 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 GitOps repository.
- Agent
Id string - Agent identifier of the GitOps repository.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Identifier string
- Identifier of the GitOps repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Repos
List<Lbrlabs.
Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Repo> - Repo details holding application configurations.
- Update
Masks List<Lbrlabs.Pulumi Package. Harness. Platform. Inputs. Git Ops Repository Update Mask> - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the GitOps repository.
- Agent
Id string - Agent identifier of the GitOps repository.
- Creds
Only bool - Indicates if to operate on credential set instead of repository.
- Identifier string
- Identifier of the GitOps repository.
- Org
Id string - Organization identifier of the GitOps repository.
- Project
Id string - Project identifier of the GitOps repository.
- Query
Force boolRefresh - Indicates to force refresh query for repository.
- Query
Project string - Project to query for the GitOps repo.
- Query
Repo string - GitOps repository to query.
- Repos
[]Git
Ops Repository Repo Args - Repo details holding application configurations.
- Update
Masks []GitOps Repository Update Mask Args - Update mask of the repository.
- Upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id String - Agent identifier of the GitOps repository.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- identifier String
- Identifier of the GitOps repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- repos
List<Git
Ops Repository Repo> - Repo details holding application configurations.
- update
Masks List<GitOps Repository Update Mask> - Update mask of the repository.
- upsert Boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id string - Account identifier of the GitOps repository.
- agent
Id string - Agent identifier of the GitOps repository.
- creds
Only boolean - Indicates if to operate on credential set instead of repository.
- identifier string
- Identifier of the GitOps repository.
- org
Id string - Organization identifier of the GitOps repository.
- project
Id string - Project identifier of the GitOps repository.
- query
Force booleanRefresh - Indicates to force refresh query for repository.
- query
Project string - Project to query for the GitOps repo.
- query
Repo string - GitOps repository to query.
- repos
Git
Ops Repository Repo[] - Repo details holding application configurations.
- update
Masks GitOps Repository Update Mask[] - Update mask of the repository.
- upsert boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account_
id str - Account identifier of the GitOps repository.
- agent_
id str - Agent identifier of the GitOps repository.
- creds_
only bool - Indicates if to operate on credential set instead of repository.
- identifier str
- Identifier of the GitOps repository.
- org_
id str - Organization identifier of the GitOps repository.
- project_
id str - Project identifier of the GitOps repository.
- query_
force_ boolrefresh - Indicates to force refresh query for repository.
- query_
project str - Project to query for the GitOps repo.
- query_
repo str - GitOps repository to query.
- repos
Sequence[Git
Ops Repository Repo Args] - Repo details holding application configurations.
- update_
masks Sequence[GitOps Repository Update Mask Args] - Update mask of the repository.
- upsert bool
- Indicates if the GitOps repository should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps repository.
- agent
Id String - Agent identifier of the GitOps repository.
- creds
Only Boolean - Indicates if to operate on credential set instead of repository.
- identifier String
- Identifier of the GitOps repository.
- org
Id String - Organization identifier of the GitOps repository.
- project
Id String - Project identifier of the GitOps repository.
- query
Force BooleanRefresh - Indicates to force refresh query for repository.
- query
Project String - Project to query for the GitOps repo.
- query
Repo String - GitOps repository to query.
- repos List<Property Map>
- Repo details holding application configurations.
- update
Masks List<Property Map> - Update mask of the repository.
- upsert Boolean
- Indicates if the GitOps repository should be updated if existing and inserted if not.
Supporting Types
GitOpsRepositoryRepo, GitOpsRepositoryRepoArgs
- Connection
Type string - Identifies the authentication method used to connect to the repository.
- Repo string
- URL to the remote repository.
- Enable
Lfs bool - Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
- Enable
Oci bool - Indicates if helm-oci support must be enabled for this repo.
- Github
App stringEnterprise Base Url - Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
- Github
App stringId - Id of the GitHub app used to access the repo.
- Github
App stringInstallation Id - Installation id of the GitHub app used to access the repo.
- Github
App stringPrivate Key - GitHub app private key PEM data.
- Inherited
Creds bool - Indicates if the credentials were inherited from a credential set.
- Insecure bool
- Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
- Insecure
Ignore boolHost Key - Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
- Name string
- Name to be used for this repo. Only used with Helm repos.
- Password string
- Password or PAT used for authenticating at the remote repository.
- Project string
- Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
- Proxy string
- The HTTP/HTTPS proxy used to access the repo.
- Ssh
Private stringKey - PEM data for authenticating at the repo server. Only used with Git repos.
- Tls
Client stringCert Data - Certificate in PEM format for authenticating at the repo server.
- Tls
Client stringCert Key - Private key in PEM format for authenticating at the repo server.
- Type_ string
- Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
- Username string
- Username used for authenticating at the remote repository.
- Connection
Type string - Identifies the authentication method used to connect to the repository.
- Repo string
- URL to the remote repository.
- Enable
Lfs bool - Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
- Enable
Oci bool - Indicates if helm-oci support must be enabled for this repo.
- Github
App stringEnterprise Base Url - Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
- Github
App stringId - Id of the GitHub app used to access the repo.
- Github
App stringInstallation Id - Installation id of the GitHub app used to access the repo.
- Github
App stringPrivate Key - GitHub app private key PEM data.
- Inherited
Creds bool - Indicates if the credentials were inherited from a credential set.
- Insecure bool
- Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
- Insecure
Ignore boolHost Key - Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
- Name string
- Name to be used for this repo. Only used with Helm repos.
- Password string
- Password or PAT used for authenticating at the remote repository.
- Project string
- Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
- Proxy string
- The HTTP/HTTPS proxy used to access the repo.
- Ssh
Private stringKey - PEM data for authenticating at the repo server. Only used with Git repos.
- Tls
Client stringCert Data - Certificate in PEM format for authenticating at the repo server.
- Tls
Client stringCert Key - Private key in PEM format for authenticating at the repo server.
- Type_ string
- Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
- Username string
- Username used for authenticating at the remote repository.
- connection
Type String - Identifies the authentication method used to connect to the repository.
- repo String
- URL to the remote repository.
- enable
Lfs Boolean - Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
- enable
Oci Boolean - Indicates if helm-oci support must be enabled for this repo.
- github
App StringEnterprise Base Url - Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
- github
App StringId - Id of the GitHub app used to access the repo.
- github
App StringInstallation Id - Installation id of the GitHub app used to access the repo.
- github
App StringPrivate Key - GitHub app private key PEM data.
- inherited
Creds Boolean - Indicates if the credentials were inherited from a credential set.
- insecure Boolean
- Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
- insecure
Ignore BooleanHost Key - Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
- name String
- Name to be used for this repo. Only used with Helm repos.
- password String
- Password or PAT used for authenticating at the remote repository.
- project String
- Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
- proxy String
- The HTTP/HTTPS proxy used to access the repo.
- ssh
Private StringKey - PEM data for authenticating at the repo server. Only used with Git repos.
- tls
Client StringCert Data - Certificate in PEM format for authenticating at the repo server.
- tls
Client StringCert Key - Private key in PEM format for authenticating at the repo server.
- type_ String
- Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
- username String
- Username used for authenticating at the remote repository.
- connection
Type string - Identifies the authentication method used to connect to the repository.
- repo string
- URL to the remote repository.
- enable
Lfs boolean - Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
- enable
Oci boolean - Indicates if helm-oci support must be enabled for this repo.
- github
App stringEnterprise Base Url - Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
- github
App stringId - Id of the GitHub app used to access the repo.
- github
App stringInstallation Id - Installation id of the GitHub app used to access the repo.
- github
App stringPrivate Key - GitHub app private key PEM data.
- inherited
Creds boolean - Indicates if the credentials were inherited from a credential set.
- insecure boolean
- Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
- insecure
Ignore booleanHost Key - Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
- name string
- Name to be used for this repo. Only used with Helm repos.
- password string
- Password or PAT used for authenticating at the remote repository.
- project string
- Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
- proxy string
- The HTTP/HTTPS proxy used to access the repo.
- ssh
Private stringKey - PEM data for authenticating at the repo server. Only used with Git repos.
- tls
Client stringCert Data - Certificate in PEM format for authenticating at the repo server.
- tls
Client stringCert Key - Private key in PEM format for authenticating at the repo server.
- type_ string
- Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
- username string
- Username used for authenticating at the remote repository.
- connection_
type str - Identifies the authentication method used to connect to the repository.
- repo str
- URL to the remote repository.
- enable_
lfs bool - Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
- enable_
oci bool - Indicates if helm-oci support must be enabled for this repo.
- github_
app_ strenterprise_ base_ url - Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
- github_
app_ strid - Id of the GitHub app used to access the repo.
- github_
app_ strinstallation_ id - Installation id of the GitHub app used to access the repo.
- github_
app_ strprivate_ key - GitHub app private key PEM data.
- inherited_
creds bool - Indicates if the credentials were inherited from a credential set.
- insecure bool
- Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
- insecure_
ignore_ boolhost_ key - Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
- name str
- Name to be used for this repo. Only used with Helm repos.
- password str
- Password or PAT used for authenticating at the remote repository.
- project str
- Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
- proxy str
- The HTTP/HTTPS proxy used to access the repo.
- ssh_
private_ strkey - PEM data for authenticating at the repo server. Only used with Git repos.
- tls_
client_ strcert_ data - Certificate in PEM format for authenticating at the repo server.
- tls_
client_ strcert_ key - Private key in PEM format for authenticating at the repo server.
- type_ str
- Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
- username str
- Username used for authenticating at the remote repository.
- connection
Type String - Identifies the authentication method used to connect to the repository.
- repo String
- URL to the remote repository.
- enable
Lfs Boolean - Indicates if git-lfs support must be enabled for this repo. This is valid only for Git repositories.
- enable
Oci Boolean - Indicates if helm-oci support must be enabled for this repo.
- github
App StringEnterprise Base Url - Base URL of GitHub Enterprise installation. If left empty, this defaults to https://api.github.com.
- github
App StringId - Id of the GitHub app used to access the repo.
- github
App StringInstallation Id - Installation id of the GitHub app used to access the repo.
- github
App StringPrivate Key - GitHub app private key PEM data.
- inherited
Creds Boolean - Indicates if the credentials were inherited from a credential set.
- insecure Boolean
- Indicates if the connection to the repository ignores any errors when verifying TLS certificates or SSH host keys.
- insecure
Ignore BooleanHost Key - Indicates if InsecureIgnoreHostKey should be used. Insecure is favored used only for git repos.
- name String
- Name to be used for this repo. Only used with Helm repos.
- password String
- Password or PAT used for authenticating at the remote repository.
- project String
- Reference between project and repository that allow you automatically to be added as item inside SourceRepos project entity.
- proxy String
- The HTTP/HTTPS proxy used to access the repo.
- ssh
Private StringKey - PEM data for authenticating at the repo server. Only used with Git repos.
- tls
Client StringCert Data - Certificate in PEM format for authenticating at the repo server.
- tls
Client StringCert Key - Private key in PEM format for authenticating at the repo server.
- type_ String
- Type specifies the type of the repo. Can be either "git" or "helm. "git" is assumed if empty or absent.
- username String
- Username used for authenticating at the remote repository.
GitOpsRepositoryUpdateMask, GitOpsRepositoryUpdateMaskArgs
- Paths List<string>
- The set of field mask paths.
- Paths []string
- The set of field mask paths.
- paths List<String>
- The set of field mask paths.
- paths string[]
- The set of field mask paths.
- paths Sequence[str]
- The set of field mask paths.
- paths List<String>
- The set of field mask paths.
Import
Import a Account level Gitops Repository
$ pulumi import harness:platform/gitOpsRepository:GitOpsRepository example <agent_id>/<respository_id>
Import a Project level Gitops Repository
$ pulumi import harness:platform/gitOpsRepository:GitOpsRepository example <organization_id>/<project_id>/<agent_id>/<respository_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.