Sebastiaan van Steenis
9c711e669c
Use golangci-lint v0.40.1
2021-06-06 14:20:54 +02:00
Sebastiaan van Steenis
738bda5fb6
Dont deploy statefile if its not readable
2021-05-18 07:24:57 +02:00
Sebastiaan van Steenis
8c376291ed
Merge pull request #2421 from superseb/warn_on_snapshot_name_extension
...
Warn when snapshot name contains file extension
2021-01-26 15:42:10 +01:00
Sebastiaan van Steenis
64f985fdaf
Merge pull request #2277 from superseb/add_util_cmd
...
Add util command
2021-01-19 15:45:37 +01:00
Sebastiaan van Steenis
7bf18c61fd
Warn when snapshot name contains file extension
2021-01-17 16:09:12 +01:00
Sebastiaan van Steenis
cf2e49b277
Merge pull request #2325 from edgarlanting/patch-1
...
EL - Fix a typo in config.go
2021-01-14 14:25:23 +01:00
Sebastiaan van Steenis
a68a64c0ce
Add util command
2021-01-08 18:06:21 +01:00
Ryan Sanna
49e158a974
Revert "Revert "Encryption Key Rotation Changes""
2020-12-14 11:51:46 -07:00
Ryan Sanna
92573270c7
Revert "Encryption Key Rotation Changes"
2020-12-09 13:49:27 -07:00
Ryan Sanna
e42ff49fec
key rotation as part of ClusterUp, more robust secrets rewrite, improved logging
2020-12-08 12:00:32 -07:00
Kiran Shastri
4f062997bb
Introduce ACI CNI network provider
...
ACI CNI supports k8s versions 1.18+
Added template and arguments for ACI CNI
Disable cloud options for ACI.
Separate generated code into another commit
Signed-off-by: Kiran Shastri <shastrinator@gmail.com>
(cherry picked from commit e94c54005e
)
2020-11-17 15:29:03 -05:00
shredgar
e049237ea9
Fix typo in config.go
...
Fixed a small typo in `config.go` at:
```
const (
comments = `# If you intened to deploy Kubernetes in an air-gapped environment,
# please consult the documentation on how to configure custom RKE images.`
)
```
to:
```
const (
comments = `# If you intended to deploy Kubernetes in an air-gapped environment,
# please consult the documentation on how to configure custom RKE images.`
)
```
2020-11-11 10:29:40 +01:00
Sebastiaan van Steenis
12b4dcaf59
Remove statefile for dind remove
2020-09-08 21:33:06 -07:00
Sebastiaan van Steenis
f251e3ca92
Change file copy method for state file
2020-08-14 18:42:37 +02:00
Sebastiaan van Steenis
6761a1a3e1
Add restore flag to use local state
2020-08-04 13:13:43 +02:00
Sebastiaan van Steenis
1883a4c3bf
Merge pull request #2152 from superseb/snapshot_include_state
...
Able to include and extract state file in snapshot
2020-07-24 20:24:28 +02:00
Sebastiaan van Steenis
9bca29befb
Able to include and extract state file in snapshot
2020-07-21 11:09:37 +02:00
Darren Shepherd
c405e6ea1b
Remove references to rancher/types
2020-07-11 23:29:33 -07:00
Sebastiaan van Steenis
e2b5828e5b
Merge pull request #1957 from psliwka/fix-restoring-backups-when-custom-certs-are-used
...
Fix restoring backups when custom certs are used
2020-07-07 11:25:24 +02:00
rawmind0
8ff29b617f
Updated api bool fields with default=true to *bool. Go files
2020-06-02 20:15:53 +02:00
Piotr Śliwka
1dc2db8606
Fix restoring backups when custom certs are used
...
Before this change, `rke etcd snapshot-restore` did not support
`--custom-certs` and `--cert-dir` flags. As a result, an attempt to
restore snapshot on cluster using custom certificates resulted in fatal
error:
```
FATA[0032] CA Certificate or Key is empty
```
This commit adds `--custom-certs` and `--cert-dir` flag handling similar
to `rke up` command, resolving the issue.
2020-03-23 16:21:53 +01:00
rajashree
b0db0a64a8
Validate kube-ca cert before rotating certs
2020-03-19 11:12:45 -07:00
rmweir
4b5d4cbf6c
No longer add first errors twice
2020-03-18 16:52:19 -07:00
Sebastiaan van Steenis
d65d72ae6d
Enable kube-api audit log for new k8s versions
2020-03-15 13:55:47 +01:00
rmweir
746e9a1c21
Skip restore if no valid certs
2020-03-14 18:58:32 -07:00
rajashree
b2a71ce067
Use non-zero downtime upgrade logic during restore
...
If restore flag is set to true on RKEConfig, the reconcileCluster flag in
ClusterUp should not be set to true, so that DeployControlPlane and DeployWorkerPlane
call the non-zero downtime upgrade functions RunControlPlane and RunWorkerPlane respectively
2020-03-13 09:09:30 -07:00
rajashree
6b25bcf3e0
Remove ignore-upgrade label from zero downtime upgrade
2020-03-10 23:36:17 -07:00
rajashree
d420881c41
Check role before including host in inactive host list
2020-03-01 19:03:07 -08:00
rajashree
e27a05f8b1
Attempt upgrade on NotReady hosts
2020-02-26 14:14:42 -08:00
rajashree
968a399f26
Accept label to ignore nodes during upgrade
...
RKE does a cluster scan to find the unreachable hosts, and if that number
is same as or exceeds maxUnavailable, upgrade won't proceed.
This commit introduces a label users can provide for their nodes so they
don't get counted as unavailable and are excluded from upgrade.
This commit also includes a couple of bug fixes
2020-02-22 14:23:47 -08:00
rajashree
11678a3f98
Change RKE upgrade logic for zero downtime
2020-02-05 16:19:47 -08:00
Alena Prokharchyk
34c63f5e45
Address panic in cert rotation code
2019-12-04 11:30:30 -08:00
Alena Prokharchyk
72fd42b8d2
Save cluster state to k8s on cert rotation
...
In addition to storing it on the disk
2019-11-11 15:12:55 -08:00
moelsayed
372393ac1b
Add Secret Encryption Provider Support
2019-10-29 14:10:32 -07:00
kinarashah
c706efdfe0
initialize metadata start of cluster config action
2019-10-22 21:48:23 -07:00
Dax McDonald
ad678b6a32
Remove dead code
2019-10-04 15:02:14 -07:00
Rowan James
3ac2ef216d
Sprintf consistency when handling API URL
2019-10-03 12:30:04 -07:00
Rowan James
9873b5f57a
security: don't pass arbitrary configuration data to format string
...
This could just use concatenation, but consistency is key.
2019-10-03 12:30:04 -07:00
kinarashah
4b96098db0
remove windows image from rkesystemimages for rke cli
2019-09-20 10:09:46 -07:00
kinarashah
9411027476
consider service options based on hostOS info
2019-09-09 11:12:33 -07:00
Frank Mai
0a170b22b7
Support to accpet new Windows service options
...
**Issue:**
https://github.com/rancher/rancher/issues/22470
2019-09-05 17:05:34 -07:00
Murali Paluru
c69d971962
print version
2019-09-03 13:13:34 -07:00
galal-hussein
798632b3a4
Handle missing request header ca in rotate certificate
2019-08-29 13:42:47 -07:00
Luther Monson
3d73507880
added rke --quiet and config --list-version, linting refactor
2019-08-27 13:07:48 -07:00
Luther Monson
0a92b0604f
changed to Debugf, removed unneeded grep
2019-08-22 16:36:15 -07:00
Sebastiaan van Steenis
65df510251
Improve etcd snapshot logging
2019-08-21 20:40:40 -07:00
Darren Shepherd
f8bac2c059
Update to new certs package since latest k8s dropped it
2019-08-19 11:02:43 -07:00
Sebastiaan van Steenis
0eccf512be
Make commonflags work with rke cert commands
2019-08-08 20:28:02 +02:00
Sebastiaan van Steenis
3f94e86706
Revert "Add per node kubelet server certificate"
...
This reverts commit b860e634db
.
2019-08-08 09:49:47 -07:00
Sebastiaan van Steenis
b860e634db
Add per node kubelet server certificate
2019-07-31 14:54:43 -07:00