Skip to content
Merged

Mvp #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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