Skip to content

Commit

Permalink
redo branch from main
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-lunsford-even committed Jul 31, 2024
1 parent f75facb commit 8566329
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/privateloadzone_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
type PrivateLoadZoneSpec struct {
Token string `json:"token"`
Resources corev1.ResourceRequirements `json:"resources"`
Tolerations []corev1.Toleration `json:tolerations`

Check failure on line 37 in api/v1alpha1/privateloadzone_types.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, 1.19.2, ubuntu-latest)

struct field tag `json:tolerations` not compatible with reflect.StructTag.Get: bad syntax for struct tag value

Check failure on line 37 in api/v1alpha1/privateloadzone_types.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, 1.24.1, ubuntu-latest)

struct field tag `json:tolerations` not compatible with reflect.StructTag.Get: bad syntax for struct tag value

Check failure on line 37 in api/v1alpha1/privateloadzone_types.go

View workflow job for this annotation

GitHub Actions / golangci

structtag: struct field tag `json:tolerations` not compatible with reflect.StructTag.Get: bad syntax for struct tag value (govet)

Check failure on line 37 in api/v1alpha1/privateloadzone_types.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, 1.27.1, ubuntu-latest)

struct field tag `json:tolerations` not compatible with reflect.StructTag.Get: bad syntax for struct tag value
ServiceAccountName string `json:"serviceAccountName,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
Image string `json:"image,omitempty"`
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions config/crd/bases/k6.io_privateloadzones.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@ spec:
x-kubernetes-int-or-string: true
type: object
type: object
tolerations:
items:
properties:
effect:
type: string
key:
type: string
operator:
type: string
tolerationSeconds:
format: int64
type: integer
value:
type: string
type: object
type: array
serviceAccountName:
type: string
token:
Expand Down
2 changes: 2 additions & 0 deletions pkg/testrun/plz.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func NewPLZTestRun(plz *v1alpha1.PrivateLoadZone, trData *cloud.TestRunData, ing
ServiceAccountName: plz.Spec.ServiceAccountName,
NodeSelector: plz.Spec.NodeSelector,
Resources: plz.Spec.Resources,
Tolerations: plz.Spec.Tolerations,
Volumes: []corev1.Volume{
volume,
},
Expand All @@ -66,6 +67,7 @@ func NewPLZTestRun(plz *v1alpha1.PrivateLoadZone, trData *cloud.TestRunData, ing
ServiceAccountName: plz.Spec.ServiceAccountName,
NodeSelector: plz.Spec.NodeSelector,
ImagePullSecrets: plz.Spec.ImagePullSecrets,
Tolerations: plz.Spec.Tolerations,
},
Script: v1alpha1.K6Script{
LocalFile: "/test/archive.tar",
Expand Down

0 comments on commit 8566329

Please sign in to comment.