Skip to content

Commit

Permalink
Merge pull request #11 from enxebre/mvp
Browse files Browse the repository at this point in the history
Mvp
  • Loading branch information
enxebre committed Aug 10, 2018
2 parents 64ad395 + 2163e3f commit 28b5224
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 212 deletions.
12 changes: 12 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,15 @@ func NewClient(kubeClient kubernetes.Interface, mSpec *cov1.MachineSetSpec, name
elbClient: elb.New(s),
}, nil
}

func getIgn(kubeClient kubernetes.Interface) (string, error) {
ignConfig, err := kubeClient.CoreV1().ConfigMaps("kube-system").Get("ign-config", metav1.GetOptions{})
if err != nil {
return "", err
}
ignConfigWorker, ok := ignConfig.Data["worker"]
if !ok {
return "", nil
}
return ignConfigWorker, nil
}
14 changes: 7 additions & 7 deletions examples/machine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
value:
apiVersion: awsproviderconfig/v1alpha1
kind: AWSClusterProviderConfig
clusterId: test
clusterId: meh.tectonic.kuwit.rocks
clusterVersionRef:
namespace: test
name: test
Expand All @@ -31,7 +31,7 @@ spec:
sslSecret:
name: test-certs
region: eu-west-1
keyPairName: test
keyPairName: tectonic
defaultHardwareSpec:
aws:
instanceType: t1.micro
Expand All @@ -49,7 +49,7 @@ spec:
apiVersion: "cluster.k8s.io/v1alpha1"
kind: Machine
metadata:
name: test
name: extra-worker
namespace: test
generateName: vs-master-
labels:
Expand All @@ -59,12 +59,12 @@ spec:
value:
apiVersion: awsproviderconfig/v1alpha1
kind: AWSMachineProviderConfig
clusterId: test
clusterId: meh.tectonic.kuwit.rocks
clusterHardware:
aws:
accountSecret:
name: test-aws-creds
keyPairName: test
keyPairName: tectonic
region: eu-west-1
sshSecret:
name: test-ssh-key
Expand All @@ -76,8 +76,8 @@ spec:
instanceType: t1.micro
infra: false
vmImage:
# CoreOS-stable-1520.5.0
awsImage: ami-03f6257a
# CoreOS-beta-1828.3.0-hvm
awsImage: ami-0518e1ac70d8a3389
versions:
kubelet: 1.10.1
controlPlane: 1.10.1
Expand Down
Loading

0 comments on commit 28b5224

Please sign in to comment.