harness.platform.GitopsAppProject
Explore with Pulumi AI
Example Usage
Create GitopsAppProject Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitopsAppProject(name: string, args: GitopsAppProjectArgs, opts?: CustomResourceOptions);
@overload
def GitopsAppProject(resource_name: str,
args: GitopsAppProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitopsAppProject(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
projects: Optional[Sequence[GitopsAppProjectProjectArgs]] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
query_name: Optional[str] = None,
upsert: Optional[bool] = None)
func NewGitopsAppProject(ctx *Context, name string, args GitopsAppProjectArgs, opts ...ResourceOption) (*GitopsAppProject, error)
public GitopsAppProject(string name, GitopsAppProjectArgs args, CustomResourceOptions? opts = null)
public GitopsAppProject(String name, GitopsAppProjectArgs args)
public GitopsAppProject(String name, GitopsAppProjectArgs args, CustomResourceOptions options)
type: harness:platform:GitopsAppProject
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 GitopsAppProjectArgs
- 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 GitopsAppProjectArgs
- 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 GitopsAppProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitopsAppProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitopsAppProjectArgs
- 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 gitopsAppProjectResource = new Harness.Platform.GitopsAppProject("gitopsAppProjectResource", new()
{
AccountId = "string",
AgentId = "string",
Projects = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectArgs
{
Metadatas = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectMetadataArgs
{
Annotations =
{
{ "string", "string" },
},
ClusterName = "string",
Finalizers = new[]
{
"string",
},
Labels =
{
{ "string", "string" },
},
ManagedFields = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectMetadataManagedFieldArgs
{
ApiVersion = "string",
FieldsType = "string",
FieldsV1 =
{
{ "string", "string" },
},
Manager = "string",
Operation = "string",
Subresource = "string",
Time =
{
{ "string", "string" },
},
},
},
Name = "string",
Namespace = "string",
ResourceVersion = "string",
},
},
Specs = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecArgs
{
ClusterResourceBlacklists = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecClusterResourceBlacklistArgs
{
Group = "string",
Kind = "string",
},
},
ClusterResourceWhitelists = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecClusterResourceWhitelistArgs
{
Group = "string",
Kind = "string",
},
},
Description = "string",
Destinations = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecDestinationArgs
{
Name = "string",
Namespace = "string",
Server = "string",
},
},
NamespaceResourceBlacklists = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecNamespaceResourceBlacklistArgs
{
Group = "string",
Kind = "string",
},
},
NamespaceResourceWhitelists = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecNamespaceResourceWhitelistArgs
{
Group = "string",
Kind = "string",
},
},
OrphanedResources = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecOrphanedResourceArgs
{
Ignores = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecOrphanedResourceIgnoreArgs
{
Group = "string",
Kind = "string",
Name = "string",
},
},
Warn = false,
},
},
Roles = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecRoleArgs
{
Description = "string",
Name = "string",
Groups = new[]
{
"string",
},
JwtTokens = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecRoleJwtTokenArgs
{
Exp = "string",
Iat = "string",
Id = "string",
},
},
Policies = new[]
{
"string",
},
},
},
SignatureKeys = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecSignatureKeyArgs
{
KeyId = "string",
},
},
SourceRepos = new[]
{
"string",
},
SyncWindows = new[]
{
new Harness.Platform.Inputs.GitopsAppProjectProjectSpecSyncWindowArgs
{
Applications = new[]
{
"string",
},
Clusters = new[]
{
"string",
},
Duration = "string",
Kind = "string",
ManualSync = false,
Namespaces = new[]
{
"string",
},
Schedule = "string",
TimeZone = "string",
},
},
},
},
},
},
OrgId = "string",
ProjectId = "string",
QueryName = "string",
Upsert = false,
});
example, err := platform.NewGitopsAppProject(ctx, "gitopsAppProjectResource", &platform.GitopsAppProjectArgs{
AccountId: pulumi.String("string"),
AgentId: pulumi.String("string"),
Projects: platform.GitopsAppProjectProjectArray{
&platform.GitopsAppProjectProjectArgs{
Metadatas: platform.GitopsAppProjectProjectMetadataArray{
&platform.GitopsAppProjectProjectMetadataArgs{
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
ClusterName: pulumi.String("string"),
Finalizers: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ManagedFields: platform.GitopsAppProjectProjectMetadataManagedFieldArray{
&platform.GitopsAppProjectProjectMetadataManagedFieldArgs{
ApiVersion: pulumi.String("string"),
FieldsType: pulumi.String("string"),
FieldsV1: pulumi.StringMap{
"string": pulumi.String("string"),
},
Manager: pulumi.String("string"),
Operation: pulumi.String("string"),
Subresource: pulumi.String("string"),
Time: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
ResourceVersion: pulumi.String("string"),
},
},
Specs: platform.GitopsAppProjectProjectSpecArray{
&platform.GitopsAppProjectProjectSpecArgs{
ClusterResourceBlacklists: platform.GitopsAppProjectProjectSpecClusterResourceBlacklistArray{
&platform.GitopsAppProjectProjectSpecClusterResourceBlacklistArgs{
Group: pulumi.String("string"),
Kind: pulumi.String("string"),
},
},
ClusterResourceWhitelists: platform.GitopsAppProjectProjectSpecClusterResourceWhitelistArray{
&platform.GitopsAppProjectProjectSpecClusterResourceWhitelistArgs{
Group: pulumi.String("string"),
Kind: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Destinations: platform.GitopsAppProjectProjectSpecDestinationArray{
&platform.GitopsAppProjectProjectSpecDestinationArgs{
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
Server: pulumi.String("string"),
},
},
NamespaceResourceBlacklists: platform.GitopsAppProjectProjectSpecNamespaceResourceBlacklistArray{
&platform.GitopsAppProjectProjectSpecNamespaceResourceBlacklistArgs{
Group: pulumi.String("string"),
Kind: pulumi.String("string"),
},
},
NamespaceResourceWhitelists: platform.GitopsAppProjectProjectSpecNamespaceResourceWhitelistArray{
&platform.GitopsAppProjectProjectSpecNamespaceResourceWhitelistArgs{
Group: pulumi.String("string"),
Kind: pulumi.String("string"),
},
},
OrphanedResources: platform.GitopsAppProjectProjectSpecOrphanedResourceArray{
&platform.GitopsAppProjectProjectSpecOrphanedResourceArgs{
Ignores: platform.GitopsAppProjectProjectSpecOrphanedResourceIgnoreArray{
&platform.GitopsAppProjectProjectSpecOrphanedResourceIgnoreArgs{
Group: pulumi.String("string"),
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Warn: pulumi.Bool(false),
},
},
Roles: platform.GitopsAppProjectProjectSpecRoleArray{
&platform.GitopsAppProjectProjectSpecRoleArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Groups: pulumi.StringArray{
pulumi.String("string"),
},
JwtTokens: platform.GitopsAppProjectProjectSpecRoleJwtTokenArray{
&platform.GitopsAppProjectProjectSpecRoleJwtTokenArgs{
Exp: pulumi.String("string"),
Iat: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
Policies: pulumi.StringArray{
pulumi.String("string"),
},
},
},
SignatureKeys: platform.GitopsAppProjectProjectSpecSignatureKeyArray{
&platform.GitopsAppProjectProjectSpecSignatureKeyArgs{
KeyId: pulumi.String("string"),
},
},
SourceRepos: pulumi.StringArray{
pulumi.String("string"),
},
SyncWindows: platform.GitopsAppProjectProjectSpecSyncWindowArray{
&platform.GitopsAppProjectProjectSpecSyncWindowArgs{
Applications: pulumi.StringArray{
pulumi.String("string"),
},
Clusters: pulumi.StringArray{
pulumi.String("string"),
},
Duration: pulumi.String("string"),
Kind: pulumi.String("string"),
ManualSync: pulumi.Bool(false),
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
Schedule: pulumi.String("string"),
TimeZone: pulumi.String("string"),
},
},
},
},
},
},
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
QueryName: pulumi.String("string"),
Upsert: pulumi.Bool(false),
})
var gitopsAppProjectResource = new GitopsAppProject("gitopsAppProjectResource", GitopsAppProjectArgs.builder()
.accountId("string")
.agentId("string")
.projects(GitopsAppProjectProjectArgs.builder()
.metadatas(GitopsAppProjectProjectMetadataArgs.builder()
.annotations(Map.of("string", "string"))
.clusterName("string")
.finalizers("string")
.labels(Map.of("string", "string"))
.managedFields(GitopsAppProjectProjectMetadataManagedFieldArgs.builder()
.apiVersion("string")
.fieldsType("string")
.fieldsV1(Map.of("string", "string"))
.manager("string")
.operation("string")
.subresource("string")
.time(Map.of("string", "string"))
.build())
.name("string")
.namespace("string")
.resourceVersion("string")
.build())
.specs(GitopsAppProjectProjectSpecArgs.builder()
.clusterResourceBlacklists(GitopsAppProjectProjectSpecClusterResourceBlacklistArgs.builder()
.group("string")
.kind("string")
.build())
.clusterResourceWhitelists(GitopsAppProjectProjectSpecClusterResourceWhitelistArgs.builder()
.group("string")
.kind("string")
.build())
.description("string")
.destinations(GitopsAppProjectProjectSpecDestinationArgs.builder()
.name("string")
.namespace("string")
.server("string")
.build())
.namespaceResourceBlacklists(GitopsAppProjectProjectSpecNamespaceResourceBlacklistArgs.builder()
.group("string")
.kind("string")
.build())
.namespaceResourceWhitelists(GitopsAppProjectProjectSpecNamespaceResourceWhitelistArgs.builder()
.group("string")
.kind("string")
.build())
.orphanedResources(GitopsAppProjectProjectSpecOrphanedResourceArgs.builder()
.ignores(GitopsAppProjectProjectSpecOrphanedResourceIgnoreArgs.builder()
.group("string")
.kind("string")
.name("string")
.build())
.warn(false)
.build())
.roles(GitopsAppProjectProjectSpecRoleArgs.builder()
.description("string")
.name("string")
.groups("string")
.jwtTokens(GitopsAppProjectProjectSpecRoleJwtTokenArgs.builder()
.exp("string")
.iat("string")
.id("string")
.build())
.policies("string")
.build())
.signatureKeys(GitopsAppProjectProjectSpecSignatureKeyArgs.builder()
.keyId("string")
.build())
.sourceRepos("string")
.syncWindows(GitopsAppProjectProjectSpecSyncWindowArgs.builder()
.applications("string")
.clusters("string")
.duration("string")
.kind("string")
.manualSync(false)
.namespaces("string")
.schedule("string")
.timeZone("string")
.build())
.build())
.build())
.orgId("string")
.projectId("string")
.queryName("string")
.upsert(false)
.build());
gitops_app_project_resource = harness.platform.GitopsAppProject("gitopsAppProjectResource",
account_id="string",
agent_id="string",
projects=[{
"metadatas": [{
"annotations": {
"string": "string",
},
"cluster_name": "string",
"finalizers": ["string"],
"labels": {
"string": "string",
},
"managed_fields": [{
"api_version": "string",
"fields_type": "string",
"fields_v1": {
"string": "string",
},
"manager": "string",
"operation": "string",
"subresource": "string",
"time": {
"string": "string",
},
}],
"name": "string",
"namespace": "string",
"resource_version": "string",
}],
"specs": [{
"cluster_resource_blacklists": [{
"group": "string",
"kind": "string",
}],
"cluster_resource_whitelists": [{
"group": "string",
"kind": "string",
}],
"description": "string",
"destinations": [{
"name": "string",
"namespace": "string",
"server": "string",
}],
"namespace_resource_blacklists": [{
"group": "string",
"kind": "string",
}],
"namespace_resource_whitelists": [{
"group": "string",
"kind": "string",
}],
"orphaned_resources": [{
"ignores": [{
"group": "string",
"kind": "string",
"name": "string",
}],
"warn": False,
}],
"roles": [{
"description": "string",
"name": "string",
"groups": ["string"],
"jwt_tokens": [{
"exp": "string",
"iat": "string",
"id": "string",
}],
"policies": ["string"],
}],
"signature_keys": [{
"key_id": "string",
}],
"source_repos": ["string"],
"sync_windows": [{
"applications": ["string"],
"clusters": ["string"],
"duration": "string",
"kind": "string",
"manual_sync": False,
"namespaces": ["string"],
"schedule": "string",
"time_zone": "string",
}],
}],
}],
org_id="string",
project_id="string",
query_name="string",
upsert=False)
const gitopsAppProjectResource = new harness.platform.GitopsAppProject("gitopsAppProjectResource", {
accountId: "string",
agentId: "string",
projects: [{
metadatas: [{
annotations: {
string: "string",
},
clusterName: "string",
finalizers: ["string"],
labels: {
string: "string",
},
managedFields: [{
apiVersion: "string",
fieldsType: "string",
fieldsV1: {
string: "string",
},
manager: "string",
operation: "string",
subresource: "string",
time: {
string: "string",
},
}],
name: "string",
namespace: "string",
resourceVersion: "string",
}],
specs: [{
clusterResourceBlacklists: [{
group: "string",
kind: "string",
}],
clusterResourceWhitelists: [{
group: "string",
kind: "string",
}],
description: "string",
destinations: [{
name: "string",
namespace: "string",
server: "string",
}],
namespaceResourceBlacklists: [{
group: "string",
kind: "string",
}],
namespaceResourceWhitelists: [{
group: "string",
kind: "string",
}],
orphanedResources: [{
ignores: [{
group: "string",
kind: "string",
name: "string",
}],
warn: false,
}],
roles: [{
description: "string",
name: "string",
groups: ["string"],
jwtTokens: [{
exp: "string",
iat: "string",
id: "string",
}],
policies: ["string"],
}],
signatureKeys: [{
keyId: "string",
}],
sourceRepos: ["string"],
syncWindows: [{
applications: ["string"],
clusters: ["string"],
duration: "string",
kind: "string",
manualSync: false,
namespaces: ["string"],
schedule: "string",
timeZone: "string",
}],
}],
}],
orgId: "string",
projectId: "string",
queryName: "string",
upsert: false,
});
type: harness:platform:GitopsAppProject
properties:
accountId: string
agentId: string
orgId: string
projectId: string
projects:
- metadatas:
- annotations:
string: string
clusterName: string
finalizers:
- string
labels:
string: string
managedFields:
- apiVersion: string
fieldsType: string
fieldsV1:
string: string
manager: string
operation: string
subresource: string
time:
string: string
name: string
namespace: string
resourceVersion: string
specs:
- clusterResourceBlacklists:
- group: string
kind: string
clusterResourceWhitelists:
- group: string
kind: string
description: string
destinations:
- name: string
namespace: string
server: string
namespaceResourceBlacklists:
- group: string
kind: string
namespaceResourceWhitelists:
- group: string
kind: string
orphanedResources:
- ignores:
- group: string
kind: string
name: string
warn: false
roles:
- description: string
groups:
- string
jwtTokens:
- exp: string
iat: string
id: string
name: string
policies:
- string
signatureKeys:
- keyId: string
sourceRepos:
- string
syncWindows:
- applications:
- string
clusters:
- string
duration: string
kind: string
manualSync: false
namespaces:
- string
schedule: string
timeZone: string
queryName: string
upsert: false
GitopsAppProject 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 GitopsAppProject resource accepts the following input properties:
- Account
Id string - Account identifier of the GitOps project/agent.
- Agent
Id string - Agent identifier of the GitOps project. Project is created on agent scope.
- Projects
List<Gitops
App Project Project> - GitOps project configuration.
- Org
Id string - Org identifier of the GitOps agent for which project is created.
- Project
Id string - Project identifier of the GitOps agent for which project is created.
- Query
Name string - Identifier for the GitOps project.
- Upsert bool
- Indicates if the GitOps project should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the GitOps project/agent.
- Agent
Id string - Agent identifier of the GitOps project. Project is created on agent scope.
- Projects
[]Gitops
App Project Project Args - GitOps project configuration.
- Org
Id string - Org identifier of the GitOps agent for which project is created.
- Project
Id string - Project identifier of the GitOps agent for which project is created.
- Query
Name string - Identifier for the GitOps project.
- Upsert bool
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps project/agent.
- agent
Id String - Agent identifier of the GitOps project. Project is created on agent scope.
- projects
List<Gitops
App Project Project> - GitOps project configuration.
- org
Id String - Org identifier of the GitOps agent for which project is created.
- project
Id String - Project identifier of the GitOps agent for which project is created.
- query
Name String - Identifier for the GitOps project.
- upsert Boolean
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account
Id string - Account identifier of the GitOps project/agent.
- agent
Id string - Agent identifier of the GitOps project. Project is created on agent scope.
- projects
Gitops
App Project Project[] - GitOps project configuration.
- org
Id string - Org identifier of the GitOps agent for which project is created.
- project
Id string - Project identifier of the GitOps agent for which project is created.
- query
Name string - Identifier for the GitOps project.
- upsert boolean
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account_
id str - Account identifier of the GitOps project/agent.
- agent_
id str - Agent identifier of the GitOps project. Project is created on agent scope.
- projects
Sequence[Gitops
App Project Project Args] - GitOps project configuration.
- org_
id str - Org identifier of the GitOps agent for which project is created.
- project_
id str - Project identifier of the GitOps agent for which project is created.
- query_
name str - Identifier for the GitOps project.
- upsert bool
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps project/agent.
- agent
Id String - Agent identifier of the GitOps project. Project is created on agent scope.
- projects List<Property Map>
- GitOps project configuration.
- org
Id String - Org identifier of the GitOps agent for which project is created.
- project
Id String - Project identifier of the GitOps agent for which project is created.
- query
Name String - Identifier for the GitOps project.
- upsert Boolean
- Indicates if the GitOps project should be updated if existing and inserted if not.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitopsAppProject 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 GitopsAppProject Resource
Get an existing GitopsAppProject 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?: GitopsAppProjectState, opts?: CustomResourceOptions): GitopsAppProject
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
agent_id: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
projects: Optional[Sequence[GitopsAppProjectProjectArgs]] = None,
query_name: Optional[str] = None,
upsert: Optional[bool] = None) -> GitopsAppProject
func GetGitopsAppProject(ctx *Context, name string, id IDInput, state *GitopsAppProjectState, opts ...ResourceOption) (*GitopsAppProject, error)
public static GitopsAppProject Get(string name, Input<string> id, GitopsAppProjectState? state, CustomResourceOptions? opts = null)
public static GitopsAppProject get(String name, Output<String> id, GitopsAppProjectState 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 project/agent.
- Agent
Id string - Agent identifier of the GitOps project. Project is created on agent scope.
- Org
Id string - Org identifier of the GitOps agent for which project is created.
- Project
Id string - Project identifier of the GitOps agent for which project is created.
- Projects
List<Gitops
App Project Project> - GitOps project configuration.
- Query
Name string - Identifier for the GitOps project.
- Upsert bool
- Indicates if the GitOps project should be updated if existing and inserted if not.
- Account
Id string - Account identifier of the GitOps project/agent.
- Agent
Id string - Agent identifier of the GitOps project. Project is created on agent scope.
- Org
Id string - Org identifier of the GitOps agent for which project is created.
- Project
Id string - Project identifier of the GitOps agent for which project is created.
- Projects
[]Gitops
App Project Project Args - GitOps project configuration.
- Query
Name string - Identifier for the GitOps project.
- Upsert bool
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps project/agent.
- agent
Id String - Agent identifier of the GitOps project. Project is created on agent scope.
- org
Id String - Org identifier of the GitOps agent for which project is created.
- project
Id String - Project identifier of the GitOps agent for which project is created.
- projects
List<Gitops
App Project Project> - GitOps project configuration.
- query
Name String - Identifier for the GitOps project.
- upsert Boolean
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account
Id string - Account identifier of the GitOps project/agent.
- agent
Id string - Agent identifier of the GitOps project. Project is created on agent scope.
- org
Id string - Org identifier of the GitOps agent for which project is created.
- project
Id string - Project identifier of the GitOps agent for which project is created.
- projects
Gitops
App Project Project[] - GitOps project configuration.
- query
Name string - Identifier for the GitOps project.
- upsert boolean
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account_
id str - Account identifier of the GitOps project/agent.
- agent_
id str - Agent identifier of the GitOps project. Project is created on agent scope.
- org_
id str - Org identifier of the GitOps agent for which project is created.
- project_
id str - Project identifier of the GitOps agent for which project is created.
- projects
Sequence[Gitops
App Project Project Args] - GitOps project configuration.
- query_
name str - Identifier for the GitOps project.
- upsert bool
- Indicates if the GitOps project should be updated if existing and inserted if not.
- account
Id String - Account identifier of the GitOps project/agent.
- agent
Id String - Agent identifier of the GitOps project. Project is created on agent scope.
- org
Id String - Org identifier of the GitOps agent for which project is created.
- project
Id String - Project identifier of the GitOps agent for which project is created.
- projects List<Property Map>
- GitOps project configuration.
- query
Name String - Identifier for the GitOps project.
- upsert Boolean
- Indicates if the GitOps project should be updated if existing and inserted if not.
Supporting Types
GitopsAppProjectProject, GitopsAppProjectProjectArgs
- Metadatas
List<Gitops
App Project Project Metadata> - K8s object metadata for the Argo project.
- Specs
List<Gitops
App Project Project Spec> - Specification details for the Argo project.
- Metadatas
[]Gitops
App Project Project Metadata - K8s object metadata for the Argo project.
- Specs
[]Gitops
App Project Project Spec - Specification details for the Argo project.
- metadatas
List<Gitops
App Project Project Metadata> - K8s object metadata for the Argo project.
- specs
List<Gitops
App Project Project Spec> - Specification details for the Argo project.
- metadatas
Gitops
App Project Project Metadata[] - K8s object metadata for the Argo project.
- specs
Gitops
App Project Project Spec[] - Specification details for the Argo project.
- metadatas
Sequence[Gitops
App Project Project Metadata] - K8s object metadata for the Argo project.
- specs
Sequence[Gitops
App Project Project Spec] - Specification details for the Argo project.
- metadatas List<Property Map>
- K8s object metadata for the Argo project.
- specs List<Property Map>
- Specification details for the Argo project.
GitopsAppProjectProjectMetadata, GitopsAppProjectProjectMetadataArgs
- Annotations Dictionary<string, string>
- Annotations associated with the GitOps project.
- Cluster
Name string - Name of the cluster associated with the GitOps project.
- Finalizers List<string>
- Finalizers associated with the GitOps project.
- Labels Dictionary<string, string>
- Labels associated with the GitOps project.
- Managed
Fields List<GitopsApp Project Project Metadata Managed Field> - Managed fields associated with the GitOps project.
- Name string
- Name of the GitOps project.
- Namespace string
- Namespace of the GitOps project. This must be the same as the namespace where the agent is installed
- Resource
Version string - Resource Version for the GitOps project
- Annotations map[string]string
- Annotations associated with the GitOps project.
- Cluster
Name string - Name of the cluster associated with the GitOps project.
- Finalizers []string
- Finalizers associated with the GitOps project.
- Labels map[string]string
- Labels associated with the GitOps project.
- Managed
Fields []GitopsApp Project Project Metadata Managed Field - Managed fields associated with the GitOps project.
- Name string
- Name of the GitOps project.
- Namespace string
- Namespace of the GitOps project. This must be the same as the namespace where the agent is installed
- Resource
Version string - Resource Version for the GitOps project
- annotations Map<String,String>
- Annotations associated with the GitOps project.
- cluster
Name String - Name of the cluster associated with the GitOps project.
- finalizers List<String>
- Finalizers associated with the GitOps project.
- labels Map<String,String>
- Labels associated with the GitOps project.
- managed
Fields List<GitopsApp Project Project Metadata Managed Field> - Managed fields associated with the GitOps project.
- name String
- Name of the GitOps project.
- namespace String
- Namespace of the GitOps project. This must be the same as the namespace where the agent is installed
- resource
Version String - Resource Version for the GitOps project
- annotations {[key: string]: string}
- Annotations associated with the GitOps project.
- cluster
Name string - Name of the cluster associated with the GitOps project.
- finalizers string[]
- Finalizers associated with the GitOps project.
- labels {[key: string]: string}
- Labels associated with the GitOps project.
- managed
Fields GitopsApp Project Project Metadata Managed Field[] - Managed fields associated with the GitOps project.
- name string
- Name of the GitOps project.
- namespace string
- Namespace of the GitOps project. This must be the same as the namespace where the agent is installed
- resource
Version string - Resource Version for the GitOps project
- annotations Mapping[str, str]
- Annotations associated with the GitOps project.
- cluster_
name str - Name of the cluster associated with the GitOps project.
- finalizers Sequence[str]
- Finalizers associated with the GitOps project.
- labels Mapping[str, str]
- Labels associated with the GitOps project.
- managed_
fields Sequence[GitopsApp Project Project Metadata Managed Field] - Managed fields associated with the GitOps project.
- name str
- Name of the GitOps project.
- namespace str
- Namespace of the GitOps project. This must be the same as the namespace where the agent is installed
- resource_
version str - Resource Version for the GitOps project
- annotations Map<String>
- Annotations associated with the GitOps project.
- cluster
Name String - Name of the cluster associated with the GitOps project.
- finalizers List<String>
- Finalizers associated with the GitOps project.
- labels Map<String>
- Labels associated with the GitOps project.
- managed
Fields List<Property Map> - Managed fields associated with the GitOps project.
- name String
- Name of the GitOps project.
- namespace String
- Namespace of the GitOps project. This must be the same as the namespace where the agent is installed
- resource
Version String - Resource Version for the GitOps project
GitopsAppProjectProjectMetadataManagedField, GitopsAppProjectProjectMetadataManagedFieldArgs
- Api
Version string - API version of the operation performed.
- Fields
Type string - Type of the fields in the GitOps project.
- Fields
V1 Dictionary<string, string> - Raw fields associated with the GitOps project.
- Manager string
- Manager responsible for the operation.
- Operation string
- Operation type performed on the GitOps project.
- Subresource string
- Subresource associated with the GitOps project.
- Time Dictionary<string, string>
- Timestamp of the operation.
- Api
Version string - API version of the operation performed.
- Fields
Type string - Type of the fields in the GitOps project.
- Fields
V1 map[string]string - Raw fields associated with the GitOps project.
- Manager string
- Manager responsible for the operation.
- Operation string
- Operation type performed on the GitOps project.
- Subresource string
- Subresource associated with the GitOps project.
- Time map[string]string
- Timestamp of the operation.
- api
Version String - API version of the operation performed.
- fields
Type String - Type of the fields in the GitOps project.
- fields
V1 Map<String,String> - Raw fields associated with the GitOps project.
- manager String
- Manager responsible for the operation.
- operation String
- Operation type performed on the GitOps project.
- subresource String
- Subresource associated with the GitOps project.
- time Map<String,String>
- Timestamp of the operation.
- api
Version string - API version of the operation performed.
- fields
Type string - Type of the fields in the GitOps project.
- fields
V1 {[key: string]: string} - Raw fields associated with the GitOps project.
- manager string
- Manager responsible for the operation.
- operation string
- Operation type performed on the GitOps project.
- subresource string
- Subresource associated with the GitOps project.
- time {[key: string]: string}
- Timestamp of the operation.
- api_
version str - API version of the operation performed.
- fields_
type str - Type of the fields in the GitOps project.
- fields_
v1 Mapping[str, str] - Raw fields associated with the GitOps project.
- manager str
- Manager responsible for the operation.
- operation str
- Operation type performed on the GitOps project.
- subresource str
- Subresource associated with the GitOps project.
- time Mapping[str, str]
- Timestamp of the operation.
- api
Version String - API version of the operation performed.
- fields
Type String - Type of the fields in the GitOps project.
- fields
V1 Map<String> - Raw fields associated with the GitOps project.
- manager String
- Manager responsible for the operation.
- operation String
- Operation type performed on the GitOps project.
- subresource String
- Subresource associated with the GitOps project.
- time Map<String>
- Timestamp of the operation.
GitopsAppProjectProjectSpec, GitopsAppProjectProjectSpecArgs
- Cluster
Resource List<GitopsBlacklists App Project Project Spec Cluster Resource Blacklist> - Cluster resource blacklist for the GitOps project.
- Cluster
Resource List<GitopsWhitelists App Project Project Spec Cluster Resource Whitelist> - Cluster resource whitelist for the Argo project.
- Description string
- Description of the Argo project.
- Destinations
List<Gitops
App Project Project Spec Destination> - Allowed destinations for applications in this Argo project.
- Namespace
Resource List<GitopsBlacklists App Project Project Spec Namespace Resource Blacklist> - Namespace resource blacklist for the Argo project.
- Namespace
Resource List<GitopsWhitelists App Project Project Spec Namespace Resource Whitelist> - Namespace resource whitelist for the GitOps project.
- Orphaned
Resources List<GitopsApp Project Project Spec Orphaned Resource> - OrphanedResources specifies if agent should monitor orphaned resources of apps in this project
- Roles
List<Gitops
App Project Project Spec Role> - Roles associated with the Argo project.
- Signature
Keys List<GitopsApp Project Project Spec Signature Key> - Signature keys for the GitOps project.
- Source
Repos List<string> - Allowed Source repositories for the Argo project.
- Sync
Windows List<GitopsApp Project Project Spec Sync Window> - Synchronization windows for the GitOps project.
- Cluster
Resource []GitopsBlacklists App Project Project Spec Cluster Resource Blacklist - Cluster resource blacklist for the GitOps project.
- Cluster
Resource []GitopsWhitelists App Project Project Spec Cluster Resource Whitelist - Cluster resource whitelist for the Argo project.
- Description string
- Description of the Argo project.
- Destinations
[]Gitops
App Project Project Spec Destination - Allowed destinations for applications in this Argo project.
- Namespace
Resource []GitopsBlacklists App Project Project Spec Namespace Resource Blacklist - Namespace resource blacklist for the Argo project.
- Namespace
Resource []GitopsWhitelists App Project Project Spec Namespace Resource Whitelist - Namespace resource whitelist for the GitOps project.
- Orphaned
Resources []GitopsApp Project Project Spec Orphaned Resource - OrphanedResources specifies if agent should monitor orphaned resources of apps in this project
- Roles
[]Gitops
App Project Project Spec Role - Roles associated with the Argo project.
- Signature
Keys []GitopsApp Project Project Spec Signature Key - Signature keys for the GitOps project.
- Source
Repos []string - Allowed Source repositories for the Argo project.
- Sync
Windows []GitopsApp Project Project Spec Sync Window - Synchronization windows for the GitOps project.
- cluster
Resource List<GitopsBlacklists App Project Project Spec Cluster Resource Blacklist> - Cluster resource blacklist for the GitOps project.
- cluster
Resource List<GitopsWhitelists App Project Project Spec Cluster Resource Whitelist> - Cluster resource whitelist for the Argo project.
- description String
- Description of the Argo project.
- destinations
List<Gitops
App Project Project Spec Destination> - Allowed destinations for applications in this Argo project.
- namespace
Resource List<GitopsBlacklists App Project Project Spec Namespace Resource Blacklist> - Namespace resource blacklist for the Argo project.
- namespace
Resource List<GitopsWhitelists App Project Project Spec Namespace Resource Whitelist> - Namespace resource whitelist for the GitOps project.
- orphaned
Resources List<GitopsApp Project Project Spec Orphaned Resource> - OrphanedResources specifies if agent should monitor orphaned resources of apps in this project
- roles
List<Gitops
App Project Project Spec Role> - Roles associated with the Argo project.
- signature
Keys List<GitopsApp Project Project Spec Signature Key> - Signature keys for the GitOps project.
- source
Repos List<String> - Allowed Source repositories for the Argo project.
- sync
Windows List<GitopsApp Project Project Spec Sync Window> - Synchronization windows for the GitOps project.
- cluster
Resource GitopsBlacklists App Project Project Spec Cluster Resource Blacklist[] - Cluster resource blacklist for the GitOps project.
- cluster
Resource GitopsWhitelists App Project Project Spec Cluster Resource Whitelist[] - Cluster resource whitelist for the Argo project.
- description string
- Description of the Argo project.
- destinations
Gitops
App Project Project Spec Destination[] - Allowed destinations for applications in this Argo project.
- namespace
Resource GitopsBlacklists App Project Project Spec Namespace Resource Blacklist[] - Namespace resource blacklist for the Argo project.
- namespace
Resource GitopsWhitelists App Project Project Spec Namespace Resource Whitelist[] - Namespace resource whitelist for the GitOps project.
- orphaned
Resources GitopsApp Project Project Spec Orphaned Resource[] - OrphanedResources specifies if agent should monitor orphaned resources of apps in this project
- roles
Gitops
App Project Project Spec Role[] - Roles associated with the Argo project.
- signature
Keys GitopsApp Project Project Spec Signature Key[] - Signature keys for the GitOps project.
- source
Repos string[] - Allowed Source repositories for the Argo project.
- sync
Windows GitopsApp Project Project Spec Sync Window[] - Synchronization windows for the GitOps project.
- cluster_
resource_ Sequence[Gitopsblacklists App Project Project Spec Cluster Resource Blacklist] - Cluster resource blacklist for the GitOps project.
- cluster_
resource_ Sequence[Gitopswhitelists App Project Project Spec Cluster Resource Whitelist] - Cluster resource whitelist for the Argo project.
- description str
- Description of the Argo project.
- destinations
Sequence[Gitops
App Project Project Spec Destination] - Allowed destinations for applications in this Argo project.
- namespace_
resource_ Sequence[Gitopsblacklists App Project Project Spec Namespace Resource Blacklist] - Namespace resource blacklist for the Argo project.
- namespace_
resource_ Sequence[Gitopswhitelists App Project Project Spec Namespace Resource Whitelist] - Namespace resource whitelist for the GitOps project.
- orphaned_
resources Sequence[GitopsApp Project Project Spec Orphaned Resource] - OrphanedResources specifies if agent should monitor orphaned resources of apps in this project
- roles
Sequence[Gitops
App Project Project Spec Role] - Roles associated with the Argo project.
- signature_
keys Sequence[GitopsApp Project Project Spec Signature Key] - Signature keys for the GitOps project.
- source_
repos Sequence[str] - Allowed Source repositories for the Argo project.
- sync_
windows Sequence[GitopsApp Project Project Spec Sync Window] - Synchronization windows for the GitOps project.
- cluster
Resource List<Property Map>Blacklists - Cluster resource blacklist for the GitOps project.
- cluster
Resource List<Property Map>Whitelists - Cluster resource whitelist for the Argo project.
- description String
- Description of the Argo project.
- destinations List<Property Map>
- Allowed destinations for applications in this Argo project.
- namespace
Resource List<Property Map>Blacklists - Namespace resource blacklist for the Argo project.
- namespace
Resource List<Property Map>Whitelists - Namespace resource whitelist for the GitOps project.
- orphaned
Resources List<Property Map> - OrphanedResources specifies if agent should monitor orphaned resources of apps in this project
- roles List<Property Map>
- Roles associated with the Argo project.
- signature
Keys List<Property Map> - Signature keys for the GitOps project.
- source
Repos List<String> - Allowed Source repositories for the Argo project.
- sync
Windows List<Property Map> - Synchronization windows for the GitOps project.
GitopsAppProjectProjectSpecClusterResourceBlacklist, GitopsAppProjectProjectSpecClusterResourceBlacklistArgs
GitopsAppProjectProjectSpecClusterResourceWhitelist, GitopsAppProjectProjectSpecClusterResourceWhitelistArgs
GitopsAppProjectProjectSpecDestination, GitopsAppProjectProjectSpecDestinationArgs
GitopsAppProjectProjectSpecNamespaceResourceBlacklist, GitopsAppProjectProjectSpecNamespaceResourceBlacklistArgs
GitopsAppProjectProjectSpecNamespaceResourceWhitelist, GitopsAppProjectProjectSpecNamespaceResourceWhitelistArgs
GitopsAppProjectProjectSpecOrphanedResource, GitopsAppProjectProjectSpecOrphanedResourceArgs
- Ignores
List<Gitops
App Project Project Spec Orphaned Resource Ignore> - List of ignored orphaned resources.
- Warn bool
- Whether to warn about orphaned resources.
- Ignores
[]Gitops
App Project Project Spec Orphaned Resource Ignore - List of ignored orphaned resources.
- Warn bool
- Whether to warn about orphaned resources.
- ignores
List<Gitops
App Project Project Spec Orphaned Resource Ignore> - List of ignored orphaned resources.
- warn Boolean
- Whether to warn about orphaned resources.
- ignores
Gitops
App Project Project Spec Orphaned Resource Ignore[] - List of ignored orphaned resources.
- warn boolean
- Whether to warn about orphaned resources.
- ignores
Sequence[Gitops
App Project Project Spec Orphaned Resource Ignore] - List of ignored orphaned resources.
- warn bool
- Whether to warn about orphaned resources.
- ignores List<Property Map>
- List of ignored orphaned resources.
- warn Boolean
- Whether to warn about orphaned resources.
GitopsAppProjectProjectSpecOrphanedResourceIgnore, GitopsAppProjectProjectSpecOrphanedResourceIgnoreArgs
GitopsAppProjectProjectSpecRole, GitopsAppProjectProjectSpecRoleArgs
- Description string
- Description of the role.
- Name string
- Name of the role.
- Groups List<string>
- Groups associated with the role.
- Jwt
Tokens List<GitopsApp Project Project Spec Role Jwt Token> - JWT tokens associated with the role.
- Policies List<string>
- Policies associated with the role. These are argo RBAC policies and may not necessarily reflect in harness.
- Description string
- Description of the role.
- Name string
- Name of the role.
- Groups []string
- Groups associated with the role.
- Jwt
Tokens []GitopsApp Project Project Spec Role Jwt Token - JWT tokens associated with the role.
- Policies []string
- Policies associated with the role. These are argo RBAC policies and may not necessarily reflect in harness.
- description String
- Description of the role.
- name String
- Name of the role.
- groups List<String>
- Groups associated with the role.
- jwt
Tokens List<GitopsApp Project Project Spec Role Jwt Token> - JWT tokens associated with the role.
- policies List<String>
- Policies associated with the role. These are argo RBAC policies and may not necessarily reflect in harness.
- description string
- Description of the role.
- name string
- Name of the role.
- groups string[]
- Groups associated with the role.
- jwt
Tokens GitopsApp Project Project Spec Role Jwt Token[] - JWT tokens associated with the role.
- policies string[]
- Policies associated with the role. These are argo RBAC policies and may not necessarily reflect in harness.
- description str
- Description of the role.
- name str
- Name of the role.
- groups Sequence[str]
- Groups associated with the role.
- jwt_
tokens Sequence[GitopsApp Project Project Spec Role Jwt Token] - JWT tokens associated with the role.
- policies Sequence[str]
- Policies associated with the role. These are argo RBAC policies and may not necessarily reflect in harness.
- description String
- Description of the role.
- name String
- Name of the role.
- groups List<String>
- Groups associated with the role.
- jwt
Tokens List<Property Map> - JWT tokens associated with the role.
- policies List<String>
- Policies associated with the role. These are argo RBAC policies and may not necessarily reflect in harness.
GitopsAppProjectProjectSpecRoleJwtToken, GitopsAppProjectProjectSpecRoleJwtTokenArgs
GitopsAppProjectProjectSpecSignatureKey, GitopsAppProjectProjectSpecSignatureKeyArgs
- Key
Id string - ID of the signature key.
- Key
Id string - ID of the signature key.
- key
Id String - ID of the signature key.
- key
Id string - ID of the signature key.
- key_
id str - ID of the signature key.
- key
Id String - ID of the signature key.
GitopsAppProjectProjectSpecSyncWindow, GitopsAppProjectProjectSpecSyncWindowArgs
- Applications List<string>
- Applications associated with synchronization window.
- Clusters List<string>
- Clusters associated with synchronization window.
- Duration string
- Duration of synchronization window.
- Kind string
- Kind of synchronization window.
- Manual
Sync bool - Whether manual synchronization is enabled.
- Namespaces List<string>
- Namespaces associated with synchronization window.
- Schedule string
- Schedule of synchronization window.
- Time
Zone string - Time zone of synchronization window.
- Applications []string
- Applications associated with synchronization window.
- Clusters []string
- Clusters associated with synchronization window.
- Duration string
- Duration of synchronization window.
- Kind string
- Kind of synchronization window.
- Manual
Sync bool - Whether manual synchronization is enabled.
- Namespaces []string
- Namespaces associated with synchronization window.
- Schedule string
- Schedule of synchronization window.
- Time
Zone string - Time zone of synchronization window.
- applications List<String>
- Applications associated with synchronization window.
- clusters List<String>
- Clusters associated with synchronization window.
- duration String
- Duration of synchronization window.
- kind String
- Kind of synchronization window.
- manual
Sync Boolean - Whether manual synchronization is enabled.
- namespaces List<String>
- Namespaces associated with synchronization window.
- schedule String
- Schedule of synchronization window.
- time
Zone String - Time zone of synchronization window.
- applications string[]
- Applications associated with synchronization window.
- clusters string[]
- Clusters associated with synchronization window.
- duration string
- Duration of synchronization window.
- kind string
- Kind of synchronization window.
- manual
Sync boolean - Whether manual synchronization is enabled.
- namespaces string[]
- Namespaces associated with synchronization window.
- schedule string
- Schedule of synchronization window.
- time
Zone string - Time zone of synchronization window.
- applications Sequence[str]
- Applications associated with synchronization window.
- clusters Sequence[str]
- Clusters associated with synchronization window.
- duration str
- Duration of synchronization window.
- kind str
- Kind of synchronization window.
- manual_
sync bool - Whether manual synchronization is enabled.
- namespaces Sequence[str]
- Namespaces associated with synchronization window.
- schedule str
- Schedule of synchronization window.
- time_
zone str - Time zone of synchronization window.
- applications List<String>
- Applications associated with synchronization window.
- clusters List<String>
- Clusters associated with synchronization window.
- duration String
- Duration of synchronization window.
- kind String
- Kind of synchronization window.
- manual
Sync Boolean - Whether manual synchronization is enabled.
- namespaces List<String>
- Namespaces associated with synchronization window.
- schedule String
- Schedule of synchronization window.
- time
Zone String - Time zone of synchronization window.
Import
Import gitOps project with account level agent
$ pulumi import harness:platform/gitopsAppProject:GitopsAppProject example <agent_id>/<app_proj_name>
Import gitOps project with org level agent
$ pulumi import harness:platform/gitopsAppProject:GitopsAppProject example <organization_id>/<agent_id>/<app_proj_name>
Import gitOps project with project level agent
$ pulumi import harness:platform/gitopsAppProject:GitopsAppProject example <organization_id>/<project_id>/<agent_id>/<app_proj_name>
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.