Skip to content

Commit

Permalink
precommit test
Browse files Browse the repository at this point in the history
  • Loading branch information
holywen committed Feb 15, 2024
1 parent 61502d3 commit b5a8382
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 10 deletions.
10 changes: 3 additions & 7 deletions blueprints/01-getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Get started with the [CloudBees CD on Modern in EKS](https://docs.cloudbees.com/

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| hosted_zone | Route 53 Hosted Zone. CloudBees CD Apps is configured to use subdomains in this Hosted Zone. | `string` | n/a | yes |
| hosted_zone | Route 53 Hosted Zone. CloudBees CD Apps is configured to use this hosted zone. | `string` | n/a | yes |
| suffix | Unique suffix to be assigned to all resources | `string` | `""` | no |
| tags | Tags to apply to resources | `map(string)` | `{}` | no |

Expand All @@ -36,13 +36,9 @@ Get started with the [CloudBees CD on Modern in EKS](https://docs.cloudbees.com/
|------|-------------|
| acm_certificate_arn | ACM certificate ARN |
| cbcd_helm | Helm configuration for CloudBees CD Add-on. It is accesible only via state files. |
| cbcd_initial_admin_password | Operation Center Service Initial Admin Password for CloudBees CD Add-on. |
| cbcd_liveness_probe_ext | Operation Center Service External Liveness Probe for CloudBees CD Add-on. |
| cbcd_liveness_probe_int | Operation Center Service Internal Liveness Probe for CloudBees CD Add-on. |
| cbcd_namespace | Namespace for CloudBees CD Add-on. |
| cbcd_oc_ing | Operation Center Ingress for CloudBees CD Add-on. |
| cbcd_oc_pod | Operation Center Pod for CloudBees CD Add-on. |
| cbcd_oc_url | URL of the CloudBees CD Operations Center for CloudBees CD Add-on. |
| cbcd_password | command to get the admin password of Cloudbees CD |
| cbcd_url | URL of the CloudBees CD Operations Center for CloudBees CD Add-on. |
| eks_cluster_arn | EKS cluster ARN |
| kubeconfig_add | Add Kubeconfig to local configuration to access the K8s API. |
| kubeconfig_export | Export KUBECONFIG environment variable to access to access the K8s API. |
Expand Down
Original file line number Diff line number Diff line change
@@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4M2FUcHdzWlFHWStqcE1qUEttbDBTNXIxWU56RHhZN2Y2MUdyTC9KR1JYVWhqSXdoblIyCkNUVXZYaWVKSFRyVWpHV3p3UmZmaWVEc0tJZ2tYODlEanY0LzRMdmFpc2Z4S1BkRDhiM0dFNXkwN0luaHJ5cG0Ka3JFa1VHOC9yUDJ4eDJvSVoreUU2WC9oMWxtaytFcUZSSUZ6V2d6Q1hjNEpwTlo4MXpuMytNNC80RlY3Umk1egoveTNVRGRHNCtubS9SSnJEeDgreUpRb3hLRzhJSHhRSVpRTmlFcUtra1l0VDYrR054aUt6dk51dFdRMjI3bGdQCjc3QTBLOUNxUGkwa3V3amdTdjRtN1p0anZOUEU3SlBicURBWTZvT1VVRXdiK3hFS2R2K1I1eVZPZFJ5dXpkVG0KS08reUd2UmtjRmJaCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://46A1031476E308FDD40DAB5253ADA68C.gr7.us-east-1.eks.amazonaws.com
name: arn:aws:eks:us-east-1:324005994172:cluster/cbcd-bp01-swen-demo-eks
contexts:
- context:
cluster: arn:aws:eks:us-east-1:324005994172:cluster/cbcd-bp01-swen-demo-eks
user: arn:aws:eks:us-east-1:324005994172:cluster/cbcd-bp01-swen-demo-eks
name: arn:aws:eks:us-east-1:324005994172:cluster/cbcd-bp01-swen-demo-eks
current-context: arn:aws:eks:us-east-1:324005994172:cluster/cbcd-bp01-swen-demo-eks
kind: Config
preferences: {}
users:
- name: arn:aws:eks:us-east-1:324005994172:cluster/cbcd-bp01-swen-demo-eks
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- --region
- us-east-1
- eks
- get-token
- --cluster-name
- cbcd-bp01-swen-demo-eks
- --output
- json
command: aws
4 changes: 2 additions & 2 deletions blueprints/01-getting-started/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ locals {
module "eks_blueprints_addon_cbcd" {
source = "../../"

host_name = "cd.${var.hosted_zone}"
cert_arn = module.acm.acm_certificate_arn
host_name = "cd.${var.hosted_zone}"
cert_arn = module.acm.acm_certificate_arn

depends_on = [
module.eks_blueprints_addons
Expand Down
2 changes: 1 addition & 1 deletion blueprints/01-getting-started/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ output "cbcd_url" {

output "cbcd_password" {
description = "command to get the admin password of Cloudbees CD"
value = "kubectl get secret --namespace ${module.eks_blueprints_addon_cbcd.cbcd_namespace} cloudbees-cd-cloudbees-flow-credentials -o jsonpath='{.data.CBF_SERVER_ADMIN_PASSWORD}' | base64 --decode; echo"
value = "kubectl get secret --namespace ${module.eks_blueprints_addon_cbcd.cbcd_namespace} cloudbees-cd-cloudbees-flow-credentials -o jsonpath='{.data.CBF_SERVER_ADMIN_PASSWORD}' | base64 --decode; echo"
}

output "acm_certificate_arn" {
Expand Down

0 comments on commit b5a8382

Please sign in to comment.