1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-21 00:32:59 +00:00
Commit Graph

766 Commits

Author SHA1 Message Date
Ricardo Weir
1c661fb05b Update wrangler to v1.1.0 2023-02-21 15:43:20 -07:00
Ricardo Weir
34230bb278
Merge pull request #424 from rmweir/add-useragent-v2.7
[Forwardport] v2.7: Add ability to copy controller and add useragent
2023-01-09 17:44:59 -07:00
Ricardo Weir
2ab2ab38f4 Add ability to copy controller and add useragent 2022-12-28 18:18:58 -07:00
Chris Kim
32ef2e185b
Merge pull request #422 from jiaqiluo/support-125
Support K8s 1.25
2022-12-05 11:47:27 -07:00
Jiaqi Luo
29dae41a91 remove the checks on some return values, which was added recently by another PR, to make it work when being used in rancher 2022-12-02 20:27:19 -07:00
Jiaqi Luo
c943439888 ignore clusterName when it is not found(the metadata.clusterName field is completely removed in k8s 1.25) 2022-12-02 20:27:02 -07:00
Jiaqi Luo
7da3397589 bump k8s modules to support 1.25; bump rancher Lasso and Wrangler to the latest 2022-12-02 19:55:36 -07:00
Jiaqi Luo
711a86c497 bump the base image to Go 1.19 used for Dapper; and fix golangci-lint's compatibility issue when using GO 1.19 2022-12-02 19:55:36 -07:00
Jiaqi Luo
5d579d3486 bump Go to 1.19 and fix errores golangci-lint reports 2022-12-02 19:55:36 -07:00
Jiaqi Luo
a17959b3b8 remove the vendor directory as we do not use Go Vender anymore 2022-12-02 19:55:33 -07:00
Kinara Shah
19eed06537
Merge pull request #418 from steffantucker/dapper-update
Updated dapper files
2022-11-28 10:31:31 -08:00
Steffan Tucker
1e41884a06
Fix golangci-lint issues
As part of updating dapper files, golangci-lint was set to be used. This
caused a lot of lint issues to crop up, which this fixes.
2022-07-26 10:40:30 -06:00
Steffan Tucker
e8b47ab4c4
Updated dapper files
Migrated to SUSE containers, a newer version of Go, and using golangci-lint for all linting.
2022-07-26 10:40:30 -06:00
Colleen Murphy
e21cabdc65
Merge pull request #421 from rancher/EIO-1168-ignore-fossa-failures
EIO-1168: Ignore FOSSA failures
2022-07-19 12:31:18 -07:00
Lucas Ramage
fd0504752f EIO-1168: Ignore FOSSA failures 2022-07-19 15:26:44 -04:00
Lucas Ramage
61b018639b
Merge pull request #409 from rancher/enable_fossa
enable fossa scanning
2022-07-01 11:06:27 -04:00
Kinara Shah
b74009fac3
Merge pull request #417 from kinarashah/k8s124 2022-06-27 15:25:20 -07:00
Kinara Shah
b38185fcf8 update k8s to v1.24 2022-06-27 13:11:30 -07:00
Kinara Shah
cba80063e7
Merge pull request #416 from jakefhyde/update-deprecated-message 2022-06-21 10:37:21 -07:00
Jake Hyde
7113b21724 Update Deprecated comment in controller template
Deprecated comments should begin with "Deprecated:" so it is recognized
by modern linters.
2022-06-10 18:30:15 -04:00
Colleen Murphy
6cf53c0913
Merge pull request #414 from KevinJoiner/cookie-token
updated cookie token size
2022-06-10 09:45:12 -07:00
Kevin Joiner
bbb7a54593 updated cookie token size 2022-06-09 11:34:57 -04:00
Ricardo Weir
4cc2f5a970
Merge pull request #413 from rmweir/only-update-change
[Forwardport] v2.6: Only update change
2022-05-20 15:57:14 -07:00
Ricardo Weir
c0d3c00cf1 Update lasso 2022-05-18 18:40:34 -07:00
Ricardo Weir
dd482e4939 Add generate package comment 2022-05-18 17:50:03 -07:00
Ricardo Weir
777953ddaf Update template to use no change update env var 2022-05-18 17:50:03 -07:00
Ricardo Weir
5a324b6fc6
Merge pull request #412 from rmweir/remove-norman-metrics
Remove controller metrics
2022-05-17 16:04:00 -07:00
Ricardo Weir
20335edec8 Remove controller metrics
Norman metrics' labels have too high of a cardinality as they
include object key as a label. This is a problem because metrics
produces a data row for every combination of labels. This can
have a large impact on performance and is cautioned against in
the prometheus docs. Norman now uses lasso which has metrics with
matching functionality apart from the object key, so norman
metrics will be removed in favor of lasso metrics.
2022-04-27 11:45:54 -07:00
Donnie Adams
82478fb169
Merge pull request #410 from macedogm/dependencies-bumps
Dependencies bumps
2022-04-06 08:35:59 -07:00
Guilherme Macedo
e7a075cab0
Dependencies bumps
Signed-off-by: Guilherme Macedo <guilherme.macedo@suse.com>
2022-04-05 17:36:46 +02:00
Nelson Roberts
ce7677f0ef
enable fossa scaning
request: https://github.com/rancherlabs/eio/issues/772
2022-03-31 13:48:37 -07:00
Darren Shepherd
4feb41eafa
Merge pull request #403 from takmatsu/fix-lock
Fix doSchema lock issue
2022-01-07 13:39:12 -07:00
Darren Shepherd
3a0171d001
Merge pull request #408 from niusmallnan/force-delete-26
Fix DeleteOption encoding errors for norman api
2022-01-07 13:37:26 -07:00
niusmallnan
47a7b0a1a1 Fix DeleteOption encoding errors for norman api 2021-12-29 13:30:35 +08:00
Sergey Nasovich
abe1797642
Merge pull request #407 from thedadams/stop-ignoring-id-fields 2021-12-01 10:48:50 -05:00
Donnie Adams
eb95d28e82 Stop ignoring id fields for sub-schemas
When generating types, any field with name "id" was being skipped. The intention
here was to skip the "id" field of the embedded types.Resource struct. A type
will have an embedded types.Resource struct when the hasGet function returns
true. Therefore, this hasGet function is also used to skip the id fields as
desired.
2021-11-29 16:19:56 -07:00
Kinara Shah
33e9117898
Merge pull request #406 from annablender/k3s-embedded-etcd
[2.6] Start k3s with embedded etcd
2021-11-03 08:38:32 -07:00
Anna Blendermann
c9509471e5 Start k3s with embedded etcd 2021-11-02 16:20:08 -04:00
Caleb Bron
85ac7aa15a
Merge pull request #402 from paynejacob/fix/list-perf
[2.5.11] Added typer to store
2021-10-29 08:24:48 -07:00
Jacob Payne
b32c167679
added typer to store 2021-10-25 08:50:05 -07:00
MATSUMOTO TAKEAKI
e5b9459adb Fix doSchema lock issue 2021-09-22 14:14:50 +09:00
Dan Ramich
afd06f533c
Merge pull request #401 from snasovich/k8s-1.22-support
Updated to use v1 API for CustomResourceDefinition
2021-07-09 08:53:27 -06:00
Sergey Nasovich
599fa929ab Updated CRDs to v1 API 2021-06-21 16:08:58 -04:00
Darren Shepherd
59b3523c31
Merge pull request #400 from cmurphy/nullablecomplex
Use norman:"pointer" for nullable fields
2021-06-08 13:25:17 -07:00
Colleen Murphy
6e4b2bab93 Add norman field attribute "pointer"
Add a new field attribute "pointer" to indicate that the generated
client code for the field must be a pointer. This allows clients to
differentiate between sending nil/leaving the value unset and sending an
empty map or slice.

This change also removes the `nullablestring` norman type introduced in
30f8d18 since schemas that need a pointer to a string can now use this
field attribute. There are no libraries currently using this feature so
it should be safe to remove.

Example usage:

```
Labels map[string]string `json:"labels" norman:"pointer"`
```

Resulting API schema:

```
"labels": {
  "create": true,
  "nullable": true,
  "pointer": true,
  "type": "map[string]",
  "update": true
}
```

Generated client code:

```
Labels *map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
```
2021-06-07 16:33:59 -07:00
Darren Shepherd
e48df26b54
Merge pull request #399 from StrongMonkey/log-to-file
Log k3s server logs to file
2021-05-13 13:47:52 -07:00
Daishan
986dd5b2e4 Log k3s server logs to file 2021-05-13 13:46:56 -07:00
Darren Shepherd
7b74a9f308
Merge pull request #396 from prachidamle/auth_header_fix
Adding impersonate-extra headers to request
2021-05-03 17:53:27 -07:00
Darren Shepherd
1d7f62d3a7
Merge pull request #398 from cmurphy/nullablestring
Add 'nullablestring' field type
2021-05-01 19:45:49 -07:00
Colleen Murphy
30f8d1802b Add 'nullablestring' field type
Currently, `*string` fields in Go structs are converted to `{type:
string, nullable: true}` in the API schema, which is right, but then
converted down to just `string` when converted to generated client
structs. Without this patch, there is no way to express that `*string`s
should stay as `*string`s when run through the generator, because the
'nullable' flag is ignored. Compare this to `*bool`s, which become
`boolean` in the schema and then correctly converted back to *bool in
the generator. This patch adds a backwards-compatible way to opt in to
converting `*string`s in the original struct to *strings in the
generated struct.
2021-05-01 16:24:23 -07:00