Skip to content

Instantly share code, notes, and snippets.

View abutcher's full-sized avatar

abutcher

  • Raleigh, NC
View GitHub Profile
➜ hive (syncset-errors) ✗ make test
go install -mod=vendor k8s.io/code-generator/cmd/deepcopy-gen
go install -mod=vendor k8s.io/code-generator/cmd/conversion-gen
go install -mod=vendor k8s.io/code-generator/cmd/defaulter-gen
go install -mod=vendor k8s.io/code-generator/cmd/client-gen
go install -mod=vendor sigs.k8s.io/controller-tools/cmd/controller-gen
go install -mod=vendor github.com/jteeuwen/go-bindata/go-bindata
go install -mod=vendor github.com/golang/mock/mockgen
go install -mod=vendor golang.org/x/lint/golint
go install -mod=vendor github.com/golangci/golangci-lint/cmd/golangci-lint
DEBU[0337] loading SSH key secret clusterDeployment=abutcher controller=remotemachineset namespace=myproject
INFO[0337] reconcile complete clusterDeployment=abutcher controller=unreachable elapsed=191.90019ms namespace=myproject
DEBU[0337] remote cluster version status clusterDeployment=abutcher clusterversion.status="{{4.2.4 quay.io/openshift-release-dev/ocp-release@sha256:cebce35c054f1fb066a4dc0a518064945087ac1f3637
fe23d2ee2b0c433d6ba8 false} [{Completed 2019-11-11 11:48:10 -0500 EST 2019-11-11 12:06:16 -0500 EST 4.2.4 quay.io/openshift-release-dev/ocp-release@sha256:cebce35c054f1fb066a4dc0a518064945087ac1f3637fe23d2ee2
b0c433d6ba8 false}] 1 gd3peR_jS2k= [{Available True 2019-11-11 12:06:16 -0500 EST Done applying 4.2.4} {Failing False 2019-11-11 11:54:17 -0500 EST } {Progressing False 2019-11-11 12:06:16 -0500 EST Cluste
r version is 4.2.4} {RetrievedUpdates False 2019-11-11 11:48:10 -0500 EST RemoteFailed Unable to retrieve available up
$ make deploy
go generate ./pkg/... ./cmd/...
hack/update-bindata.sh
go run vendor/sigs.k8s.io/controller-tools/cmd/controller-gen/main.go crd
[debug] name="BaseDomain"
[debug] type="string"
[debug] JSONPath=".spec.baseDomain"
[debug] name="Installed"
[debug] type="boolean"
apiVersion: cluster.k8s.io/v1alpha1
kind: Machine
metadata:
creationTimestamp: 2019-02-13T19:17:07Z
finalizers:
- machine.cluster.k8s.io
generateName: abutcher-hive-worker-us-east-1a-
generation: 1
labels:
sigs.k8s.io/cluster-api-cluster: abutcher-hive
spec:
replicas: 1
selector:
matchLabels:
sigs.k8s.io/cluster-api-cluster: abutcher
sigs.k8s.io/cluster-api-machineset: abutcher-infra-us-east-1a
template:
metadata:
creationTimestamp: null
labels:
DEBU[0000] debug logging enabled
INFO[0000] Registering Components.
INFO[0000] Starting the Cmd.
INFO[0000] reconciling machine sets for cluster deployment clusterDeployment=abutcher namespace=myproject
INFO[0000] reconciling cluster deployment clusterDeployment=abutcher namespace=myproject
ERRO[0000] unable to load admin kubeconfig clusterDeployment=abutcher namespace=myproject
DEBU[0000] service account already exists clusterDeployment=abutcher name=cluster-installer namespace=myproject
DEBU[0000] role already exists clusterDeployment=abutcher name=cluster-installer namespace=myproject
DEBU[0000] rolebinding already exists clusterDeployment=abutcher name=cluster-installer namespace=myproject
DEBU[0000] found delete after annotation: 8h clusterDeployment=abutcher namespace=myproject
abutcher@Fedora [~/go/src/github.com/openshift/hive] 12:14:47 sync-machineset|✔
$ go test -v ./pkg/controller/remotemachineset/...
=== RUN TestRemoteMachineSetReconcile
=== RUN TestRemoteMachineSetReconcile/Kubeconfig_doesn't_exist_yet
time="2018-11-20T12:14:51-05:00" level=info msg="reconciling machine sets for cluster deployment" clusterDeployment=foo namespace=default
time="2018-11-20T12:14:51-05:00" level=error msg="unable to load kubeconfig" clusterDeployment=foo error="secrets \"foo-admin-kubeconfig\" not found" namespace=default
=== RUN TestRemoteMachineSetReconcile/No-op
FAIL github.com/openshift/hive/pkg/controller/remotemachineset 0.016s
A0iULAAlhQizKLkFqnYppH4pRGQYUMdUsozAMyVMQ3BNgW1A+oZI4yhwjkq1jiC9U4iigQpROEgQCxV5qBAmKiQXqbJRSR8JaiQQJxE1U0I3QdlJ6KeKoYpaqkRPUVNVXVWorQqRviJCnVWI0lqFiHoLKt0FFXvFXwoajAg6DLVYosdUNZlCl6U2Az5LMJpSpyWtRgR6jYhmg9ymqN1EvyHDqTiuENVypOdKTSddR2i7Sn2nyHgqOa+g9VTKfETAfkTIufJhI1ZcYrrzYUy1AtjXfLglLqFOGQ23y2laW/qdD9vV2EIUhl3FvhtKGQ3bSCKaD7fEJdQpo9GwT6S0pT5REa0YikgIb6jzYXMbK86HASR158MFtHd18mEASQ17Lof23iY8jIbdkOx8GEBSw57Lob23CQ+j4U0s3ZDsfBhAUsOey6G9twkPo+GRE3vriqQy0WkKQix0PgwgqWHP5dDe24SH0TAqSbB9rXeDNDY2zYcBJDXsuRzae5vwMBo24wrlwwCSGvZcDu29TXgYDaOSBNvXenc+vKtbR7yuMICkhj2XQ3tvEx5Gw22sWiJXPgwgqWHP5dDe24SH0bBzO/kwgKSGPZdDe28THkaj0fAmWeXOhxVDJKss2I2N+bBdjZ0pGo2GS7S3ECLFa4W06R6B5N1U25gpbFdjP1ERrRjKFMZEinc+DCCpYc/l0N7bhIdhH8mNoGrE2saJCAA7H26JS6hThgEkNexB95hMIhKuSGo0XBIBYOfDPiJKXZFUrm4d8SKEjUSKtSK5Iqlc3TriRYiGjV0SAWDnwz4iSl2RVK5uHfEihI1EirUiuSKpXN064kWIRsMQHiKicmtYsSQZNqO76c6HPeger4Yr8ol7BN5aYgpDd9Pwn7norW950D0mz5i2VOvPXPTWtwhgggUvIBiEl7gaYZiSbDphKkT6NqLh6fwf2JIsDPKWB91j8oxpS7Wm839gS7IwyFvwBEuwIA3PrUKm8HT+D6zorW950D0mz5i2VGs6/wdW9Na3
abutcher@wizard-sword [~/go/src/github.com/sigs.k8s.io/cluster-api-provider-aws] 14:33:04 machine-creation-conditions|⚡1
$ go test ./cloud/aws/actuators/... -v
cloud/aws/actuators/machine/actuator.go:40:2: cannot find package "sigs.k8s.io/cluster-api-provider-aws/cloud/aws/client" in any of:
/home/abutcher/go/src/github.com/sigs.k8s.io/cluster-api-provider-aws/vendor/sigs.k8s.io/cluster-api-provider-aws/cloud/aws/client (vendor tree)
/usr/lib/golang/src/sigs.k8s.io/cluster-api-provider-aws/cloud/aws/client (from $GOROOT)
/home/abutcher/go/src/sigs.k8s.io/cluster-api-provider-aws/cloud/aws/client (from $GOPATH)
cloud/aws/actuators/machine/actuator.go:41:2: cannot find package "sigs.k8s.io/cluster-api-provider-aws/cloud/aws/logging" in any of:
/home/abutcher/go/src/github.com/sigs.k8s.io/cluster-api-provider-aws/vendor/sigs.k8s.io/cluster-api-provider-aws/cloud/aws/logging (vendor tree)
/usr/lib/golang/src/sigs.k8s.io/cluster-api-provider-aws/cloud/aws/loggin
// AWSMachineCondition contains details for the current condition of a machine
type AWSMachineCondition struct {
// Type is the type of the condition.
Type AWSMachineConditionType `json:"type"`
// Status is the status of the condition.
Status corev1.ConditionStatus `json:"status"`
// LastProbeTime is the last time we probed the condition.
// +optional
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"`
// LastTransitionTime is the last time the condition transitioned from one status to another.