Skip to content

Commit

Permalink
Merge pull request Azure#2 from jagpreetstamber/kust_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
bavneetsingh16 committed Apr 3, 2023
2 parents cbb3e1e + 5196b27 commit a603ad7
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,21 @@
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600
"syncIntervalInSeconds": 600,
"wait": true,
"postBuild": {
"substitute": {
"cluster_env": "prod",
"replica_count": "2"
},
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-test",
"optional": true
}
]
}
},
"srs-kustomization2": {
"path": "./other/test/path",
Expand All @@ -37,7 +51,22 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false
"prune": false,
"wait": false,
"postBuild": {
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-values",
"optional": true
},
{
"kind": "Secret",
"name": "secret-name",
"optional": false
}
]
}
}
},
"waitForReconciliation": true,
Expand Down Expand Up @@ -87,7 +116,21 @@
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600
"syncIntervalInSeconds": 600,
"wait": true,
"postBuild": {
"substitute": {
"cluster_env": "prod",
"replica_count": "2"
},
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-test",
"optional": true
}
]
}
},
"srs-kustomization2": {
"name": "srs-kustomization2",
Expand All @@ -98,7 +141,22 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false
"prune": false,
"wait": false,
"postBuild": {
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-values",
"optional": true
},
{
"kind": "Secret",
"name": "secret-name",
"optional": false
}
]
}
}
},
"statuses": [
Expand Down Expand Up @@ -221,7 +279,21 @@
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600
"syncIntervalInSeconds": 600,
"wait": true,
"postBuild": {
"substitute": {
"cluster_env": "prod",
"replica_count": "2"
},
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-test",
"optional": true
}
]
}
},
"srs-kustomization2": {
"name": "srs-kustomization2",
Expand All @@ -232,7 +304,22 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false
"prune": false,
"wait": false,
"postBuild": {
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-values",
"optional": true
},
{
"kind": "Secret",
"name": "secret-name",
"optional": false
}
]
}
}
},
"statuses": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,21 @@
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600
"syncIntervalInSeconds": 600,
"wait": true,
"postBuild": {
"substitute": {
"cluster_env": "prod",
"replica_count": "2"
},
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-test",
"optional": true
}
]
}
},
"srs-kustomization2": {
"name": "srs-kustomization2",
Expand All @@ -57,7 +71,22 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false
"prune": false,
"wait": false,
"postBuild": {
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-values",
"optional": true
},
{
"kind": "Secret",
"name": "secret-name",
"optional": false
}
]
}
}
},
"statuses": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,21 @@
"path": "./test/path",
"dependsOn": [],
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600
"syncIntervalInSeconds": 600,
"wait": true,
"postBuild": {
"substitute": {
"cluster_env": "prod",
"replica_count": "2"
},
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-test",
"optional": true
}
]
}
},
"srs-kustomization2": {
"name": "srs-kustomization2",
Expand All @@ -56,7 +70,22 @@
"timeoutInSeconds": 600,
"syncIntervalInSeconds": 600,
"retryIntervalInSeconds": 600,
"prune": false
"prune": false,
"wait": false,
"postBuild": {
"substituteFrom": [
{
"kind": "ConfigMap",
"name": "cluster-values",
"optional": true
},
{
"kind": "Secret",
"name": "secret-name",
"optional": false
}
]
}
}
},
"statuses": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,50 @@
}
}
},
"PostBuildDefinition": {
"description": "The postBuild definitions defining variable substitutions for this Kustomization after kustomize build.",
"type": "object",
"x-nullable": true,
"properties": {
"substitute": {
"description": "Key/value pairs holding the variables to be substituted in this Kustomization.",
"type": "object",
"x-nullable": true,
"additionalProperties": {
"type": "string"
}
},
"substituteFrom": {
"description": "Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.",
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/SubstituteFromDefinition"
},
"x-nullable": true
}
}
},
"SubstituteFromDefinition": {
"description": "Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.",
"type": "object",
"x-nullable": true,
"properties": {
"kind": {
"description": "Define whether it is ConfigMap or Secret that holds the variables to be used in substitution.",
"type": "string"
},
"name": {
"description": "Name of the ConfigMap/Secret that holds the variables to be used in substitution.",
"type": "string"
},
"optional": {
"description": "Set to True to proceed without Configmap/Secret, if it is not present.",
"type": "boolean",
"default": false
}
}
},
"KustomizationDefinition": {
"description": "The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.",
"type": "object",
Expand Down Expand Up @@ -911,6 +955,20 @@
"description": "Enable/disable re-creating Kubernetes resources on the cluster when patching fails due to an immutable field change.",
"type": "boolean",
"default": false
},
"wait": {
"description": "Enable/disable health check for all Kubernetes objects created by this Kustomization.",
"type": "boolean",
"default": true
},
"postBuild":{
"description": "Used for variable substitution for this Kustomization after kustomize build.",
"type": "object",
"additionalProperties": {
"type": "object",
"$ref": "#/definitions/PostBuildDefinition"
},
"x-nullable": true
}
}
},
Expand Down

0 comments on commit a603ad7

Please sign in to comment.