Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,23 @@ resources:
cpu: 100m
memory: 200Mi
tests:
- as: rosa-hcp-external-oidc-e2e-staging
capabilities:
- intranet
cron: 0 13 * * *
restrict_network_access: false
steps:
allow_best_effort_post_steps: true
cluster_profile: rosa-e2e-01
env:
CHANNEL_GROUP: stable
CLUSTER_SECTOR: rosa-e2e
ENABLE_BILLING_ACCOUNT: "yes"
EXTERNAL_AUTH_PROVIDERS_ENABLED: "true"
HOSTED_CP: "true"
OCM_LOGIN_ENV: staging
REGION: us-west-2
workflow: rosa-e2e-hcp-external-oidc
- as: rosa-hcp-e2e-private-staging
capabilities:
- intranet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11438,6 +11438,109 @@ periodics:
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: build10
cron: 0 13 * * *
decorate: true
decoration_config:
skip_cloning: true
extra_refs:
- base_ref: main
org: openshift-online
repo: rosa-e2e
labels:
capability/intranet: intranet
ci-operator.openshift.io/cloud: aws
ci-operator.openshift.io/cloud-cluster-profile: rosa-e2e-01
ci-operator.openshift.io/variant: periodics
ci.openshift.io/generator: prowgen
job-release: "4.22"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: periodic-ci-openshift-online-rosa-e2e-main-periodics-rosa-hcp-external-oidc-e2e-staging
spec:
containers:
- args:
- --enable-secrets-store-csi-driver=true
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --gsm-config=/etc/gsm-config/gsm-config.yaml
- --gsm-credentials-file=/etc/gsm-credentials/key.json
- --gsm-project-config=/etc/gsm-config/gsm-project-config.yaml
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --target=rosa-hcp-external-oidc-e2e-staging
- --variant=periodics
command:
- ci-operator
env:
- name: HTTP_SERVER_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest
imagePullPolicy: Always
name: ""
ports:
- containerPort: 8080
name: http
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/gsm-config
name: gsm-config
readOnly: true
- mountPath: /etc/gsm-credentials
name: gsm-sa-key
readOnly: true
- mountPath: /secrets/manifest-tool
name: manifest-tool-local-pusher
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- configMap:
name: gsm-config
name: gsm-config
- csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: ci-operator-sa-key-spc
name: gsm-sa-key
- name: manifest-tool-local-pusher
secret:
secretName: manifest-tool-local-pusher
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
- agent: kubernetes
cluster: build01
cron: 0 10 * * 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ETCD_ENCRYPTION=${ETCD_ENCRYPTION:-false}
STORAGE_ENCRYPTION=${STORAGE_ENCRYPTION:-false}
DISABLE_WORKLOAD_MONITORING=${DISABLE_WORKLOAD_MONITORING:-false}
DISABLE_SCP_CHECKS=${DISABLE_SCP_CHECKS:-false}
EXTERNAL_AUTH_PROVIDERS_ENABLED=${EXTERNAL_AUTH_PROVIDERS_ENABLED:-false}
ENABLE_BYOVPC=${ENABLE_BYOVPC:-false}
ENABLE_PROXY=${ENABLE_PROXY:-false}
BYO_OIDC=${BYO_OIDC:-false}
Expand Down Expand Up @@ -789,6 +790,17 @@ if [[ "$NO_CNI" == "true" ]]; then
NO_CNI_SWITCH="--no-cni"
fi

# External authentication (external OIDC) is an HCP-only, day-1 immutable feature.
EXTERNAL_AUTH_SWITCH=""
if [[ "$EXTERNAL_AUTH_PROVIDERS_ENABLED" == "true" ]]; then
if [[ "$HOSTED_CP" != "true" ]]; then
echo -e "EXTERNAL_AUTH_PROVIDERS_ENABLED is only supported for HCP (HOSTED_CP=true) clusters."
exit 1
fi
EXTERNAL_AUTH_SWITCH="--external-auth-providers-enabled"
record_cluster "external_auth_config" "enabled" "true"
fi

# Save the cluster config to ARTIFACT_DIR
cat "${SHARED_DIR}/cluster-config" | sed "s/$AWS_ACCOUNT_ID/$AWS_ACCOUNT_ID_MASK/g" > "${ARTIFACT_DIR}/cluster-config"

Expand All @@ -812,6 +824,7 @@ echo " Enable ec2 metadata http tokens: ${EC2_METADATA_HTTP_TOKENS}"
echo " Enable etcd encryption: ${ETCD_ENCRYPTION}"
echo " Disable workload monitoring: ${DISABLE_WORKLOAD_MONITORING}"
echo " Enable Byovpc: ${ENABLE_BYOVPC}"
echo " Enable external auth providers: ${EXTERNAL_AUTH_PROVIDERS_ENABLED}"
echo " Enable audit log: ${ENABLE_AUDIT_LOG}"
echo " Cluster Tags: ${TAGS}"
echo " Additional Security groups: ${ADDITIONAL_SECURITY_GROUP}"
Expand Down Expand Up @@ -872,6 +885,7 @@ ${COMPUTER_NODE_DISK_SIZE_SWITCH} \
${SHARED_VPC_SWITCH} \
${SECURITY_GROUP_ID_SWITCH} \
${NO_CNI_SWITCH} \
${EXTERNAL_AUTH_SWITCH} \
${CONFIGURE_CLUSTER_AUTOSCALER_SWITCH} \
${BILLING_ACCOUNT_SWITCH} \
${DRY_RUN_SWITCH}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,8 @@ ref:
- name: ENABLE_BILLING_ACCOUNT
default: "no"
documentation: Enable the use of the billing account for billing subscriptions purchased via the AWS marketplace.
- name: EXTERNAL_AUTH_PROVIDERS_ENABLED
default: "false"
documentation: Set to 'true' to create the cluster with external authentication (external OIDC) enabled. Only supported for HOSTED_CP (HCP) clusters. When enabled an external auth provider must be configured after provisioning (see rosa-conf-external-oidc-create).
documentation: |-
Using rosa cli to create a rosa cluster with the provided cluster profile. The cluster profile should include the offline token ocm-token to login and .awscred to init the rosa environment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
approvers:
- tiwillia
- dustman9000
- bmeng
- ravitri
- samanthajayasinghe
reviewers:
- tiwillia
- dustman9000
- bmeng
- ravitri
- samanthajayasinghe
Loading