Christian Goll
c6b65bc853
set the primary network in NodeInfo not in NetDev
...
Prior the primary was a boolean attribute of NetDev, so several
NetDevs could have been primay. Setting is as a sting in NodeConf
assures that only one network could be primary.
If no primary network is set, a valid altvalue will be set.
2023-02-10 10:46:01 +01:00
Christian Goll
7e64e995cb
Merge pull request #653 from anderbubble/650-syncuser-error-message
...
Refactor some variables in syncuser and correct error message
2023-02-03 12:27:15 +01:00
Christian Goll
4f0ad749d1
Merge pull request #639 from mslacken/DefaultNetwork
...
use default not override for single network entry
2023-02-03 11:54:01 +01:00
Jonathon Anderson
104f9197f3
Merge pull request #671 from hpcng/SortNetnames
...
sort netnames for node list
2023-02-02 20:56:45 -07:00
Jonathon Anderson
963793d96e
Merge pull request #669 from mslacken/FixContainerShow
...
container show will only show valid containers
2023-02-02 20:54:55 -07:00
Jonathon Anderson
e8e9c4f3bd
Merge branch 'development' into lint-update
2023-02-02 14:38:33 -07:00
Christian Goll
0a8638698d
sort netnames for node list
2023-02-01 11:10:51 +01:00
Christian Goll
b5725513b3
container show will only show valid containers
2023-02-01 09:30:27 +01:00
Jonathon Anderson
cb1726bd40
Minor spelling fix
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-31 14:57:27 -07:00
Jonathon Anderson
7e94c265f0
Refactor some variables in syncuser and correct error message
...
- Rename some internal variables to make the function easier to follow
- Refactor some code to make it simpler
- Remove some commented-out code
- Fix an error message
Closes #650
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-24 22:06:19 -06:00
Christian Goll
2cca2a7662
Merge pull request #640 from mslacken/removeSigs
...
remove signature from OCI image
2023-01-18 21:29:33 +01:00
Christian Goll
66bfa48fcc
Merge pull request #645 from mslacken/resolvKernelVers
...
resolve symlink for kernel version
2023-01-18 21:27:18 +01:00
Christian Goll
ab9c0534f5
Merge pull request #646 from anderbubble/627-remove-redundant-code
...
Remove redundant code
2023-01-18 21:25:55 +01:00
Jonathon Anderson
42f4f1db34
Simpler symlink handling in KernelFind
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-17 23:43:22 -07:00
David McFarlane
950099f9dc
Set umask to 0000 while overlays are being built. Fixes #584
2023-01-18 14:34:40 +11:00
Jonathon Anderson
3638378eaa
Remove redundant code
...
Pointed out in #627
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-16 14:42:06 -07:00
Christian
750358646d
resolve symlink for kernel version
2023-01-16 14:34:16 +01:00
Christian Goll
1df6f6229e
Merge pull request #630 from mslacken/GetBfromAltvalue
...
GetB must not ignore altvalue
2023-01-13 16:28:24 +01:00
Christian Goll
ae4fb41722
without nested if else
2023-01-12 10:37:19 +01:00
Christian Goll
534ae70ca4
remove signature from OCI image
2023-01-11 15:55:49 +01:00
Christian Goll
db863b99c5
use default not override for single network entry
2023-01-11 10:08:05 +01:00
Christian Goll
d9bfee0422
Merge pull request #631 from mslacken/FixTypoDefaults
...
fix typo for opening defaults.conf
2023-01-10 16:27:28 +01:00
Christian Goll
12460caa04
just return negated checks
2023-01-10 16:20:52 +01:00
Christian Goll
626b9769ac
also handle default value
2023-01-09 11:57:11 +01:00
Jonathon Anderson
5b50ef724c
Fix 'nodes' alias for 'node' not 'profile'
...
Fixes #609
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-01-06 14:17:46 -07:00
Christian Goll
7a88ff239f
checking only for false outcome
2023-01-05 11:03:08 +01:00
Christian Goll
09f00b9cac
fix typo for opening defaults.conf
2023-01-04 14:23:47 +01:00
Christian Goll
a4a80e0268
GetB must not ignore altvalue
2023-01-04 14:03:02 +01:00
Christian Goll
718064e671
add confirmation for wwctl container delete
...
close #606
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 15:00:12 +01:00
Christian Goll
9539e20a4e
add -y flag to wwctl profile add
...
close #610
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 14:54:42 +01:00
Christian Goll
0e6223b6f8
do not confirm deleting zero nodes
...
close #603
Signed-off-by: Christian Goll <cgoll@suse.de >
2022-12-22 14:48:58 +01:00
Jonathon Anderson
248c5896ce
Correct confirmation output in profile set
...
Closes #600
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-17 18:00:23 -07:00
Jonathon Anderson
423e319bf4
Add --- to the head of FallBackConf
...
Why have I done this?
- Because defaults.conf had a starting newline, which bugs me.
- Because moving the first line of FallBackConf looks unlovely.
- Because yaml happens to have a --- document-start syntax.
I completely agree that this is (hopefully) a no-op change;
but if anyone else thinks it makes things aesthetically more
pleasing, and agrees that it doesn't break anything, go ahead
and merge. ^_^
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-13 17:48:38 -07:00
Christian Goll
d19dc752ff
Merge pull request #580 from jtfrey/gzip-fixup
...
VNFS gzip: fallback to redirected stdout
2022-12-09 09:56:16 +01:00
Christian Goll
0a83dd4508
Merge pull request #579 from brianphan/ww-shell-env-var
...
Env var to identify when in container shell
2022-12-09 09:53:45 +01:00
Christian Goll
f8429e4d01
Merge pull request #581 from mslacken/ipxeDefault
...
need ipxe template in defaults
2022-12-09 09:53:14 +01:00
Christian Goll
c7abc078bf
Merge pull request #585 from mslacken/fix-container-list
...
react on the error accordingly
2022-12-09 09:53:01 +01:00
Jonathon Anderson
78b857a3e4
Whitespace cleanup
...
Removes trailing whitespace from all source files.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-12-08 18:59:56 -07:00
Christian Goll
241425f525
react on the error accordingly
2022-12-07 15:10:18 +01:00
Brian Phan
b0389e1337
Set WW_CONTAINER_SHELL to Container Name
2022-12-06 09:24:01 -08:00
Jeffrey Frey
17d6448180
Fix unhandled return value from Wait()
...
Discard return error from proc.Wait() to pass lint tests
2022-11-30 16:08:58 -05:00
Brian Phan
7cd8f030ec
Use 1 instead of true
2022-11-30 07:23:13 -08:00
Christian Goll
f7b67b93a3
need ipxe template in defaults
2022-11-30 15:33:07 +01:00
Jeffrey Frey
8c6f85a0a9
Update util.go
2022-11-29 15:13:00 -05:00
Jeffrey Frey
fd1f197468
Update util.go
2022-11-29 15:09:14 -05:00
Jeffrey Frey
52b932081c
Scoping issue with err
...
Use of := inside conditional body overrode scope of return value `err`
2022-11-29 14:40:06 -05:00
Jeffrey Frey
e9d7432e79
Fixup spacing
...
Tabs, not spaces.
2022-11-29 14:10:16 -05:00
Jeffrey Frey
9c3cc59d85
Missing --keep option, older versions of gzip
...
Older versions of the `gzip` utility do not understand the `--keep` flag. If `gzip` is used and initially exits in error with the text "unrecognized option" produced on stderr, use the write-to-stdout behavior for `gzip` and open and attach the desired output file to that command's stdout.
2022-11-29 14:03:58 -05:00
Brian Phan
3e8bd09990
Env var to identify when in container shell
2022-11-29 09:15:09 -08:00
Christian Goll
79ed2a33ff
added simple test for transformer.go
2022-11-29 14:30:41 +01:00