Skip to content

Commit

Permalink
Merge pull request #24 from neticdk/feat/add-bitbucket-support
Browse files Browse the repository at this point in the history
Add support for bitbucket
  • Loading branch information
alex5517 authored Feb 12, 2024
2 parents c1bfe7d + 674cdb3 commit 61a35ac
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
10 changes: 5 additions & 5 deletions charts/aoi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A Helm chart for Netic application operations infrastructure
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| alerting.clusterId | string | `""` | Value of the label (cluster_id) |
| alerting.clusterWideNamespace.bootstrapConfig | object | `{"externalSecretsStore":{},"git":{"github":{},"gitlab":{}},"vault":{}}` | overwrite options configured in global.bootstrapConfig |
| alerting.clusterWideNamespace.bootstrapConfig | object | `{"externalSecretsStore":{},"git":{"bitbucket":{},"github":{},"gitlab":{}},"vault":{}}` | overwrite options configured in global.bootstrapConfig |
| alerting.clusterWideNamespace.bootstrapConfig.externalSecretsStore | object | `{}` | overwrite externalSecretStore options, make sure to include all options in overwrite, it is not merged with globally defined options. |
| alerting.clusterWideNamespace.bootstrapConfig.git.github | object | `{}` | overwrite git options, make sure to include all options in overwrite, it is not merged with globally defined options. |
| alerting.clusterWideNamespace.bootstrapConfig.vault | object | `{}` | overwrite vault options, make sure to include all options in overwrite, it is not merged with globally defined options. |
Expand Down Expand Up @@ -57,7 +57,7 @@ A Helm chart for Netic application operations infrastructure
| authProxy.terminationGracePeriodSeconds | int | `30` | |
| authProxy.tolerations | list | `[]` | |
| authProxy.topologySpauthProxyConstraints | list | `[]` | |
| dashboards.bootstrapConfig | object | `{"externalSecretsStore":{},"git":{"github":{},"gitlab":{}},"vault":{}}` | overwrite options configured in global.bootstrapConfig |
| dashboards.bootstrapConfig | object | `{"externalSecretsStore":{},"git":{"bitbucket":{},"github":{},"gitlab":{}},"vault":{}}` | overwrite options configured in global.bootstrapConfig |
| dashboards.bootstrapConfig.externalSecretsStore | object | `{}` | overwrite externalSecretStore options, make sure to include all options in overwrite, it is not merged with globally defined options. |
| dashboards.bootstrapConfig.git.github | object | `{}` | overwrite git options, make sure to include all options in overwrite, it is not merged with globally defined options. |
| dashboards.bootstrapConfig.vault | object | `{}` | overwrite vault options, make sure to include all options in overwrite, it is not merged with globally defined options. |
Expand All @@ -67,8 +67,8 @@ A Helm chart for Netic application operations infrastructure
| externalSecret.vaultPath | string | `nil` | |
| externalSecret.vaultServer | string | `nil` | |
| global.annotations | object | `{}` | |
| global.bootstrapConfig | object | `{"externalSecretsStore":{},"git":{"flavor":"github","github":{},"gitlab":{}},"vault":{}}` | Options to configure the bootstrapConfig globally can be overwritten for dashboards and clusterWideNamespace alerting namespace. .Values.dashboards.bootstrapConfig .Values.alerting.clusterWideNamespace.bootstrapConfig |
| global.bootstrapConfig.git.flavor | string | `"github"` | Which git flavor to use, currently only supports github and gitlab |
| global.bootstrapConfig | object | `{"externalSecretsStore":{},"git":{"bitbucket":{},"flavor":"github","github":{},"gitlab":{}},"vault":{}}` | Options to configure the bootstrapConfig globally can be overwritten for dashboards and clusterWideNamespace alerting namespace. .Values.dashboards.bootstrapConfig .Values.alerting.clusterWideNamespace.bootstrapConfig |
| global.bootstrapConfig.git.flavor | string | `"github"` | Which git flavor to use, currently only supports github, gitlab and bitbucket |
| global.clusterDomain | string | `"cluster.local"` | |
| global.containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
| global.containerSecurityContext.capabilities.drop[0] | string | `"all"` | |
Expand All @@ -92,7 +92,7 @@ A Helm chart for Netic application operations infrastructure
| grafana.resources.requests.memory | string | `"256Mi"` | |
| grafana.sidecar.dashboards.enabled | bool | `true` | |
| grafana.sidecar.dashboards.folderAnnotation | string | `"grafana_dashboard_folder"` | override grafana folder using annotation |
| grafana.sidecar.dashboards.label | string | `"aoi_dashboard"` | Load configmaps with label key |
| grafana.sidecar.dashboards.label | string | `"application-operations-dashboards"` | Load configmaps with label key |
| grafana.sidecar.dashboards.provider.disableDelete | bool | `true` | |
| grafana.sidecar.dashboards.provider.foldersFromFilesStructure | bool | `true` | |
| grafana.sidecar.dashboards.searchNamespace | list | `["application-operations-dashboards"]` | Watch for configmaps in namespaces |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ git:
{{- else if eq .Values.global.bootstrapConfig.git.flavor "gitlab" }}
gitlab:
{{- default .Values.global.bootstrapConfig.git.gitlab .Values.alerting.clusterWideNamespace.bootstrapConfig.git.gitlab | toYaml | nindent 4}}
{{- else if eq .Values.global.bootstrapConfig.git.flavor "bitbucket" }}
bitbucket:
{{- default .Values.global.bootstrapConfig.git.bitbucket .Values.alerting.clusterWideNamespace.bootstrapConfig.git.bitbucket | toYaml | nindent 4}}
{{- else }}
{{ fail "Invalid git flavor. Supported git flavors (github,gitlab)" }}
{{ fail "Invalid git flavor. Supported git flavors (github,gitlab,bitbucket)" }}
{{- end }}
vault:
{{- default .Values.global.bootstrapConfig.vault .Values.alerting.clusterWideNamespace.bootstrapConfig.vault | toYaml | nindent 2}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ git:
{{- else if eq .Values.global.bootstrapConfig.git.flavor "gitlab" }}
gitlab:
{{- default .Values.global.bootstrapConfig.git.gitlab .Values.dashboards.bootstrapConfig.git.gitlab | toYaml | nindent 4}}
{{- else if eq .Values.global.bootstrapConfig.git.flavor "bitbucket" }}
bitbucket:
{{- default .Values.global.bootstrapConfig.git.bitbucket .Values.dashboards.bootstrapConfig.git.bitbucket | toYaml | nindent 4}}
{{- else }}
{{ fail "Invalid git flavor. Supported git flavors (github,gitlab)" }}
{{ fail "Invalid git flavor. Supported git flavors (github,gitlab,bitbucket)" }}
{{- end }}
vault:
{{- default .Values.global.bootstrapConfig.vault .Values.dashboards.bootstrapConfig.vault | toYaml | nindent 2}}
Expand Down
5 changes: 4 additions & 1 deletion charts/aoi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ global:
# .Values.alerting.clusterWideNamespace.bootstrapConfig
bootstrapConfig:
git:
# -- Which git flavor to use, currently only supports github and gitlab
# -- Which git flavor to use, currently only supports github, gitlab and bitbucket
flavor: "github"
github: {}
gitlab: {}
bitbucket: {}
vault: {}
externalSecretsStore: {}

Expand All @@ -42,6 +43,7 @@ dashboards:
# -- overwrite git options, make sure to include all options in overwrite, it is not merged with globally defined options.
github: {}
gitlab: {}
bitbucket: {}
# -- overwrite vault options, make sure to include all options in overwrite, it is not merged with globally defined options.
vault: {}
# -- overwrite externalSecretStore options, make sure to include all options in overwrite, it is not merged with globally defined options.
Expand Down Expand Up @@ -343,6 +345,7 @@ alerting:
# -- overwrite git options, make sure to include all options in overwrite, it is not merged with globally defined options.
github: {}
gitlab: {}
bitbucket: {}
# -- overwrite vault options, make sure to include all options in overwrite, it is not merged with globally defined options.
vault: {}
# -- overwrite externalSecretStore options, make sure to include all options in overwrite, it is not merged with globally defined options.
Expand Down

0 comments on commit 61a35ac

Please sign in to comment.