-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support Alicloud #283
Closed
Closed
Support Alicloud #283
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8559b7b
add alicloud
knightXun ad69127
add alicloud
knightXun ee8349b
fix wrong tf
knightXun 2a55459
fix too small pvc size
knightXun eb0d693
fix etcd backup not support oss
knightXun f14bd70
fix wrong oss endpoints
knightXun 8b4c879
fix wrong oss endpoints
knightXun c90bd42
fix wrong oss endpoints
knightXun a868e2c
update etcdbrctl
knightXun abf5ee6
fix oss endpoint
knightXun e7bd354
fix ingress unable update status
knightXun e4cd501
add alicloud-dns in example
knightXun 4803e38
validate alicloud dns
knightXun c836c09
validate alicloud dns
knightXun b48a9d1
validate alicloud dns
knightXun d815cb9
fix wrong s3 tf
knightXun 8e25683
random oss bucket name
knightXun 6394356
support coreos
knightXun 18d5ca0
support coreos
knightXun adbad41
replace images of extension
knightXun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 @@ | ||
bucketname: (( data.terraform.outputs.bucketName.value )) |
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,41 @@ | ||
// Copyright 2019 Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
provider "alicloud" { | ||
access_key = var.ACCESS_KEY | ||
secret_key = var.SECRET_KEY | ||
region = var.REGION | ||
version = "=1.95.0" | ||
} | ||
|
||
resource "random_id" "storage_account" { | ||
byte_length = 8 | ||
} | ||
|
||
//===================================================================== | ||
//= OSS bucket | ||
//===================================================================== | ||
|
||
resource "alicloud_oss_bucket" "bucket-acl" { | ||
bucket = "${var.BUCKETNAME}${random_id.storage_account.hex}" | ||
acl = "private" | ||
} | ||
|
||
//===================================================================== | ||
//= Output variables | ||
//===================================================================== | ||
|
||
output "bucketName" { | ||
value = "${var.BUCKETNAME}${random_id.storage_account.hex}" | ||
} |
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,17 @@ | ||
# Copyright 2019 Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
ACCESS_KEY: (( config.credentials.accessKeyID )) | ||
SECRET_KEY: (( config.credentials.accessKeySecret )) | ||
LANDSCAPE: (( landscape.name )) |
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,39 @@ | ||
// Copyright 2019 Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. | ||
// | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
variable "ACCESS_KEY" { | ||
description = "Alicloud Access Key" | ||
type = string | ||
} | ||
|
||
variable "SECRET_KEY" { | ||
description = "Alicloud Secret Key" | ||
type = string | ||
} | ||
|
||
variable "REGION" { | ||
description = "Region of the OSS bucket" | ||
type = string | ||
} | ||
|
||
variable "BUCKETNAME" { | ||
description = "Name of the bucket" | ||
type = string | ||
} | ||
|
||
variable "LANDSCAPE" { | ||
description = "Name of the Landscape (for tagging)" | ||
type = string | ||
} | ||
|
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,4 @@ | ||
|
||
terraform { | ||
required_version = ">= 0.12" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,4 +173,4 @@ spec: | |
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
storage: 20Gi | ||
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 |
---|---|---|
|
@@ -43,6 +43,7 @@ spec: | |
s3: S3 | ||
abs: ABS | ||
swift: Swift | ||
oss: OSS | ||
|
||
server: | ||
commonName: garden:etcd-server:etcd | ||
|
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,23 @@ | ||
# Copyright 2019 Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
env: | ||
- name: "ALICLOUD_ENDPOINT" | ||
value: (( "oss-" config.region "-internal.aliyuncs.com" )) | ||
- name: "ALICLOUD_ACCESS_KEY_ID" | ||
value: (( config.credentials.accessKeyID )) | ||
- name: "ALICLOUD_ACCESS_KEY_SECRET" | ||
value: (( config.credentials.accessKeySecret )) | ||
|
||
volumeMounts: [] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will affect other existing landscapes. Can you make it configurable?