File tree Expand file tree Collapse file tree
deploy/helm/opa-operator/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313image.tar
1414
1515tilt_options.json
16+ .values.yaml
1617
1718.direnv /
1819.direnvrc
Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ config:
4444 cp -r deploy/config-spec/* " deploy/helm/${OPERATOR_NAME} /configs" ; \
4545 fi
4646
47+ # We generate a crds.yaml, so that the effect of code changes are visible.
48+ # The operator will take care of the CRD rollout itself.
4749crds :
4850 mkdir -p extra
4951 cargo run --bin stackable-" ${OPERATOR_NAME} " -- crd > extra/crds.yaml
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ custom_build(
1717 outputs_image_ref_to = 'result/ref' ,
1818)
1919
20- # Load the latest CRDs from Nix
21- watch_file ('result' )
22- if os .path .exists ('result' ):
23- k8s_yaml ('result/crds.yaml' )
24-
2520# We need to set the correct image annotation on the operator Deployment to use e.g.
2621# oci.stackable.tech/sandbox/opa-operator:7y19m3d8clwxlv34v5q2x4p7v536s00g instead of
2722# oci.stackable.tech/sandbox/opa-operator:0.0.0-dev (which does not exist)
Original file line number Diff line number Diff line change @@ -24,6 +24,20 @@ ignore = [
2424 #
2525 # https://github.com/RustCrypto/RSA/issues/19 is the tracking issue
2626 " RUSTSEC-2023-0071" ,
27+
28+ # https://rustsec.org/advisories/RUSTSEC-2024-0436
29+ # The "paste" crate is no longer maintained because the owner states that the implementation is
30+ # finished. There are at least two (forked) alternatives which state to be maintained. They'd
31+ # need to be vetted before a potential switch. Additionally, they'd need to be in a maintained
32+ # state for a couple of years to provide any benefit over using "paste".
33+ #
34+ # This crate is only used in a single place in the xtask package inside the declarative
35+ # "write_crd" macro. The impact of vulnerabilities, if any, should be fairly minimal.
36+ #
37+ # See thread: https://users.rust-lang.org/t/paste-alternatives/126787/4
38+ #
39+ # This can only be removed again if we decide to use a different crate.
40+ " RUSTSEC-2024-0436" ,
2741]
2842
2943[bans ]
@@ -67,6 +81,9 @@ license-files = [
6781[sources ]
6882unknown-registry = " deny"
6983unknown-git = " deny"
84+ allow-git = [
85+ " https://github.com/kube-rs/kube-rs" ,
86+ ]
7087
7188[sources .allow-org ]
7289github = [" stackabletech" ]
Original file line number Diff line number Diff line change @@ -77,16 +77,15 @@ spec:
7777 fieldRef :
7878 fieldPath : spec.nodeName
7979
80- - name : OPA_BUNDLE_BUILDER_CLUSTERROLE
81- value : {{ include "operator.fullname" . }}-opa-bundle-builder-clusterrole
82-
8380 {{- if .Values.kubernetesClusterDomain }}
8481 - name : KUBERNETES_CLUSTER_DOMAIN
8582 value : {{ .Values.kubernetesClusterDomain | quote }}
8683 {{- end }}
8784
8885 {{- include "telemetry.envVars" . | nindent 12 }}
8986 {{- include "maintenance.envVars" . | nindent 12 }}
87+ - name : OPA_BUNDLE_BUILDER_CLUSTERROLE
88+ value : {{ include "operator.fullname" . }}-opa-bundle-builder-clusterrole
9089 volumes :
9190 - name : config-spec
9291 configMap :
Original file line number Diff line number Diff line change 1+
12---
23apiVersion : v1
34kind : Service
45metadata :
6+ # Note(@sbernauer): We could also call the Service something like
7+ # "product-operator-conversion-webhook". However, in the future we will have more webhooks, and
8+ # it seems like an overkill to have a dedicated Service per webhook.
59 name : {{ include "operator.fullname" . }}
610 labels :
711 {{- include "operator.labels" . | nindent 4 }}
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ in pkgs.mkShell rec {
2121 ] ;
2222
2323 # derivation runtime dependencies
24- buildInputs = pkgs . lib . concatMap ( crate : crate . buildInputs ) cargoDependencySet ;
24+ buildInputs = pkgs . lib . unique ( pkgs . lib . concatMap ( crate : crate . buildInputs ) cargoDependencySet ) ;
2525
2626 # build time dependencies
27- nativeBuildInputs = pkgs . lib . concatMap ( crate : crate . nativeBuildInputs ) cargoDependencySet ++ ( with pkgs ; [
27+ nativeBuildInputs = pkgs . lib . unique ( pkgs . lib . concatMap ( crate : crate . nativeBuildInputs ) cargoDependencySet ++ ( with pkgs ; [
2828 beku
2929 docker
3030 gettext # for the proper envsubst
@@ -38,7 +38,7 @@ in pkgs.mkShell rec {
3838 # tilt already defined in default.nix
3939 which
4040 yq-go
41- ] ) ;
41+ ] ) ) ;
4242
4343 LIBCLANG_PATH = "${ pkgs . libclang . lib } /lib" ;
4444 BINDGEN_EXTRA_CLANG_ARGS = "-I${ pkgs . glibc . dev } /include -I${ pkgs . clang } /resource-root/include" ;
You can’t perform that action at this time.
0 commit comments