FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackrox/operator/hack/generate-chart.sh at master · stackrox/stackrox · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackrox
/
stackrox
Public
Notifications
You must be signed in to change notification settings
Fork
191
Star
1.3k
Code
Issues
54
Pull requests
604
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
stackrox
/
operator
/
hack
/
generate-chart.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
47 lines (42 loc) · 1.55 KB
Breadcrumbs
stackrox
/
operator
/
hack
/
generate-chart.sh
Copy path
File metadata and controls
executable file
·
47 lines (42 loc) · 1.55 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!
/usr/bin/env bash
set
-euo pipefail
readonly
downstream_image=
"
registry.redhat.io/advanced-cluster-security/rhacs-rhel9-operator
"
operator_dir=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
/..
&&
pwd
)
"
function
usage()
{
echo
>&2
"
Usage:
$0
<opensource|development_build|rhacs> [VERSION]
"
echo
>&2
echo
>&2
"
Generates the operator helm chart in
${operator_dir}
/dist/chart
"
echo
>&2
echo
>&2
"
Argument | Branding | Operator Image Repository
"
echo
>&2
"
------------------+----------+-------------------------------------------------------------
"
echo
>&2
"
opensource | StackRox | quay.io/stackrox-io/stackrox-operator
"
echo
>&2
"
development_build | RHACS | quay.io/rhacs-eng/stackrox-operator
"
echo
>&2
"
rhacs | RHACS |
${downstream_image}
"
echo
>&2
echo
>&2
"
If VERSION is omitted, it will be inferred from the currently checked out commit.
"
echo
>&2
echo
>&2
"
Note: If you want to skip regenerating proto files, prepend the invocation with:
"
echo
>&2
"
ROX_OPERATOR_SKIP_PROTO_GENERATED_SRCS=true
"
exit
1
}
if
[[
"
${1
:-
--help}
"
=
"
--help
"
]]
;
then
usage
fi
if
[
-n
"
${2
:-
}
"
]
;
then
export
VERSION=
"
$2
"
fi
case
"
$1
"
in
opensource)
ROX_PRODUCT_BRANDING=STACKROX_BRANDING make -C
"
${operator_dir}
"
chart
;;
development_build)
ROX_PRODUCT_BRANDING=RHACS_BRANDING make -C
"
${operator_dir}
"
chart
;;
rhacs)
ROX_PRODUCT_BRANDING=RHACS_BRANDING make -C
"
${operator_dir}
"
chart IMAGE_TAG_BASE=
"
${downstream_image}
"
;;
*
)
echo
>&2
"
$0
: unrecognized argument:
$1
"
echo
>&2
usage
esac
Back
|
FazBrowse Home
|
New Git URL