refactor(deploy): update ingress to use production hostname

Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2021-06-29 15:10:02 -07:00
parent 5de1b68864
commit 81e2b36330
No known key found for this signature in database
GPG Key ID: 1A44596652153B27
2 changed files with 34 additions and 2 deletions

View File

@ -8,10 +8,10 @@ metadata:
spec:
tls:
- hosts:
- testapi.katb.in
- api.katb.in
secretName: katbin-tls
rules:
- host: testapi.katb.in
- host: api.katb.in
http:
paths:
- path: /

View File

@ -5,3 +5,35 @@ pub fn get_random_id() -> String {
let mut jirachi = Jirachi::new().unwrap();
jirachi.wish().unwrap()
}
// use rand::prelude::SliceRandom;
// static VLIST: [&'static str; 5] = ["a", "e", "i", "o", "u"];
// static CLIST: [&'static str; 21] = [
// "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x",
// "y", "z",
// ];
// fn rand_vowel() -> String {
// (*VLIST.choose(&mut rand::thread_rng()).unwrap()).to_owned()
// }
// fn rand_consonant() -> String {
// (*CLIST.choose(&mut rand::thread_rng()).unwrap()).to_owned()
// }
// pub fn get_random_id() -> String {
// let mut text = String::from("");
// let start = if rand::random::<bool>() { 0 } else { 1 };
// for i in 0..8 {
// let to_push = if i % 2 == start {
// rand_consonant()
// } else {
// rand_vowel()
// };
// text.push_str(&to_push)
// }
// text
// }