-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maistra 2.2 istio-csr support #890
Closed
SpectralHiss
wants to merge
12
commits into
maistra:maistra-2.2
from
SpectralHiss:hef/maistra-2.2-cert-manager-istio-csr-support
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5cf3db8
maistra 2.2 sed patch modifications after rebas
7cc9453
Make tar more xplatform + apply patches through build, images are not…
d4a5833
Generating helm -> v2 in progress
f0fc603
Finally understood test structure, basic test added
3c4c258
Add error wrapping
f99264c
Add CA Root configmap test and implementation
4a02e3b
Add olm overrides for latest version
4a99d38
Checking in dev stuff for information purposes, will cleanup before m…
e90e5a2
Delete autogenerated files
1c95717
Reset helm template
fcf4eca
gen-check and commit
1834fce
Try to reset the deep copy methods
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
replicaCount: 3 | ||
|
||
image: | ||
repository: quay.io/jetstack/cert-manager-istio-csr | ||
tag: v0.3.0 | ||
|
||
app: | ||
|
||
certmanager: | ||
namespace: istio-system | ||
preserveCertificateRequests: true | ||
issuer: | ||
group: cert-manager.io | ||
kind: Issuer | ||
name: istio-ca | ||
|
||
tls: | ||
trustDomain: cluster.local | ||
certificateDuration: 3600s | ||
certificateDNSNames: | ||
# Name used by the e2e client | ||
- istio-csr.cert-manager.svc | ||
# Name used within the demo cluster | ||
- cert-manager-istio-csr.cert-manager.svc | ||
|
||
istio: | ||
revisions: ["test-prototype"] | ||
server: | ||
maxCertificateDuration: 5m | ||
serving: | ||
address: 0.0.0.0 | ||
port: 6443 | ||
|
||
controller: | ||
rootCAConfigMapName: istio-ca-root-cert | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: selfsigned | ||
spec: | ||
selfSigned: {} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: istio-ca | ||
spec: | ||
isCA: true | ||
duration: 2160h # 90d | ||
secretName: istio-ca | ||
commonName: istio-ca | ||
subject: | ||
organizations: | ||
- cluster.local | ||
- cert-manager | ||
issuerRef: | ||
name: selfsigned | ||
kind: Issuer | ||
group: cert-manager.io | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: istio-ca | ||
spec: | ||
ca: | ||
secretName: istio-ca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: maistra.io/v2 | ||
kind: ServiceMeshControlPlane | ||
metadata: | ||
name: test-prototype | ||
namespace: istio-system | ||
spec: | ||
addons: | ||
kiali: | ||
enabled: false | ||
profiles: | ||
- small | ||
security: | ||
certificateAuthority: | ||
cert-manager: | ||
address: cert-manager-istio-csr.cert-manager.svc:443 | ||
pilotSecretName: istiod-tls | ||
rootCAConfigMapName: "istio-ca-root-cert" | ||
type: cert-manager | ||
tracing: | ||
type: None | ||
version: v2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# manual end to end build steps | ||
|
||
make build | ||
make generate | ||
|
||
IMAGE=maistradev.azurecr.io/istio-operator:$(git rev-parse HEAD) make image | ||
|
||
docker push maistradev.azurecr.io/istio-operator:$(git rev-parse HEAD) | ||
|
||
# patch olm manifest with mirrored image location (using mirror script): | ||
|
||
eg: | ||
olm.relatedImage.v2_2.cni: maistradev.azurecr.io/istio/install-cni:611dad93ddeae2e20b423e35fc2dedad1e4adc03 | ||
olm.relatedImage.v2_2.pilot: maistradev.azurecr.io/istio/pilot:611dad93ddeae2e20b423e35fc2dedad1e4adc03 | ||
olm.relatedImage.v2_2.proxyv2: maistradev.azurecr.io/istio/proxyv2:611dad93ddeae2e20b423e35fc2dedad1e4adc03 | ||
olm.relatedImage.v2_2.wasm-cacher: maistradev.azurecr.io/istio/pilot:611dad93ddeae2e20b423e35fc2dedad1e4adc03 | ||
|
||
and image section with above image | ||
in deploy/servicemesh-operator.yaml | ||
|
||
apply the deploy/servicemesh-operator.yaml | ||
|
||
helm install \ | ||
cert-manager jetstack/cert-manager \ | ||
--namespace cert-manager \ | ||
--create-namespace \ | ||
--version v1.6.1 \ | ||
--set installCRDs=true | ||
|
||
kubectl create ns istio-system | ||
|
||
kubectl apply -f selfsigned-ca.yaml -n istio-system | ||
helm install -n cert-manager cert-manager-istio-csr jetstack/cert-manager-istio-csr -f deploy-prototype/istio-csr-helm-values.yaml" | ||
|
||
# apply smcp.yaml | ||
kubectl apply -f deploy-prototype/smcp.yaml | ||
|
||
# for some reason the deploy currently generates some junk env vars: | ||
INJECTION_WEBHOOK_CONFIG_NAME edit pilot deploy and delete those until this is fixed | ||
|
||
# the smcp should proceed and istio-csr should be configured properly! | ||
|
||
# can verify by seeing all mounts are correct on pilot, launching bookinfo and checking | ||
# istioctl pc s pod-name to see our self-signed ca is the issuer. | ||
# it's also important to verify that we used the right root configmap for the root of trust. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be removed before it can be merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍