Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy ob-operator using terraform #204

Merged
merged 7 commits into from
Feb 27, 2024

Conversation

chris-sun-star
Copy link
Member

Summary

Deploy ob-operator using terraform

Solution Description

@chris-sun-star chris-sun-star changed the title Terraform deploy ob-operator using terraform Feb 7, 2024
@powerfooI
Copy link
Collaborator

powerfooI commented Feb 26, 2024

If there are more than one contexts in local .kube/config, generate_k8s_cluster_tfvars.sh will generate duplicated tfvars which causes Error: Attribute redefined when executing terraform apply.

Adding --minify to kubectl config view will solve it.

$ kubectl config view --help
    ....
    --minify=false:
        Remove all information not used by current-context from the output
    ....
    --raw=false:
        Display raw byte data and sensitive data

The command will seem like following

kubectl config view --raw --minify --output="go-template-file=cluster.tfvars.gotemplate" > terraform.tfvars

@powerfooI powerfooI closed this Feb 26, 2024
@powerfooI powerfooI reopened this Feb 26, 2024
@powerfooI
Copy link
Collaborator

powerfooI commented Feb 26, 2024

Maybe README-CN was forgotten. :)

Copy link
Collaborator

@powerfooI powerfooI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@powerfooI powerfooI merged commit 4e76559 into oceanbase:master Feb 27, 2024
4 checks passed
@chris-sun-star chris-sun-star deleted the terraform branch September 9, 2024 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants