Skip to content

Commit 0455988

Browse files
rashmi43root
andauthored
Redhat certification (#58)
* code for redhat cert * add scorecard file * add olm catalog and csv files * update dockerfiles * changes to make the scan pass * update csv * update secret * update resources * update resources * update resources auth * update resources * update versions of resources * update node status * update status descriptor * update status descriptor for security onboarding * final changes for redhat cert * update channel * renegerate bundle * add status for security onboarding * remove bundle dir from checkin * update spelling error Co-authored-by: root <[email protected]>
1 parent 49d8625 commit 0455988

File tree

7 files changed

+847
-31
lines changed

7 files changed

+847
-31
lines changed

.osdk-scorecard.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
scorecard:
2+
# Setting a global scorecard option
3+
output: json
4+
plugins:
5+
# `basic` tests configured to test 2 CRs
6+
- basic:
7+
cr-manifest:
8+
- "deploy/crds/operator.ibm.com_v1alpha1_authentication_cr.yaml"
9+
- "deploy/crds/operator.ibm.com_v1alpha1_oidcclientwatcher_cr.yaml"
10+
- "deploy/crds/operator.ibm.com_v1alpha1_pap_cr.yaml"
11+
- "deploy/crds/operator.ibm.com_v1alpha1_policycontroller_cr.yaml"
12+
- "deploy/crds/operator.ibm.com_v1alpha1_policydecision_cr.yaml"
13+
- "deploy/crds/operator.ibm.com_v1alpha1_secretwatcher_cr.yaml"
14+
- "deploy/crds/operator.ibm.com_v1alpha1_securityonboarding_cr.yaml"
15+
- olm:
16+
cr-manifest:
17+
- "deploy/crds/operator.ibm.com_v1alpha1_authentication_cr.yaml"
18+
- "deploy/crds/operator.ibm.com_v1alpha1_oidcclientwatcher_cr.yaml"
19+
- "deploy/crds/operator.ibm.com_v1alpha1_pap_cr.yaml"
20+
- "deploy/crds/operator.ibm.com_v1alpha1_policycontroller_cr.yaml"
21+
- "deploy/crds/operator.ibm.com_v1alpha1_policydecision_cr.yaml"
22+
- "deploy/crds/operator.ibm.com_v1alpha1_secretwatcher_cr.yaml"
23+
- "deploy/crds/operator.ibm.com_v1alpha1_securityonboarding_cr.yaml"
24+
csv-path: "deploy/olm-catalog/ibm-iam-operator/3.5.0/ibm-iam-operator.v3.5.0.clusterserviceversion.yaml"

build/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.1-398
22

3+
LABEL org.label-schema.vendor="IBM" \
4+
org.label-schema.name="ibm-iam-operator" \
5+
org.label-schema.description="IBM IAM Operator" \
6+
org.label-schema.vcs-ref=$VCS_REF \
7+
org.label-schema.vcs-url=$VCS_URL \
8+
org.label-schema.license="Licensed Materials - Property of IBM" \
9+
org.label-schema.schema-version="1.0" \
10+
name="ibm-iam-operator" \
11+
vendor="IBM" \
12+
description="IBM IAM Operator" \
13+
summary="IBM IAM Operator"
14+
315
ENV OPERATOR=/usr/local/bin/ibm-iam-operator \
416
USER_UID=1001 \
517
USER_NAME=ibm-iam-operator
@@ -10,6 +22,10 @@ COPY build/_output/bin/ibm-iam-operator ${OPERATOR}
1022
COPY build/bin /usr/local/bin
1123
RUN /usr/local/bin/user_setup
1224

25+
# copy licenses
26+
RUN mkdir /licenses
27+
COPY LICENSE /licenses
28+
1329
ENTRYPOINT ["/usr/local/bin/entrypoint"]
1430

1531
USER ${USER_UID}

build/Dockerfile.ppc64le

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ ARG VCS_REF
2525
ARG VCS_URL
2626

2727
LABEL org.label-schema.vendor="IBM" \
28-
org.label-schema.name="go-repo-template" \
29-
org.label-schema.description="A github repo with golang" \
30-
org.label-schema.vcs-ref=$VCS_REF \
31-
org.label-schema.vcs-url=$VCS_URL \
32-
org.label-schema.license="Licensed Materials - Property of IBM" \
33-
org.label-schema.schema-version="1.0" \
34-
name="go-repo-template" \
35-
vendor="IBM" \
36-
description="A github repo with golang" \
37-
summary="A github repo with golang"
28+
org.label-schema.name="ibm-iam-operator" \
29+
org.label-schema.description="IBM IAM Operator" \
30+
org.label-schema.vcs-ref=$VCS_REF \
31+
org.label-schema.vcs-url=$VCS_URL \
32+
org.label-schema.license="Licensed Materials - Property of IBM" \
33+
org.label-schema.schema-version="1.0" \
34+
name="ibm-iam-operator" \
35+
vendor="IBM" \
36+
description="IBM IAM Operator" \
37+
summary="IBM IAM Operator"
3838

3939
ENV OPERATOR=/usr/local/bin/ibm-iam-operator \
4040
USER_UID=1001 \
@@ -56,9 +56,5 @@ ENTRYPOINT ["/usr/local/bin/entrypoint"]
5656

5757
USER ${USER_UID}
5858

59-
LABEL name="ibm-iam-operator"
60-
LABEL vendor="IBM"
6159
LABEL version="0.0.1"
6260
LABEL release="0.0.1"
63-
LABEL summary="Operator for the IBM IAM microservice"
64-
LABEL description="Operator for the IBM IAM microservice"

build/Dockerfile.s390x

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ ARG VCS_REF
2525
ARG VCS_URL
2626

2727
LABEL org.label-schema.vendor="IBM" \
28-
org.label-schema.name="go-repo-template" \
29-
org.label-schema.description="A github repo with golang" \
30-
org.label-schema.vcs-ref=$VCS_REF \
31-
org.label-schema.vcs-url=$VCS_URL \
32-
org.label-schema.license="Licensed Materials - Property of IBM" \
33-
org.label-schema.schema-version="1.0" \
34-
name="go-repo-template" \
35-
vendor="IBM" \
36-
description="A github repo with golang" \
37-
summary="A github repo with golang"
28+
org.label-schema.name="ibm-iam-operator" \
29+
org.label-schema.description="IBM IAM Operator" \
30+
org.label-schema.vcs-ref=$VCS_REF \
31+
org.label-schema.vcs-url=$VCS_URL \
32+
org.label-schema.license="Licensed Materials - Property of IBM" \
33+
org.label-schema.schema-version="1.0" \
34+
name="ibm-iam-operator" \
35+
vendor="IBM" \
36+
description="IBM IAM Operator" \
37+
summary="IBM IAM Operator"
3838

3939
ENV OPERATOR=/usr/local/bin/ibm-iam-operator \
4040
USER_UID=1001 \
@@ -56,9 +56,5 @@ ENTRYPOINT ["/usr/local/bin/entrypoint"]
5656

5757
USER ${USER_UID}
5858

59-
LABEL name="ibm-iam-operator"
60-
LABEL vendor="IBM"
6159
LABEL version="0.0.1"
6260
LABEL release="0.0.1"
63-
LABEL summary="Operator for the IBM IAM microservice"
64-
LABEL description="Operator for the IBM IAM microservice"

common/Makefile.common.mk

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,25 @@ format-python:
9696
format-protos:
9797
@$(FINDFILES) -name '*.proto' -print0 | $(XARGS) -L 1 prototool format -w
9898

99-
.PHONY: lint-dockerfiles lint-scripts lint-yaml lint-copyright-banner lint-go lint-python lint-helm lint-markdown lint-sass lint-typescript lint-protos lint-all format-go format-python format-protos config-docker
99+
csv-gen:
100+
@echo Updating the CSV files with the changes in the CRD
101+
operator-sdk generate csv --csv-version ${CSV_VERSION} --update-crds
102+
103+
bundle:
104+
@echo --- Updating the bundle directory with latest yamls from olm-catalog ---
105+
rm -rf bundle/*
106+
cp -r deploy/olm-catalog/ibm-iam-operator/${CSV_VERSION}/* bundle/
107+
cp deploy/olm-catalog/ibm-iam-operator/ibm-iam-operator.package.yaml bundle/
108+
zip bundle/ibm-iam-metadata bundle/*.yaml
109+
110+
install-operator-courier:
111+
@echo --- Installing Operator Courier ---
112+
pip3 install operator-courier
113+
114+
verify-bundle:
115+
@echo --- Verify Bundle is Redhat Certify ready ---
116+
operator-courier --verbose verify --ui_validate_io bundle/
117+
118+
redhat-certify-ready: bundle install-operator-courier verify-bundle
119+
120+
.PHONY: lint-dockerfiles lint-scripts lint-yaml lint-copyright-banner lint-go lint-python lint-helm lint-markdown lint-sass lint-typescript lint-protos lint-all format-go format-python format-protos csv-gen bundle install-operator-courier verify-bundle redhat-certify-ready config-docker

0 commit comments

Comments
 (0)