Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3fd6398
feat: first commit - setting CODEOWNER
vbontempi Jul 7, 2025
2fac9c0
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
vbontempi Jul 11, 2025
dfd10c4
feat: added subscription and cleanup
vbontempi Jul 11, 2025
736aadd
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
vbontempi Jul 15, 2025
7e143d5
feat: drafted code adding istio pilot customisation
vbontempi Jul 16, 2025
c9ed306
Merge branch 'main' of https://github.com/terraform-ibm-modules/terra…
vbontempi Aug 20, 2025
2dfecce
feat: added code to customise istiod helm chart
vbontempi Aug 20, 2025
58c4e8f
feat: adjusted dynamic values and helm components, jumped to helm 3
vbontempi Aug 27, 2025
d58482e
feat: added some dynamic values for istio cp
vbontempi Aug 27, 2025
fea2eac
fix: fixed helm chart template
vbontempi Aug 27, 2025
0bd515f
fix: fixed helm chart template
vbontempi Aug 27, 2025
e3bbf65
fix: fixed helm chart template
vbontempi Aug 27, 2025
813d00c
fix: fixed helm chart template
vbontempi Aug 27, 2025
c9fafc0
fix: removed default to force update controlplane
vbontempi Aug 28, 2025
3248b38
fix: fixed helm chart template
vbontempi Aug 28, 2025
1e3a215
fix: fixed helm chart notation and modified variable description
vbontempi Aug 28, 2025
b8edf62
feat: moved helm set syntax to a correct one
vbontempi Aug 29, 2025
226ba46
feat: refined controlplane definitions
vbontempi Oct 7, 2025
aaa143f
feat: added ingress submodule
vbontempi Oct 10, 2025
cd84799
feat: adjusted labels creation and modified examples accordingly
vbontempi Oct 17, 2025
82dec84
fix: fixed ingress templates for affinity
vbontempi Oct 29, 2025
e658077
feat: cleaned up istio controlplane definition and examples
vbontempi Nov 14, 2025
5c9bcd5
feat: cleaned up to keep operator deployment
vbontempi Nov 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crash.log
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
#
*.tfvars
**/*.tfvars

# Ignore files for local testing
test.tf
Expand Down Expand Up @@ -72,3 +72,8 @@ terraform.rc

# Go workspace file
go.work

**/ge_topology

# to remove
modules/sm-istio-ingress-sdnlb
6 changes: 3 additions & 3 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "go.sum|^.secrets.baseline$",
"lines": null
},
"generated_at": "2024-11-22T17:36:38Z",
"generated_at": "2025-11-14T11:16:57Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -82,13 +82,13 @@
"hashed_secret": "ff9ee043d85595eb255c05dfe32ece02a53efbb2",
"is_secret": false,
"is_verified": false,
"line_number": 74,
"line_number": 73,
"type": "Secret Keyword",
"verified_result": null
}
]
},
"version": "0.13.1+ibm.62.dss",
"version": "0.13.1+ibm.64.dss",
"word_list": {
"file": null,
"hash": null
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ TODO: Replace this with a description of the modules in this repo.
<!-- BEGIN OVERVIEW HOOK -->
## Overview
* [terraform-ibm-ocp-service-mesh](#terraform-ibm-ocp-service-mesh)
* [Submodules](./modules)
* [Examples](./examples)
* [Advanced example](./examples/advanced)
* [Basic example](./examples/basic)
* [Contributing](#contributing)
<!-- END OVERVIEW HOOK -->

Expand Down Expand Up @@ -123,7 +122,10 @@ statement instead the previous block.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.9.0 |
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.71.2, < 2.0.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 3.0.0 |
| <a name="requirement_ibm"></a> [ibm](#requirement\_ibm) | >= 1.59.0, < 2.0.0 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.2.1, < 4.0.0 |
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.9.1, < 1.0.0 |

### Modules

Expand All @@ -133,25 +135,23 @@ No modules.

| Name | Type |
|------|------|
| [ibm_resource_instance.cos_instance](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/resource_instance) | resource |
| [helm_release.service_mesh_operator](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [null_resource.undeploy_servicemesh](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [time_sleep.wait_operators](https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep) | resource |
| [ibm_container_cluster_config.cluster_config](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_cluster_config) | data source |

### Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_name"></a> [name](#input\_name) | A descriptive name used to identify the resource instance. | `string` | n/a | yes |
| <a name="input_plan"></a> [plan](#input\_plan) | The name of the plan type supported by service. | `string` | `"standard"` | no |
| <a name="input_resource_group_id"></a> [resource\_group\_id](#input\_resource\_group\_id) | The ID of the resource group where you want to create the service. | `string` | n/a | yes |
| <a name="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags) | List of resource tag to associate with the instance. | `list(string)` | `[]` | no |
| <a name="input_cluster_config_endpoint_type"></a> [cluster\_config\_endpoint\_type](#input\_cluster\_config\_endpoint\_type) | Specify which type of endpoint to use for for cluster config access: 'default', 'private', 'vpe', 'link'. 'default' value will use the default endpoint of the cluster. | `string` | `"default"` | no |
| <a name="input_cluster_id"></a> [cluster\_id](#input\_cluster\_id) | Id of the target IBM Cloud OpenShift Cluster | `string` | n/a | yes |
| <a name="input_deploy_operator"></a> [deploy\_operator](#input\_deploy\_operator) | Enable installing RedHat Service Mesh Operator | `bool` | `true` | no |
| <a name="input_develop_mode"></a> [develop\_mode](#input\_develop\_mode) | If true, output more logs, and reduce some wait periods | `bool` | `false` | no |

### Outputs

| Name | Description |
|------|-------------|
| <a name="output_account_id"></a> [account\_id](#output\_account\_id) | An alpha-numeric value identifying the account ID. |
| <a name="output_crn"></a> [crn](#output\_crn) | The CRN of the resource instance. |
| <a name="output_guid"></a> [guid](#output\_guid) | The GUID of the resource instance. |
| <a name="output_id"></a> [id](#output\_id) | The unique identifier of the resource instance. |
No outputs.
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

<!-- Leave this section as is so that your module has a link to local development environment set-up steps for contributors to follow -->
Expand Down
23 changes: 23 additions & 0 deletions chart/servicemeshoperator/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
24 changes: 24 additions & 0 deletions chart/servicemeshoperator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: service-mesh-operator
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.1"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
labels:
operators.coreos.com/servicemeshoperator3.openshift-operators: ""
name: {{ .Values.operators.name }}
namespace: {{ .Values.operators.namespace }}
spec:
channel: stable
installPlanApproval: {{ .Values.operators.installplanapproval }}
name: {{ .Values.operators.name }}
source: {{ .Values.operators.source }}
sourceNamespace: {{ .Values.operators.sourcenamespace }}
# startingCSV: servicemeshoperator3.v3.0.1
# startingCSV: servicemeshoperator3.v3.0.3
11 changes: 11 additions & 0 deletions chart/servicemeshoperator/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Default values for service-mesh.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

operators:
namespace: openshift-operators
name: servicemeshoperator3
version: v3.0.2
source: redhat-operators
sourcenamespace: openshift-marketplace
installplanapproval: Manual
2 changes: 1 addition & 1 deletion common-dev-assets
4 changes: 0 additions & 4 deletions examples/advanced/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions examples/advanced/main.tf

This file was deleted.

38 changes: 0 additions & 38 deletions examples/advanced/outputs.tf

This file was deleted.

8 changes: 0 additions & 8 deletions examples/advanced/provider.tf

This file was deleted.

39 changes: 0 additions & 39 deletions examples/advanced/variables.tf

This file was deleted.

16 changes: 0 additions & 16 deletions examples/advanced/version.tf

This file was deleted.

11 changes: 0 additions & 11 deletions examples/basic/README.md

This file was deleted.

Loading