-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
324 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| commitizen: | ||
| major_version_zero: true | ||
| name: cz_gitmoji | ||
| tag_format: $version | ||
| update_changelog_on_bump: true | ||
| version_provider: scm | ||
| version_scheme: semver2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,4 +35,3 @@ override.tf.json | |
| # Ignore CLI configuration files | ||
| .terraformrc | ||
| terraform.rc | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.6.0 | ||
| hooks: | ||
| # Git style | ||
| - id: check-added-large-files | ||
| - id: check-merge-conflict | ||
| - id: check-vcs-permalinks | ||
| - id: forbid-new-submodules | ||
| - id: no-commit-to-branch | ||
|
|
||
| # Common errors | ||
| - id: end-of-file-fixer | ||
| - id: trailing-whitespace | ||
| args: [--markdown-linebreak-ext=md] | ||
| exclude: CHANGELOG.md | ||
| # - id: check-yaml | ||
| - id: check-merge-conflict | ||
| - id: check-executables-have-shebangs | ||
|
|
||
| # Cross platform | ||
| - id: check-case-conflict | ||
| - id: mixed-line-ending | ||
| args: [--fix=lf] | ||
|
|
||
| # Security | ||
| - id: detect-aws-credentials | ||
| args: ['--allow-missing-credentials'] | ||
| - id: detect-private-key | ||
|
|
||
| # JSON5 Linter | ||
| - repo: https://github.com/pre-commit/mirrors-prettier | ||
| rev: v4.0.0-alpha.8 | ||
| hooks: | ||
| - id: prettier | ||
| files: '.json5$' | ||
|
|
||
| # Terraform Hooks | ||
| - repo: https://github.com/antonbabenko/pre-commit-terraform | ||
| rev: v1.92.1 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases | ||
| hooks: | ||
| - id: terraform_fmt | ||
| args: | ||
| - --hook-config=--parallelism-ci-cpu-cores=2 | ||
| - id: terraform_docs | ||
| args: | ||
| - --hook-config=--parallelism-ci-cpu-cores=2 | ||
| - id: terraform_tflint | ||
| name: Terraform validate with tflint | ||
| description: Validates all Terraform configuration files with TFLint. | ||
| require_serial: true | ||
| entry: hooks/terraform_tflint.sh | ||
| language: script | ||
| files: (\.tf|\.tfvars)$ | ||
| exclude: \.(terraform/.*|terragrunt-cache)$ | ||
| args: | ||
| - --hook-config=--parallelism-ci-cpu-cores=2 | ||
| - id: terragrunt_fmt | ||
| name: Terragrunt fmt | ||
| description: Rewrites all Terragrunt configuration files to a canonical format. | ||
| entry: hooks/terragrunt_fmt.sh | ||
| language: script | ||
| files: (\.hcl)$ | ||
| exclude: \.(terraform/.*|terragrunt-cache)$ | ||
| args: | ||
| - --hook-config=--parallelism-ci-cpu-cores=2 | ||
| ### DISABLED UNTIL MINIFIED TERRAGRUNT.HCL IS CREATED | ||
| # - id: terragrunt_validate | ||
| # name: Terragrunt validate | ||
| # description: Validates all Terragrunt configuration files. | ||
| # entry: hooks/terragrunt_validate.sh | ||
| # language: script | ||
| # files: (\.hcl)$ | ||
| # exclude: \.(terraform/.*|terragrunt-cache)$ | ||
| # args: | ||
| # - --hook-config=--parallelism-ci-cpu-cores=2 | ||
| # - id: terragrunt_validate_inputs | ||
| # name: Terragrunt validate inputs | ||
| # description: Validates Terragrunt unused and undefined inputs. | ||
| # entry: hooks/terragrunt_validate_inputs.sh | ||
| # language: script | ||
| # files: (\.hcl)$ | ||
| # exclude: \.(terraform/.*|terragrunt-cache)$ | ||
| # args: | ||
| # - --hook-config=--parallelism-ci-cpu-cores=2 | ||
| # - id: terragrunt_providers_lock | ||
| # name: Terragrunt providers lock | ||
| # description: Updates provider signatures in dependency lock files using terragrunt. | ||
| # entry: hooks/terragrunt_providers_lock.sh | ||
| # language: script | ||
| # files: (terragrunt|\.terraform\.lock)\.hcl$ | ||
| # exclude: \.(terraform/.*|terragrunt-cache)$ | ||
| # args: | ||
| # - --hook-config=--parallelism-ci-cpu-cores=2 | ||
|
|
||
| - repo: https://github.com/ljnsn/cz-conventional-gitmoji | ||
| rev: v0.3.3 | ||
| hooks: | ||
| - id: conventional-gitmoji |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "branches": [ | ||
| "main", | ||
| "master" | ||
| ], | ||
| "ci": false, | ||
| "plugins": [ | ||
| "@semantic-release/commit-analyzer", | ||
| "@semantic-release/release-notes-generator", | ||
| [ | ||
| "@semantic-release/github", | ||
| { | ||
| "successComment": | ||
| "This ${issue.pull_request ? 'PR is included' : 'issue has been resolved'} in version ${nextRelease.version} :tada:", | ||
| "labels": false, | ||
| "releasedLabels": false | ||
| } | ||
| ], | ||
| [ | ||
| "@semantic-release/changelog", | ||
| { | ||
| "changelogFile": "CHANGELOG.md", | ||
| "changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file." | ||
| } | ||
| ], | ||
| [ | ||
| "@semantic-release/git", | ||
| { | ||
| "assets": [ | ||
| "CHANGELOG.md" | ||
| ], | ||
| "message": "chore(release): version ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" | ||
| } | ||
| ] | ||
| ] | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| formatter: markdown table | ||
|
|
||
| header-from: main.tf | ||
| footer-from: "" | ||
|
|
||
| sections: | ||
| ## hide: [] | ||
| show: | ||
| - data-sources | ||
| - header | ||
| - footer | ||
| - inputs | ||
| - modules | ||
| - outputs | ||
| - providers | ||
| - requirements | ||
| - resources | ||
|
|
||
| output: | ||
| file: README.md | ||
| mode: inject | ||
| template: |- | ||
| <!-- BEGIN_TF_DOCS --> | ||
| {{ .Content }} | ||
| <!-- END_TF_DOCS --> | ||
| output-values: | ||
| enabled: false | ||
| from: "" | ||
|
|
||
| sort: | ||
| enabled: true | ||
| by: name | ||
|
|
||
| settings: | ||
| anchor: true | ||
| color: true | ||
| default: true | ||
| description: true | ||
| escape: true | ||
| indent: 2 | ||
| required: true | ||
| sensitive: true | ||
| type: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| config { | ||
| module = true | ||
| force = false | ||
| disabled_by_default = false | ||
| } | ||
|
|
||
| rule "aws_instance_invalid_type" { | ||
| enabled = true | ||
| } | ||
|
|
||
| plugin "aws" { | ||
| enabled = true | ||
| version = "0.32.0" | ||
| source = "github.com/terraform-linters/tflint-ruleset-aws" | ||
| } | ||
|
|
||
| plugin "terraform" { | ||
| enabled = true | ||
| version = "0.9.0" | ||
| source = "github.com/terraform-linters/tflint-ruleset-terraform" | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,75 @@ | ||
| # tfmod-kiali | ||
|
|
||
| <!-- BEGIN_TF_DOCS --> | ||
| ## Requirements | ||
|
|
||
| | Name | Version | | ||
| |------|---------| | ||
| | <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 | | ||
| | <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.11.0 | | ||
| | <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | >= 2.23.0 | | ||
|
|
||
| ## Providers | ||
|
|
||
| | Name | Version | | ||
| |------|---------| | ||
| | <a name="provider_helm"></a> [helm](#provider\_helm) | 2.14.1 | | ||
| | <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.31.0 | | ||
|
|
||
| ## Modules | ||
|
|
||
| | Name | Source | Version | | ||
| |------|--------|---------| | ||
| | <a name="module_images"></a> [images](#module\_images) | git@github.e.it.census.gov:terraform-modules/aws-ecr-copy-images.git/ | tf-upgrade | | ||
| | <a name="module_kiali_ingress"></a> [kiali\_ingress](#module\_kiali\_ingress) | git@github.e.it.census.gov:SCT-Engineering/tfmod-gogatekeeper.git// | n/a | | ||
| | <a name="module_preinstall"></a> [preinstall](#module\_preinstall) | git@github.e.it.census.gov:SCT-Engineering/tfmod-config-job.git//config-job | n/a | | ||
| | <a name="module_service_account"></a> [service\_account](#module\_service\_account) | git@github.e.it.census.gov:SCT-Engineering/tfmod-config-job.git//service-account | n/a | | ||
|
|
||
| ## Resources | ||
|
|
||
| | Name | Type | | ||
| |------|------| | ||
| | [helm_release.kiali](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | | ||
| | [helm_release.kiali_operator](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource | | ||
| | [kubernetes_namespace.ns](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource | | ||
| | [kubernetes_namespace.operators](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/namespace) | data source | | ||
|
|
||
| ## Inputs | ||
|
|
||
| | Name | Description | Type | Default | Required | | ||
| |------|-------------|------|---------|:--------:| | ||
| | <a name="input_certificate_issuer"></a> [certificate\_issuer](#input\_certificate\_issuer) | The cluster issuer to use to create the grafana SSL certificate. | `string` | n/a | yes | | ||
| | <a name="input_cluster_domain"></a> [cluster\_domain](#input\_cluster\_domain) | The domain name used to reference ingresses for the cluster | `string` | n/a | yes | | ||
| | <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | The name of the cluster into which the tools are deployed. | `string` | n/a | yes | | ||
| | <a name="input_gogatekeeper_chart_version"></a> [gogatekeeper\_chart\_version](#input\_gogatekeeper\_chart\_version) | When SSO information is supplied, use this gogatekeeper chart version to protect kiali/jaeger | `string` | `""` | no | | ||
| | <a name="input_gogatekeeper_registry"></a> [gogatekeeper\_registry](#input\_gogatekeeper\_registry) | When SSO information is supplied, use gogatekeeper in this registry to protect kiali/jaeger | `string` | `""` | no | | ||
| | <a name="input_gogatekeeper_repository"></a> [gogatekeeper\_repository](#input\_gogatekeeper\_repository) | When SSO information is supplied, use gogatekeeper in this repository to protect kiali/jaeger | `string` | `""` | no | | ||
| | <a name="input_gogatekeeper_tag"></a> [gogatekeeper\_tag](#input\_gogatekeeper\_tag) | When SSO information is supplied, use gogatekeeper with this tag to protect kiali/jaeger | `string` | `""` | no | | ||
| | <a name="input_grafana_internal_url"></a> [grafana\_internal\_url](#input\_grafana\_internal\_url) | The url within the cluster to use to access grafana. | `string` | n/a | yes | | ||
| | <a name="input_grafana_namespace"></a> [grafana\_namespace](#input\_grafana\_namespace) | The namespace holding the grafana instance, used to look up the grafana password. | `string` | n/a | yes | | ||
| | <a name="input_grafana_public_url"></a> [grafana\_public\_url](#input\_grafana\_public\_url) | The URL incoming traffic from outisde the cluster uses to access grafana. | `string` | n/a | yes | | ||
| | <a name="input_grafana_secret_name"></a> [grafana\_secret\_name](#input\_grafana\_secret\_name) | The secret in the <grafana\_namespace> holding the grafana admin password. | `string` | n/a | yes | | ||
| | <a name="input_istio_namespace"></a> [istio\_namespace](#input\_istio\_namespace) | The namespace where istio has been deployed. | `string` | `"istio-system"` | no | | ||
| | <a name="input_jaeger_internal_url"></a> [jaeger\_internal\_url](#input\_jaeger\_internal\_url) | The url within the cluster to use to query the jaegertracing. | `string` | n/a | yes | | ||
| | <a name="input_keycloak_namespace"></a> [keycloak\_namespace](#input\_keycloak\_namespace) | The namespace holding the keycloak instance. | `string` | `""` | no | | ||
| | <a name="input_keycloak_public_url"></a> [keycloak\_public\_url](#input\_keycloak\_public\_url) | The hostname used with the cluster domain to access keycloak | `string` | `""` | no | | ||
| | <a name="input_keycloak_realm"></a> [keycloak\_realm](#input\_keycloak\_realm) | The existing keycloak realm in which the client should be created | `string` | `""` | no | | ||
| | <a name="input_kiali_application_version"></a> [kiali\_application\_version](#input\_kiali\_application\_version) | The version of kiali to install | `string` | `"v1.73.0"` | no | | ||
| | <a name="input_kiali_operator_version"></a> [kiali\_operator\_version](#input\_kiali\_operator\_version) | The version of kiali to install | `string` | `"1.73.0"` | no | | ||
| | <a name="input_namespace"></a> [namespace](#input\_namespace) | The namespace to create and into which the tools are deployed. | `string` | `"istio-tools"` | no | | ||
| | <a name="input_operators_namespace"></a> [operators\_namespace](#input\_operators\_namespace) | The namespace into which all operators are to be deployed. | `string` | n/a | yes | | ||
| | <a name="input_profile"></a> [profile](#input\_profile) | The AWS\_PROFILE to use while running the scripts. | `string` | `""` | no | | ||
| | <a name="input_prometheus_internal_url"></a> [prometheus\_internal\_url](#input\_prometheus\_internal\_url) | The url within the cluster to use to query the prometheus server. | `string` | n/a | yes | | ||
| | <a name="input_public_hostname"></a> [public\_hostname](#input\_public\_hostname) | The hostname to use for kiali that will be publicly available | `string` | `"kiali"` | no | | ||
| | <a name="input_sso_client_id"></a> [sso\_client\_id](#input\_sso\_client\_id) | The client id to use for SSO | `string` | `""` | no | | ||
| | <a name="input_sso_client_secret"></a> [sso\_client\_secret](#input\_sso\_client\_secret) | The secret associated with the sso\_client\_id | `string` | `""` | no | | ||
|
|
||
| ## Outputs | ||
|
|
||
| | Name | Description | | ||
| |------|-------------| | ||
| | <a name="output_internal_endpoint"></a> [internal\_endpoint](#output\_internal\_endpoint) | The internal endpoint to use to access kiali | | ||
| | <a name="output_module_name"></a> [module\_name](#output\_module\_name) | The name of this module. | | ||
| | <a name="output_module_version"></a> [module\_version](#output\_module\_version) | The version of this module. | | ||
| | <a name="output_public_endpoint"></a> [public\_endpoint](#output\_public\_endpoint) | The public endpoint to use to access kiali | | ||
| <!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| apiVersion: v2 | ||
| name: kiali | ||
| description: A Helm chart for Kubernetes | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| {{/* | ||
| Expand the name of the chart. | ||
| */}} | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| apiVersion: kiali.io/v1alpha1 | ||
| kind: Kiali | ||
| metadata: | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| --- | ||
| {{ if .Values.openid.secret }} | ||
| apiVersion: v1 | ||
| kind: Secret | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.