This file contains hidden or 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
static final long[] FIB_ROOT = new long[] | |
{ | |
1, 1, 1, 0 | |
}; | |
/** | |
* @param l a positive long such that L < Long.MAX_VALUE (2^64 -1) | |
* @return | |
*/ | |
public static long[] computeFibonacciUntil(long l) { | |
assert l >= 0; |
This file contains hidden or 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
cluster_nodes = { | |
etcd_nodes = [ | |
{ | |
name = "etcd-1" | |
ip = "192.168.1.5" | |
}, | |
{ | |
name = "etcd-2" | |
ip = "192.168.1.6" |
This file contains hidden or 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
dns_server = { | |
// replace with your zone-name (configured above) | |
zone = "sunshower.cloud." // note the trailing period here--it's mandatory | |
// replace with your DNS server's IP | |
server = "192.168.1.2" | |
} | |
// this generates the DNS configuration for `kubernetes.sunshower.cloud` | |
api_dns = "kubernetes" | |
api_domain = "sunshower.cloud" |
This file contains hidden or 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
/** | |
Create DNS entries for virtual machines | |
*/ | |
module "dns_configuration" { | |
for_each = var.cluster_nodes | |
source = "./dns" | |
dns_server = var.dns_server | |
hosts = each.value | |
api_dns = var.api_server | |
api_domain = var.domain |
This file contains hidden or 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
provider "dns" { | |
update { | |
server = var.dns_server.server | |
} | |
} |
This file contains hidden or 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
terraform { | |
required_version = ">=0.14" | |
required_providers { | |
dns = { | |
source = "hashicorp/dns" | |
version = "3.0.1" | |
} | |
} | |
} |
This file contains hidden or 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
variable "A" { | |
type = object({ | |
name = string | |
ip = string | |
}) | |
} | |
variable "B" { | |
type = object({ | |
name = string |
This file contains hidden or 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
terraform { | |
required_providers { | |
dns = { | |
source = "hashicorp/dns" | |
} | |
} | |
} | |
/** |
This file contains hidden or 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
- uses: actions/upload-artifact@v2 | |
with: | |
name: zephyr-main | |
path: zephyr-main/build/distributions/*.zip | |
- name: get commit message | |
run: echo ::set-env name=commitmsg::$(git log --format=%B -n 1 ${{ github.event.after }}) | |
- name: Perform Release | |
id: create_release |
NewerOlder